gitgit-diffdiffstat

What do the git statistics mean?


I probably don't know how to search for this, but can't find what the git stats that are shown when you do a git pull or a "git show --stat 947a403" (--stat is not in the manpage) It's supposed to be line ins/del but they don't really match.

 TODO                           |    6 +++-
 htdocs/main/js/ek.balcony.js   |   18 +++++++---
 htdocs/main/js/ek.face.js      |    3 +-
 htdocs/main/js/ek.main.js      |    2 +-
 htdocs/main/js/ek.tsakiseis.js |    2 +-
 octave/.point2tsak.m.kate-swp  |  Bin 66 -> 0 bytes
 octave/initialiseEdf-balc.m    |   68 ------------------------------------
 octave/initialiseEdfbalc.m     |   75 ----------------------------------------
 8 files changed, 22 insertions(+), 152 deletions(-)

What are these numbers and the + and - ? Is this something like a levenshtein distance?


Solution

  • Well, the manual is here: http://invisible-island.net/diffstat/ or diffstat(1) The counts are as reported by diff. The difference between +/- and the count is just rounding.