git-branch: default to --track
"git branch --track" will setup config variables when branching from a remote branch, so that if you say "git pull" while being on that branch, it automatically fetches the correct remote, and merges the correct branch. Often people complain that this is not the default for "git branch". Make it so. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jul 6, 2007 at 22:54 UTC
34a3e695497ab2abbf2fc33a46380accaa8c7c15
1 file changed
+1
-1
builtin-branch.c
+1
-1
@@ -22,7 +22,7 @@ static const char builtin_branch_usage[] =
22
static const char *head;
23
static unsigned char head_sha1[20];
24
25
-static int branch_track_remotes;
25
+static int branch_track_remotes = 1;
26
27
static int branch_use_color;
28
static char branch_colors[][COLOR_MAXLEN] = {