diff options
author | 2014-06-03 12:06:43 -0700 | |
---|---|---|
committer | 2014-06-03 12:06:43 -0700 | |
commit | b8ef69fe2e837d78250555807073b5405f7c9297 (patch) | |
tree | 944d24d1d940611d62908daf79856c90aca60b8b | |
parent | Merge branch 'jk/external-diff-use-argv-array' (diff) | |
parent | merge: enable defaulttoupstream by default (diff) | |
download | tgif-b8ef69fe2e837d78250555807073b5405f7c9297.tar.xz |
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
-rw-r--r-- | Documentation/git-merge.txt | 5 | ||||
-rw-r--r-- | builtin/merge.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index a3c1fa332a..cf2c374b71 100644 --- a/Documentation/git-merge.txt +++ b/Documentation/git-merge.txt @@ -101,9 +101,8 @@ commit or stash your changes before running 'git merge'. Specifying more than one commit will create a merge with more than two parents (affectionately called an Octopus merge). + -If no commit is given from the command line, and if `merge.defaultToUpstream` -configuration variable is set, merge the remote-tracking branches -that the current branch is configured to use as its upstream. +If no commit is given from the command line, merge the remote-tracking +branches that the current branch is configured to use as its upstream. See also the configuration section of this manual page. diff --git a/builtin/merge.c b/builtin/merge.c index 7c9d8f2432..428ca247bd 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -63,7 +63,7 @@ static int verbosity; static int allow_rerere_auto; static int abort_current_merge; static int show_progress = -1; -static int default_to_upstream; +static int default_to_upstream = 1; static const char *sign_commit; static struct strategy all_strategy[] = { |