瀏覽代碼

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

Waldir Pimenta 4 年之前
父節點
當前提交
c91bb1b19c
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      pages/common/git-show.md

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

@@ -23,10 +23,14 @@
 
 
 `git show --oneline -s {{commit}}`
 `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}}`
 `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):
 - 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}}`
 `git show {{revision}}:{{path/to/file}}`