git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Spurious line insertion/deletion stats for binary file
@ 2010-10-12 22:47 Kevin Ballard
  2010-10-15 19:26 ` Neal Kreitzinger
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ballard @ 2010-10-12 22:47 UTC (permalink / raw)
  To: Git Mailing List

I just noticed something fairly odd when making a commit that changed a single binary file:

kevin> (develop +=)> git ci -m 'Replace binary file'
[develop c0c3b98] Replace binary file
 1 files changed, 8 insertions(+), 14 deletions(-)
 rewrite Resources/some_image.png (99%)

The commit results seem to be treating the binary file as text in order to give me insertion/deletion stats. This is quite obviously wrong. For this situation, a fairly simple solution would be to change that line to something like

 1 files changed, 2652 bytes removed

but the correct behavior is a bit less obvious when there are multiple files changed. Does anyone have a good suggestion for how to handle this case?

-Kevin Ballard

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

end of thread, other threads:[~2010-10-15 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 22:47 Spurious line insertion/deletion stats for binary file Kevin Ballard
2010-10-15 19:26 ` Neal Kreitzinger

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).