Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Possible bug with multiple mv's and diff output

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

Kent Leonard [off-list ref] writes:
When I do this in repo with files a and b:
  git mv b c
  git mv a b
  git commit -m shuffle
  git diff --summary master^ master

I get output:
  delete mode 100644 a
  create mode 100644 c
Which does not indicate that the contents of b changed.
Isn't that because --summary is only about tree-structural changes?  If b
was in preimage and b still is in postimage, as far as b is concerned that
path stayed in the tree across the change, and there is nothing to report.
"git diff --raw" shows more complete information.
Try something more sensible like "--summary --stat" instead of "--summary"
alone, perhaps?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help