Git development
 help / color / mirror / Atom feed
* [DOC BUG] branch.autosetupmerge defaults to true, not false
@ 2008-02-11  8:46 Kalle Olavi Niemitalo
  2008-02-11  9:13 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Kalle Olavi Niemitalo @ 2008-02-11  8:46 UTC (permalink / raw)
  To: git

In Git v1.5.4.1, Documentation/config.txt describes:

> branch.autosetupmerge::
>         Tells `git-branch` and `git-checkout` to setup new branches
>         so that linkgit:git-pull[1] will appropriately merge from that
>         remote branch.  Note that even if this option is not set,
>         this behavior can be chosen per-branch using the `--track`
>         and `--no-track` options.  This option defaults to false.

However, in builtin-branch.c:

> static int branch_track = 1;
...
>         if (!strcmp(var, "branch.autosetupmerge"))
>                         branch_track = git_config_bool(var, value);

So if the option is not listed in .git/config, then it actually
defaults to true.  A demonstration with a bit older version:

$ git --version
git version 1.5.4.rc3
$ git config --unset branch.autosetupmerge
$ git branch demo elinks.cz/master
Branch demo set up to track remote branch refs/remotes/elinks.cz/master.
$ 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-11 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11  8:46 [DOC BUG] branch.autosetupmerge defaults to true, not false Kalle Olavi Niemitalo
2008-02-11  9:13 ` Junio C Hamano
2008-02-11 11:27   ` Johannes Schindelin
2008-02-11 11:36     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox