diff --no-index: make the usage string less scary
Start the diff --no-index usage string with "usage:" instead of "fatal:". Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Nov 9, 2009 at 09:05 UTC
d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8
1 file changed
+2
-2
diff-no-index.c
+2
-2
@@ -201,8 +201,8 @@ void diff_no_index(struct rev_info *revs,
201
return;
202
}
203
if (argc != i + 2)
204
- die("git diff %s takes two paths",
205
- no_index ? "--no-index" : "[--no-index]");
204
+ usagef("git diff %s <path> <path>",
205
+ no_index ? "--no-index" : "[--no-index]");
206
207
diff_setup(&revs->diffopt);
208
for (i = 1; i < argc - 2; ) {