Re: Should copy/rename detection consider file overwrites?

2015-01-23 Thread Mike Hommey
On Fri, Jan 23, 2015 at 06:04:19AM -0500, Jeff King wrote: On Fri, Jan 23, 2015 at 10:29:08AM +0900, Mike Hommey wrote: While fooling around with copy/rename detection, I noticed that it doesn't detect the case where you copy or rename a file on top of another: $ git init $ (echo

Re: Should copy/rename detection consider file overwrites?

2015-01-23 Thread Jeff King
On Fri, Jan 23, 2015 at 10:29:08AM +0900, Mike Hommey wrote: While fooling around with copy/rename detection, I noticed that it doesn't detect the case where you copy or rename a file on top of another: $ git init $ (echo foo; echo bar) foo If I replace this with a longer input, like:

Should copy/rename detection consider file overwrites?

2015-01-22 Thread Mike Hommey
Hi, While fooling around with copy/rename detection, I noticed that it doesn't detect the case where you copy or rename a file on top of another: $ git init $ (echo foo; echo bar) foo $ git add foo $ git commit -m foo $ echo 0 bar $ git add bar $ git commit -m bar $ git mv -f foo bar $ git