summaryrefslogtreecommitdiff
path: root/builtin-checkout.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-04-24 01:04:48 +0200
committerJunio C Hamano <gitster@pobox.com>2008-04-27 13:19:33 -0700
commit498a6e7eaaa8d2641f7cc343e1557e1502437b33 (patch)
treecaf2b9b1ce97b4f966db3ff64ba2afd753299839 /builtin-checkout.c
parentb1b359699a24a89f773cccdf35801bc6fc15ade8 (diff)
downloadgit-498a6e7eaaa8d2641f7cc343e1557e1502437b33.tar.gz
git checkout: add -t alias for --track
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r--builtin-checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 7deb504837..14b2fe7760 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -504,7 +504,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
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"),