Re: preventing evil merges

2013-06-03 Thread Antoine Pelisse
On Mon, Jun 3, 2013 at 7:20 PM, Junio C Hamano wrote: > Sandro Santilli writes: > >> git merge anotherbranch >> git add something >> git commit --amend >> >> After the steps above the addition of "something" can't be found in >> the history anymore, but the file is there. > > This is a very co

Re: preventing evil merges

2013-06-03 Thread Junio C Hamano
Sandro Santilli writes: > git merge anotherbranch > git add something > git commit --amend > > After the steps above the addition of "something" can't be found in > the history anymore, but the file is there. This is a very common and sensible thing to do when dealing with semantic conflict.

preventing evil merges

2013-05-30 Thread Sandro Santilli
Hey all, I've be burnt by what someone on IRC referred to as "evil merges", that is loss of history after amending a merge commit: git merge anotherbranch git add something git commit --amend After the steps above the addition of "something" can't be found in the history anymore, but the file