summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74fd872)
raw | patch | inline | side by side (parent: 74fd872)
author | Sitaram Chamarty <sitaramc@gmail.com> | |
Tue, 28 Apr 2009 15:21:20 +0000 (20:51 +0530) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 9 May 2009 15:32:14 +0000 (08:32 -0700) |
also makes it consistent with git-checkout
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-branch.txt | patch | blob | history | |
builtin-branch.c | patch | blob | history |
index cbd427587188d81726445183f772f02982736e6a..ae201deb7af44c61e793ab408e916c5b6520800d 100644 (file)
--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
diff --git a/builtin-branch.c b/builtin-branch.c
index 91098ca9b106239916af000cb54a4bf09629e6b6..6aaa708473231848db8cba061f6048d41a6782af 100644 (file)
--- a/builtin-branch.c
+++ b/builtin-branch.c
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",