Merge branch 'fc/merge-default-to-upstream'

"git merge" without argument, even when there is an upstream
defined for the current branch, refused to run until
merge.defaultToUpstream is set to true. Flip the default of that
configuration variable to true.

* fc/merge-default-to-upstream:
  merge: enable defaulttoupstream by default
This commit is contained in:
Junio C Hamano 2014-06-03 12:06:43 -07:00
Родитель 6779e43b0d a01f7f2ba0
Коммит b8ef69fe2e
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -101,9 +101,8 @@ commit or stash your changes before running 'git merge'.
Specifying more than one commit will create a merge with Specifying more than one commit will create a merge with
more than two parents (affectionately called an Octopus merge). more than two parents (affectionately called an Octopus merge).
+ +
If no commit is given from the command line, and if `merge.defaultToUpstream` If no commit is given from the command line, merge the remote-tracking
configuration variable is set, merge the remote-tracking branches branches that the current branch is configured to use as its upstream.
that the current branch is configured to use as its upstream.
See also the configuration section of this manual page. See also the configuration section of this manual page.

Просмотреть файл

@ -63,7 +63,7 @@ static int verbosity;
static int allow_rerere_auto; static int allow_rerere_auto;
static int abort_current_merge; static int abort_current_merge;
static int show_progress = -1; static int show_progress = -1;
static int default_to_upstream; static int default_to_upstream = 1;
static const char *sign_commit; static const char *sign_commit;
static struct strategy all_strategy[] = { static struct strategy all_strategy[] = {