Thread (2 messages) 2 messages, 2 authors, 2016-06-15

Re: [PATCH] pull: require choice between rebase/merge on non-fast-forward pull

flat view

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:57

John Keeping [off-list ref] writes:
quoted
 test_expect_success \
     'merge-setup part 3' \
-    'git pull . branch1'
+    'git pull --merge . branch1'
I think the "--merge" should be implied here because the suer has
specified an explicit remote and branch.
The whole point of the topic is "It used to be that when you said
'git pull' and did not tell us your preferred way to integrate your
work and work by the others', we default to merging, but we no
longer do so---you have to choose."

Here, "git pull . branch1" is merely saying "I want to integrate
the work on my current branch with that of branch1" without saying
how that integration wants to happen.

Even though, as an old timer, I find it mildly irritating that we
now have to be explicit in these tests, this change is in line with
the spirit of the topic.  If we didn't have to change this example
and the pull silently succeeded without complaining, we achieved
nothing.
 Similarly, if "--ff",
"--no-ff" or "--ff-only" are given then we can infer "--merge" in the
absence of any other configuration.
Isn't that already there in the patch to git-merge?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help