From: Johannes Schindelin Date: Fri, 6 Jul 2007 21:54:09 +0000 (+0100) Subject: git-branch: default to --track X-Git-Tag: v1.5.3-rc1~58 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34a3e695497ab2abbf2fc33a46380accaa8c7c15;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-branch.c b/builtin-branch.c index 77b85dde1..84a8ad7b7 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -22,7 +22,7 @@ static const char builtin_branch_usage[] = 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] = {