Skip to content

Commit

Permalink
allow -t abbreviation for --track in git branch
Browse files Browse the repository at this point in the history
also makes it consistent with git-checkout

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Sitaram Chamarty authored and Junio C Hamano committed May 9, 2009
1 parent 74fd872 commit be427d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Documentation/git-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ OPTIONS
--no-abbrev::
Display the full sha1s in the output listing rather than abbreviating them.

-t::
--track::
When creating a new branch, set up configuration to mark the
start-point branch as "upstream" from the new branch. This
Expand Down
2 changes: 1 addition & 1 deletion builtin-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
struct option options[] = {
OPT_GROUP("Generic options"),
OPT__VERBOSE(&verbose),
OPT_SET_INT( 0 , "track", &track, "set up tracking mode (see git-pull(1))",
OPT_SET_INT('t', "track", &track, "set up tracking mode (see git-pull(1))",
BRANCH_TRACK_EXPLICIT),
OPT_BOOLEAN( 0 , "color", &branch_use_color, "use colored output"),
OPT_SET_INT('r', NULL, &kinds, "act on remote-tracking branches",
Expand Down

0 comments on commit be427d7

Please sign in to comment.