diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2009-11-09 09:05:04 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 12:00:21 -0800 |
commit | d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8 (patch) | |
tree | 95411c8735ca0e9bcaa183e9efbe65e972db21a4 /diff-no-index.c | |
parent | merge-{recursive,subtree}: use usagef() to print usage (diff) | |
download | tgif-d74bb308fa9e49e0a5b9a0792e6079bbc0c8aea8.tar.xz |
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.c | 4 |
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; ) { |