aboutsummaryrefslogtreecommitdiffstats
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-09 09:05:04 -0600
committerJunio C Hamano <gitster@pobox.com>2009-11-10 12:00:21 -0800
commitd74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8 (patch)
tree95411c8735ca0e9bcaa183e9efbe65e972db21a4 /diff-no-index.c
parent0874f46e711393b61f6375ab9e2cd4a0c2b812e9 (diff)
downloadgit-d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8.tar.gz
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>
Diffstat (limited to 'diff-no-index.c')
-rw-r--r--diff-no-index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-no-index.c b/diff-no-index.c
index 4ebc1dbd87..aae8e7accc 100644
--- a/diff-no-index.c
+++ b/diff-no-index.c
@@ -201,8 +201,8 @@ void diff_no_index(struct rev_info *revs,
return;
}
if (argc != i + 2)
- die("git diff %s takes two paths",
- no_index ? "--no-index" : "[--no-index]");
+ usagef("git diff %s <path> <path>",
+ no_index ? "--no-index" : "[--no-index]");
diff_setup(&revs->diffopt);
for (i = 1; i < argc - 2; ) {