allow -t abbreviation for --track in git branch
also makes it consistent with git-checkout Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sitaram Chamarty committed
Apr 28, 2009 at 20:51 UTC
be427d758b53343d31debb520c0bc251a62013a9
2 files changed
+2
-1
Documentation/git-branch.txt
+1
@@ -111,6 +111,7 @@ OPTIONS
111
--no-abbrev::
112
Display the full sha1s in the output listing rather than abbreviating them.
113
114
+-t::
115
--track::
116
When creating a new branch, set up configuration to mark the
117
start-point branch as "upstream" from the new branch. This
builtin-branch.c
+1
-1
@@ -547,7 +547,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
547
struct option options[] = {
548
OPT_GROUP("Generic options"),
549
OPT__VERBOSE(&verbose),
550
- OPT_SET_INT( 0 , "track", &track, "set up tracking mode (see git-pull(1))",
550
+ OPT_SET_INT('t', "track", &track, "set up tracking mode (see git-pull(1))",
551
BRANCH_TRACK_EXPLICIT),
552
OPT_BOOLEAN( 0 , "color", &branch_use_color, "use colored output"),
553
OPT_SET_INT('r', NULL, &kinds, "act on remote-tracking branches",