Skip to content

Commit b8ef69f

Browse files
committed
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
2 parents 6779e43 + a01f7f2 commit b8ef69f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Documentation/git-merge.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ commit or stash your changes before running 'git merge'.
101101
Specifying more than one commit will create a merge with
102102
more than two parents (affectionately called an Octopus merge).
103103
+
104-
If no commit is given from the command line, and if `merge.defaultToUpstream`
105-
configuration variable is set, merge the remote-tracking branches
106-
that the current branch is configured to use as its upstream.
104+
If no commit is given from the command line, merge the remote-tracking
105+
branches that the current branch is configured to use as its upstream.
107106
See also the configuration section of this manual page.
108107

109108

builtin/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static int verbosity;
6363
static int allow_rerere_auto;
6464
static int abort_current_merge;
6565
static int show_progress = -1;
66-
static int default_to_upstream;
66+
static int default_to_upstream = 1;
6767
static const char *sign_commit;
6868

6969
static struct strategy all_strategy[] = {

0 commit comments

Comments
 (0)