summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1b3596)
raw | patch | inline | side by side (parent: b1b3596)
author | Miklos Vajna <vmiklos@frugalware.org> | |
Wed, 23 Apr 2008 23:04:48 +0000 (01:04 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Apr 2008 20:19:33 +0000 (13:19 -0700) |
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt | patch | blob | history | |
builtin-checkout.c | patch | blob | history |
index e11cddbfc96f742968789abd369a4f7e240db27c..a644173e15da7e3203fa8de8a6cb917f138f93c2 100644 (file)
by linkgit:git-check-ref-format[1]. Some of these checks
may restrict the characters allowed in a branch name.
---track::
+-t, --track::
When creating a new branch, set up configuration so that git-pull
will automatically retrieve data from the start point, which must be
a branch. Use this if you always pull from the same upstream branch
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 7deb504837d252dd43fa9746c5d12342e93a5923..14b2fe7760766c796d78fd910882c4ef8b917b98 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
OPT__QUIET(&opts.quiet),
OPT_STRING('b', NULL, &opts.new_branch, "new branch", "branch"),
OPT_BOOLEAN('l', NULL, &opts.new_branch_log, "log for new branch"),
- OPT_SET_INT( 0 , "track", &opts.track, "track",
+ OPT_SET_INT('t', "track", &opts.track, "track",
BRANCH_TRACK_EXPLICIT),
OPT_BOOLEAN('f', NULL, &opts.force, "force"),
OPT_BOOLEAN('m', NULL, &opts.merge, "merge"),