threads / patch / 25305

patchSync "git diff -h" with the manual, show options summary.

Subject: [PATCH] Sync "git diff -h" with the manual, show options summary.

## tl;dr

One message between Oct 1, 2010 and Oct 1, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Yann Dirson· Oct 1, 2010, 07:32 UTC · lore
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 builtin/diff.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to builtin/diff.c +2 −1
diff --git a/builtin/diff.c b/builtin/diff.c
index a43d326..8736225 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -22,7 +22,8 @@ struct blobinfo {
 };
 
 static const char builtin_diff_usage[] =
-"git diff <options> <rev>{0,2} -- <path>*";
+"git diff [<common diff options>] <commit>{0,2} -- <path>*"
+COMMON_DIFF_OPTIONS_HELP;
 
 static void stuff_change(struct diff_options *opt,
 			 unsigned old_mode, unsigned new_mode,
-- 
1.7.2.3

← back to recent threads