From 04eae51baf15d9adac52bfec6214fe51824061bf Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Tue, 29 Dec 2015 10:05:57 +0000 Subject: [PATCH] git diff: Add --staged option --- pages/common/git-diff.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-diff.md b/pages/common/git-diff.md index 9eea98161..e32fa4197 100644 --- a/pages/common/git-diff.md +++ b/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`