summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae740a5)
raw | patch | inline | side by side (parent: ae740a5)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 6 Jul 2007 21:54:09 +0000 (22:54 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 7 Jul 2007 06:21:39 +0000 (23:21 -0700) |
"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>
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>
builtin-branch.c | patch | blob | history |
diff --git a/builtin-branch.c b/builtin-branch.c
index 77b85dde1f661069d2e07314a1d6bf80f0b27efc..84a8ad7b7391b6f962e4b15c03b5f81191dd7367 100644 (file)
--- a/builtin-branch.c
+++ b/builtin-branch.c
static const char *head;
static unsigned char head_sha1[20];
-static int branch_track_remotes;
+static int branch_track_remotes = 1;
static int branch_use_color;
static char branch_colors[][COLOR_MAXLEN] = {