Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $ git diff -C --stat HEAD c9af3e6136e8aec1f79368c2a6164e56bf7a7e07
  2. app/controllers/application_controller.rb | 34 +++-------------------------
  3. 1 files changed, 4 insertions(+), 30 deletions(-)
  4.  
  5. git diff --numstat
  6.  
  7. MOD_PATTERN='^.+([-|{+).*$'
  8. ADD_PATTERN='^{+.*+}$'
  9. REM_PATTERN='^[-.*-]$'
  10. git diff --word-diff --unified=0 | sed -nr
  11. -e "s/$MOD_PATTERN/modified/p"
  12. -e "s/$ADD_PATTERN/added/p"
  13. -e "s/$REM_PATTERN/removed/p"
  14. | sort | uniq -c
  15.  
  16. git show commit-id --stat
  17.  
  18. git diff commit-id-before commit-id --stat
  19.  
  20. git diff commit-id1 commit-id2 --stat
  21.  
  22. git log --stat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement