diff options
author | Mike Frysinger <vapier@google.com> | 2020-03-14 14:35:26 -0400 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-03-18 00:24:43 +0000 |
commit | 58ac1678e8438fd029a22365741fc57276eda404 (patch) | |
tree | ddadc39f70fa728e5cf75f2220716da42cef4d55 /subcmds/init.py | |
parent | e1111f5710acf16d91975a9ee5e2c9464730becf (diff) | |
download | git-repo-58ac1678e8438fd029a22365741fc57276eda404.tar.gz |
init: rename --repo-branch to --repo-rev
We refer to this as "revision" in help text, and in REPO_REV envvar,
so rename to --repo-rev to be consistent. We keep --repo-branch for
backwards compatibility, but as a hidden option.
Bug: https://crbug.com/gerrit/11045
Change-Id: I1ecc282fba32917ed78a63850360c08469db849a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/259352
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 94bd44ca..431165d4 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -166,9 +166,10 @@ to update the working directory files. | |||
166 | g.add_option('--repo-url', | 166 | g.add_option('--repo-url', |
167 | dest='repo_url', | 167 | dest='repo_url', |
168 | help='repo repository location', metavar='URL') | 168 | help='repo repository location', metavar='URL') |
169 | g.add_option('--repo-branch', | 169 | g.add_option('--repo-rev', metavar='REV', |
170 | dest='repo_branch', | 170 | help='repo branch or revision') |
171 | help='repo branch or revision', metavar='REVISION') | 171 | g.add_option('--repo-branch', dest='repo_rev', |
172 | help=optparse.SUPPRESS_HELP) | ||
172 | g.add_option('--no-repo-verify', | 173 | g.add_option('--no-repo-verify', |
173 | dest='repo_verify', default=True, action='store_false', | 174 | dest='repo_verify', default=True, action='store_false', |
174 | help='do not verify repo source code') | 175 | help='do not verify repo source code') |