[PATCH 24/24] diff --no-index: make the usage string less scary
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Nov 9, 2009, 15:05 UTC
- Message-ID
- <1257779104-23884-24-git-send-email-jrnieder@gmail.com>
- In-Reply-To
- <20091109150235.GA23871@progeny.tock>
Start the diff --no-index usage string with "usage:" instead of "fatal:".
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> --- diff-no-index.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/diff-no-index.c b/diff-no-index.c index 4ebc1db..a1f6fdf 100644 --- a/diff-no-index.c +++ b/diff-no-index.c @@ -201,7 +201,7 @@ void diff_no_index(struct rev_info *revs, return; } if (argc != i + 2) - die("git diff %s takes two paths", + usage("git diff %s <path> <path>", no_index ? "--no-index" : "[--no-index]"); diff_setup(&revs->diffopt);
-- 1.6.5.2