summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2019-10-18 12:39:08 +0100
committerMike Frysinger <vapier@google.com>2020-01-24 14:46:58 +0000
commit0eb2d3c8a0c59955e6b760f84904badc95b7fde8 (patch)
tree67ab3e3a58f3f089fcf12e3f60a202551650d530
parente4d20372b26521ca936bdba7f4d99c47423b9c4a (diff)
downloadgit-repo-0eb2d3c8a0c59955e6b760f84904badc95b7fde8.tar.gz
init: Add '-c' as an alias to '--current-branch'
This makes it consistent with the short option for current-branch in repo sync. Change-Id: I2848e87f45a66ef8d829576d0c0c4c0f7a8636a0 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/241700 Tested-by: Diogo Ferreira <deovferreira@gmail.com> Reviewed-by: David Pursehouse <dpursehouse@collab.net> Reviewed-by: Mike Frysinger <vapier@google.com>
-rw-r--r--subcmds/init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 32663a04..3e2c9d70 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -96,7 +96,7 @@ to update the working directory files.
96 g.add_option('-b', '--manifest-branch', 96 g.add_option('-b', '--manifest-branch',
97 dest='manifest_branch', 97 dest='manifest_branch',
98 help='manifest branch or revision', metavar='REVISION') 98 help='manifest branch or revision', metavar='REVISION')
99 g.add_option('--current-branch', 99 g.add_option('-c', '--current-branch',
100 dest='current_branch_only', action='store_true', 100 dest='current_branch_only', action='store_true',
101 help='fetch only current manifest branch from server') 101 help='fetch only current manifest branch from server')
102 g.add_option('-m', '--manifest-name', 102 g.add_option('-m', '--manifest-name',