Browse Source

git-show: improve --stat, add --summary

Waldir Pimenta 4 years ago
parent
commit
c91bb1b19c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pages/common/git-show.md

+ 5 - 1
pages/common/git-show.md

@@ -23,10 +23,14 @@
 
 `git show --oneline -s {{commit}}`
 
-- Show only the list of the files changed in a commit:
+- Show only statistics (added/removed characters) about the changed files:
 
 `git show --stat {{commit}}`
 
+- Show only the list of added, renamed or deleted files:
+
+`git show --summary {{commit}}`
+
 - Show the contents of a file as it was at a given revision (e.g. branch, tag or commit):
 
 `git show {{revision}}:{{path/to/file}}`