{"thread":{"id":"19108","subject":"[PATCH] allow -t abbreviation for --track in git branch","startedAt":"2009-04-28T15:21:20Z","lastAt":"2009-04-28T15:21:20Z","messageCount":1,"participants":["Sitaram Chamarty"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"112535","messageId":"20090428152119.GA18935@atc.tcs.com","threadId":"19108","inReplyTo":null,"subject":"[PATCH] allow -t abbreviation for --track in git branch","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2009-04-28T15:21:20Z","receivedAt":"2009-04-28T15:21:20Z","isPatch":true,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"also makes it consistent with git-checkout\n\n---\n Documentation/git-branch.txt |    1 +\n builtin-branch.c             |    2 +-\n 2 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt\nindex cbd4275..ae201de 100644\n--- a/Documentation/git-branch.txt\n+++ b/Documentation/git-branch.txt\n@@ -111,6 +111,7 @@ OPTIONS\n --no-abbrev::\n \tDisplay the full sha1s in the output listing rather than abbreviating them.\n \n+-t::\n --track::\n \tWhen creating a new branch, set up configuration to mark the\n \tstart-point branch as \"upstream\" from the new branch. This\ndiff --git a/builtin-branch.c b/builtin-branch.c\nindex 91098ca..6aaa708 100644\n--- a/builtin-branch.c\n+++ b/builtin-branch.c\n@@ -547,7 +547,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)\n \tstruct option options[] = {\n \t\tOPT_GROUP(\"Generic options\"),\n \t\tOPT__VERBOSE(&verbose),\n-\t\tOPT_SET_INT( 0 , \"track\",  &track, \"set up tracking mode (see git-pull(1))\",\n+\t\tOPT_SET_INT('t', \"track\",  &track, \"set up tracking mode (see git-pull(1))\",\n \t\t\tBRANCH_TRACK_EXPLICIT),\n \t\tOPT_BOOLEAN( 0 , \"color\",  &branch_use_color, \"use colored output\"),\n \t\tOPT_SET_INT('r', NULL,     &kinds, \"act on remote-tracking branches\",\n-- \n1.6.2.4\n"}]}