aboutsummaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>2006-08-03 16:48:41 +0100
committerJunio C Hamano <junkio@cox.net>2006-08-03 21:44:13 -0700
commit8cdf33643dc0b21d9ea922a3fdd7f64226c421aa (patch)
treec36d293c18ea9c254e68c639de46f612ba1134f6 /hash-object.c
parent15e593e4d37d1d350fef20ab666d58f6881c7f5f (diff)
downloadgit-8cdf33643dc0b21d9ea922a3fdd7f64226c421aa.tar.gz
git-8cdf33643dc0b21d9ea922a3fdd7f64226c421aa.tar.xz
Replace some calls to die(usage_str) with usage(usage_str).
The only change in behaviour should be having a "usage: " prefix on the output string rather than "fatal: ", and an exit code of 129 rather than 128. Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash-object.c b/hash-object.c
index 43bd93bff..5f89e64c1 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
if (!no_more_flags && argv[i][0] == '-') {
if (!strcmp(argv[i], "-t")) {
if (argc <= ++i)
- die(hash_object_usage);
+ usage(hash_object_usage);
type = argv[i];
}
else if (!strcmp(argv[i], "-w")) {
@@ -66,8 +66,8 @@ int main(int argc, char **argv)
hash_stdin(type, write_object);
}
else
- die(hash_object_usage);
- }
+ usage(hash_object_usage);
+ }
else {
const char *arg = argv[i];
if (0 <= prefix_length)