diff options
Diffstat (limited to 'builtin/show-index.c')
| -rw-r--r-- | builtin/show-index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/show-index.c b/builtin/show-index.c index 756d632b51..2c3e2940ce 100644 --- a/builtin/show-index.c +++ b/builtin/show-index.c @@ -9,7 +9,7 @@ #include "parse-options.h" static const char *const show_index_usage[] = { - "git show-index [--object-format=<hash-algorithm>]", + "git show-index [--object-format=<hash-algorithm>] < <pack-idx-file>", NULL }; @@ -47,7 +47,7 @@ int cmd_show_index(int argc, * the index file passed in and use that instead. */ if (!the_hash_algo) - repo_set_hash_algo(the_repository, GIT_HASH_SHA1); + repo_set_hash_algo(the_repository, GIT_HASH_DEFAULT); hashsz = the_hash_algo->rawsz; |
