20 questions
1 vote
0 answers
59 views
Can I get git diff --stat to count character rather than lines added/removed?
I'm writing a patch for my code which mainly replaces contents within lines. I want the git diff --stat (and later git log --stat) to show me the numbers of characters, rather than lines, added or ...
6 votes
0 answers
1k views
git status with number of lines changed
i want git status to also list number of lines changed, like those + and - on git pull: example) ❯ LANG=c git status On branch develop Your branch is up to date with 'upstream/develop'. Changes not ...
53 votes
3 answers
50k views
Git diff --stat explanation
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): ...
2 votes
1 answer
3k views
How to show number of lines added and deleted for every file in git log and git diff?
If I do git log <commit-id> --stat or git diff with --stat, I get something like: myproj/src/__main__.py | 1 + myproj/{ => src}/utils.py ...
1 vote
1 answer
378 views
How to force diffstat to always show number of inserts, deletes and modifications even for zero values?
I'm doing a diffstat on my merge to see how many inserts, deletes and modifications I made like so: git show 526162eed6 --first-parent --unified=0 | diffstat -m This lists all the files and gives a ...
10 votes
2 answers
1k views
show fetched commits after git pull --rebase
Is there a way to see what commits have been pulled in from the remote repository after you do a git pull --rebase? In other words: git pull will show a summary of changed files at the end (like git ...
13 votes
4 answers
3k views
Git Merge: What do the pluses mean?
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 ++++++++++++++++...
2 votes
2 answers
2k views
what does "insertions and deletions" mean and how the numbers are calculated
when use diffStat or git diff to analyze the code,it often shows the result below, 71 files changed, 10938 insertions(+), 947 deletions(-), 3103 modifications(!), 3027 unchanged lines(=) but I do ...
1 vote
1 answer
2k views
How to have git stats on a diff file?
While in a git repository, I can do : git log --oneline --stat and I'll have a nice output looking like: ca0ab77 commit message a/file/changed | 19 ------------------- 1 file changed, 19 deletions(-)...
2 votes
1 answer
370 views
How to Git diff two branches but showing an output similar to that of Git commit?
If I do: $ git checkout some_branch [...] $ git diff another_branch It'll show a large diff between the branches. Now there's a simplified, smaller1 diff shown after applying a commit, or merge, I ...
1 vote
1 answer
154 views
How to add different colors to mercurial template command?
What I want: A command that prints number of added (+) and removed (-) from change log, where the added portion(+) written in green and deleted portion (-) written in red. What I have currently: hg ...
1 vote
1 answer
129 views
Git diff stat changes when piped
If I do: git diff --stat master I will have something like: .gitignore | 11 +- BUGS | 1 + Makefile ...
3 votes
3 answers
203 views
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 ...
1 vote
1 answer
871 views
'svn diff' not showing differences for deleted files under directory
I have directory structure as below in svn Dir1/file1 /file2 /file3 Dir2/file1 /file2 I have deleted the directory Dir1 and committed the changes to svn using svn rm Dir1 and svn ci -m"...
1 vote
0 answers
3k views
Calculating Lines of Code metric for Svn repo ( lines added , lines modified , lines deleted)
I want to generate a LOC(Lines of code) metric for my svn repo given a date range: Date: July 2012 Lines Added: 38,719 Lines Modified: 22391 Lines Deleted: 9512 Total: 70621 I ...