Git's pull output has been explained here fairly well. In spite of this I'm still unsure exactly what the text graph relates to.
For example:
git diff --stat master HEAD^
Outputs (truncated):
Site/index.php | 118 ++--
While the number of lines modified is clearly displayed as 118, the text graph is a little harder to interpret.
Could this relate to the ratio of added and removed lines?
The git diff command displays the differences between files in two commits or between a commit and your current repository. You can see what text has been added to, removed from, and changed in a file. By default, the git diff command displays any uncommitted changes to your repository.
Computing diffsThe diff is dynamically generated from the snapshot data by comparing the root trees of the commit and its parent. Git can compare any two snapshots in time, not just adjacent commits. To compare two commits, start by looking at their root trees, which are almost always different.
When viewing a combined diff, if the two files you're comparing have a line that's different from what they were merged into, you will see the ++ to represent: one line that was added does not appear in either file1 or file2.
The main difference between the commands is that git diff is specially aimed at comparisons, and it's very powerful at that: It can compare commits, branches, a single file across revisions or branches, etc. On the other hand, git status is specifically for the status of the working tree.
Yes it's the ratio of added and removed lines.
See also:
man diffstat
git diff --numstat "@{1 day ago}"
Parameters:
diff
= Show diff--numstat
= show the number of lines inserted and removed@{1 day ago}
= Period.0 1 WebContent/WEB-INF/tags/Grid.tag
38 30 ant/build.xml
0
38
) = inserted1
30
) = removedPS: Columns are separated by tab (\t
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With