Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit a01f7f2

Browse files
felipecgitster
authored andcommitted
merge: enable defaulttoupstream by default
There's no point in this: % git merge fatal: No commit specified and merge.defaultToUpstream not set. We know the most likely scenario is that the user wants to merge the upstream, and if not, he can set merge.defaultToUpstream to false. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 779792a commit a01f7f2

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)