Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Merge: What do the pluses mean?

Tags:

git

merge

github

I ran "git merge" from Terminal on Mac OS X to merge a branch into my master and receive output that looks like:

 spec/models/user_spec.rb    57 ++++++++++++++++++++

What does the "57 ++++++++++++++++++++" mean? Is that how many times I inserted/modified that file? What are all the plusses for?

like image 277
Trent Scott Avatar asked Feb 11 '11 03:02

Trent Scott


1 Answers

In complement to other answers: this is the diffstat syntax, not just a Git thing. Git shows the diffstat after a merge, or when you ask for it like git diff --stat which produces roughly the same output as git diff | diffstat.

like image 79
Matthieu Moy Avatar answered Oct 21 '22 06:10

Matthieu Moy