* Possible bug with multiple mv's and diff output
@ 2011-04-12 17:58 Kent Leonard
2011-04-12 20:45 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Kent Leonard @ 2011-04-12 17:58 UTC (permalink / raw)
To: git
Hi all,
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.
git diff --summary --find-copies --find-renames master^ master
gives output
delete mode 100644 a
copy b => c (100%)
which also doesn't show that b changed.
"git diff --raw" shows more complete information.
I am misunderstanding what should happen, or is this incorrect?
Thanks,
Kent Leonard
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible bug with multiple mv's and diff output
2011-04-12 17:58 Possible bug with multiple mv's and diff output Kent Leonard
@ 2011-04-12 20:45 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2011-04-12 20:45 UTC (permalink / raw)
To: Kent Leonard; +Cc: git
Kent Leonard <kleonard@accurev.com> 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?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-12 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 17:58 Possible bug with multiple mv's and diff output Kent Leonard
2011-04-12 20:45 ` 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).