Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 359
sivann Avatar asked Aug 09 '26 18:08

sivann


2 Answers

These show the files changed and the lines added and removed in each. In your example, 3 files changed, and in ek.face.js, one line was added, one line was removed.

like image 162
robrich Avatar answered Aug 12 '26 07:08

robrich


TODO ... 3 additions 1 deletion
htdocs/main/js/ek.balcony.js ... 7 additions 3 deletions
htdocs/main/js/ek.face.js ... 1 addition 1 deletion

As for the number... I'm not 100% sure. It may be a line-count as to how many lines were added/deleted.

like image 28
TheCompWiz Avatar answered Aug 12 '26 07:08

TheCompWiz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!