Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: What's cooking in git.git (topics)

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:47

Hi,

On Fri, 29 Dec 2006, Nicolas Pitre wrote:
On Fri, 29 Dec 2006, Johannes Schindelin wrote:
quoted
On Thu, 28 Dec 2006, Junio C Hamano wrote:
quoted
* jc/3way (Wed Nov 29 18:53:13 2006 -0800) 1 commit
 + git-merge: preserve and merge local changes when doing fast
   forward
I'd like this, but behind a command line switch. And in addition to 
saying "cannot merge, blabla needs update", git could spit out "if you 
want to risk a 3way merge, go ahead and add the --preserve-local flag 
to git-merge".

Comments?
Is there really a point for not always doing it?

IOW, if you really want a command line switch, maybe it should be used 
to prevent the above not to allow it?
There is a drawback to enabling this all the time. If the merge screws up 
with gazillions of conflicts, because I pulled the wrong branch, I am so 
used to "git reset --hard". Bummer. All my changes lost.

That is why we encourage commit-before-pull, to have a saved state.

(Of course, the correct thing would not be "git reset --hard", but rather 
"git diff --ours | git apply -R; git reset", but that's a tad long, no?)

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help