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>
This commit is contained in:

committed by
Junio C Hamano

parent
0874f46e71
commit
d74bb308fa
@ -201,8 +201,8 @@ void diff_no_index(struct rev_info *revs,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (argc != i + 2)
|
if (argc != i + 2)
|
||||||
die("git diff %s takes two paths",
|
usagef("git diff %s <path> <path>",
|
||||||
no_index ? "--no-index" : "[--no-index]");
|
no_index ? "--no-index" : "[--no-index]");
|
||||||
|
|
||||||
diff_setup(&revs->diffopt);
|
diff_setup(&revs->diffopt);
|
||||||
for (i = 1; i < argc - 2; ) {
|
for (i = 1; i < argc - 2; ) {
|
||||||
|
Reference in New Issue
Block a user