summaryrefslogtreecommitdiff
path: root/builtin-write-tree.c
diff options
context:
space:
mode:
authorRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>2006-08-03 15:48:41 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-04 04:44:13 (GMT)
commit8cdf33643dc0b21d9ea922a3fdd7f64226c421aa (patch)
treec36d293c18ea9c254e68c639de46f612ba1134f6 /builtin-write-tree.c
parent15e593e4d37d1d350fef20ab666d58f6881c7f5f (diff)
downloadgit-8cdf33643dc0b21d9ea922a3fdd7f64226c421aa.zip
git-8cdf33643dc0b21d9ea922a3fdd7f64226c421aa.tar.gz
git-8cdf33643dc0b21d9ea922a3fdd7f64226c421aa.tar.bz2
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 'builtin-write-tree.c')
-rw-r--r--builtin-write-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-write-tree.c b/builtin-write-tree.c
index 0289f59..6b62d7d 100644
--- a/builtin-write-tree.c
+++ b/builtin-write-tree.c
@@ -73,7 +73,7 @@ int cmd_write_tree(int argc, const char **argv, const char *unused_prefix)
else if (!strncmp(arg, "--prefix=", 9))
prefix = arg + 9;
else
- die(write_tree_usage);
+ usage(write_tree_usage);
argc--; argv++;
}