summaryrefslogtreecommitdiff
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-09 15:05:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 20:00:21 (GMT)
commitd74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8 (patch)
tree95411c8735ca0e9bcaa183e9efbe65e972db21a4 /diff-no-index.c
parent0874f46e711393b61f6375ab9e2cd4a0c2b812e9 (diff)
downloadgit-d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8.zip
git-d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8.tar.gz
git-d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8.tar.bz2
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 4ebc1db..aae8e7a 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; ) {