From d1e4fa7015379cfa3c7ee0fe091bc5910754425f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 23 Mar 2021 20:27:29 -0400 Subject: start: add a --HEAD alias This makes it easy to use --H as a shortcut, and kind of matches the use of storing HEAD as the revision. Change-Id: I590bf488518f313e7a593853140316df98262d7e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/301163 Reviewed-by: Michael Mortensen Tested-by: Mike Frysinger --- subcmds/start.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'subcmds/start.py') diff --git a/subcmds/start.py b/subcmds/start.py index 25b229f1..04589fb2 100644 --- a/subcmds/start.py +++ b/subcmds/start.py @@ -44,7 +44,8 @@ revision specified in the manifest. help='begin branch in all projects') p.add_option('-r', '--rev', '--revision', dest='revision', help='point branch at this revision instead of upstream') - p.add_option('--head', dest='revision', action='store_const', const='HEAD', + p.add_option('--head', '--HEAD', + dest='revision', action='store_const', const='HEAD', help='abbreviation for --rev HEAD') def ValidateOptions(self, opt, args): -- cgit v1.2.3-54-g00ecf