Browse Source

Merge pull request #454 from eliotsykes/patch-4

git diff: Add --staged option
Igor Shubovych 9 years ago
parent
commit
581c45154b
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`