diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-08 16:40:23 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-08 16:40:23 -0700 |
commit | 45f75a0167b4a4693f2c6005bf7db231ca91ecc8 (patch) | |
tree | d7cb273a493d3b37aad4a41284cd8e2fb68f80c4 /describe.c | |
parent | fd60acaced6de16ebfb66959067e2b29f99a133e (diff) | |
parent | 31fff305bcc6db3b8082eac7fc9e441b27964fea (diff) | |
download | git-45f75a0167b4a4693f2c6005bf7db231ca91ecc8.tar.gz |
Merge branch 'fix'
* fix:
Separate object name errors from usage errors
Documentation: {caret} fixes (git-rev-list.txt)
Fix "git diff --stat" with long filenames
Fix repo-config set-multivar error return path.
Diffstat (limited to 'describe.c')
-rw-r--r-- | describe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/describe.c b/describe.c index ff65742615..8a9cd5d52c 100644 --- a/describe.c +++ b/describe.c @@ -105,11 +105,11 @@ static void describe(char *arg, int last_one) static int initialized = 0; struct commit_name *n; - if (get_sha1(arg, sha1) < 0) - usage(describe_usage); + if (get_sha1(arg, sha1)) + die("Not a valid object name %s", arg); cmit = lookup_commit_reference(sha1); if (!cmit) - usage(describe_usage); + die("%s is not a valid '%s' object", arg, commit_type); if (!initialized) { initialized = 1; |