Browse Source

git diff: Add --staged option

Eliot Sykes 9 years ago
parent
commit
04eae51baf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/git-diff.md

+ 4 - 0
pages/common/git-diff.md

@@ -13,3 +13,7 @@
 - Output a condensed summary of extended header information.
 
 `git diff --summary {{PATHSPEC}}`
+
+- Show staged (added, but not yet committed) changes only.
+
+`git diff --staged`