From 0eb2d3c8a0c59955e6b760f84904badc95b7fde8 Mon Sep 17 00:00:00 2001 From: Diogo Ferreira Date: Fri, 18 Oct 2019 12:39:08 +0100 Subject: [PATCH] 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 Reviewed-by: David Pursehouse Reviewed-by: Mike Frysinger --- subcmds/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. g.add_option('-b', '--manifest-branch', dest='manifest_branch', help='manifest branch or revision', metavar='REVISION') - g.add_option('--current-branch', + g.add_option('-c', '--current-branch', dest='current_branch_only', action='store_true', help='fetch only current manifest branch from server') g.add_option('-m', '--manifest-name',