X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=hash-object.c;h=5f89e64c13d6f13fd832309041a6a9fa9d0bca5c;hb=8cdf33643dc0b21d9ea922a3fdd7f64226c421aa;hp=43bd93bffb3f5e0b7b19a62865347a421d6a56a3;hpb=15e593e4d37d1d350fef20ab666d58f6881c7f5f;p=git.git 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)