@matheusbsbs / matheus-bagliano / commits / 498a6e7eaa
Fork 0

git checkout: add -t alias for --track

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Apr 24, 2008 at 01:04 UTC 498a6e7eaaa8d2641f7cc343e1557e1502437b33
2 files changed +2 -2
Documentation/git-checkout.txt
+1 -1
@@ -47,7 +47,7 @@ OPTIONS
47 by linkgit:git-check-ref-format[1]. Some of these checks
48 may restrict the characters allowed in a branch name.
49
50 ---track::
50 +-t, --track::
51 When creating a new branch, set up configuration so that git-pull
52 will automatically retrieve data from the start point, which must be
53 a branch. Use this if you always pull from the same upstream branch
builtin-checkout.c
+1 -1
@@ -504,7 +504,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
504 OPT__QUIET(&opts.quiet),
505 OPT_STRING('b', NULL, &opts.new_branch, "new branch", "branch"),
506 OPT_BOOLEAN('l', NULL, &opts.new_branch_log, "log for new branch"),
507 - OPT_SET_INT( 0 , "track", &opts.track, "track",
507 + OPT_SET_INT('t', "track", &opts.track, "track",
508 BRANCH_TRACK_EXPLICIT),
509 OPT_BOOLEAN('f', NULL, &opts.force, "force"),
510 OPT_BOOLEAN('m', NULL, &opts.merge, "merge"),