git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rename tracking and file-name swapping
@ 2009-09-13 11:17 Yuri D'Elia
  2009-09-13 18:14 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Yuri D'Elia @ 2009-09-13 11:17 UTC (permalink / raw)
  To: git

Hi everyone. Does rename tracking recognize two file names being swapped?

% ls -l
total 24
-rw-rw-r--   1 wavexx  wavexx  5952 Sep 13 13:09 file1.txt
-rw-rw-r--   1 wavexx  wavexx  3330 Sep 13 13:09 file2.txt
% mv file1.txt file3.txt 
% mv file2.txt file1.txt
% mv file3.txt file2.txt
% git add file1.txt file2.txt 
% git diff -M --stat --cached
 file1.txt |  150 +++++++++++++++++++++++-------------------------------------
 file2.txt |  150 +++++++++++++++++++++++++++++++++++++-----------------------
 2 files changed, 150 insertions(+), 150 deletions(-)

I would expect at least to see

  file1.txt => file2.txt
  file2.txt => file1.txt

if the contents are totally unchanged.

Am I doing something wrong?

Thanks

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-15  5:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-13 11:17 rename tracking and file-name swapping Yuri D'Elia
2009-09-13 18:14 ` Junio C Hamano
2009-09-13 21:13   ` Yuri D'Elia
2009-09-14  6:44     ` Johannes Sixt
2009-09-15  3:34   ` [Bug?] "diff -B --color" output doesn't show space errors Nanako Shiraishi
2009-09-15  4:44     ` Junio C Hamano
2009-09-15  5:05       ` [PATCH] diff --whitespace: fix blank lines at end Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).