summaryrefslogtreecommitdiff
path: root/show-index.c
diff options
context:
space:
mode:
Diffstat (limited to 'show-index.c')
-rw-r--r--show-index.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/show-index.c b/show-index.c
index 45bb535773..5a9eed7fd8 100644
--- a/show-index.c
+++ b/show-index.c
@@ -1,6 +1,9 @@
#include "cache.h"
#include "pack.h"
+static const char show_index_usage[] =
+"git show-index < <packed archive index>";
+
int main(int argc, char **argv)
{
int i;
@@ -8,6 +11,10 @@ int main(int argc, char **argv)
unsigned int version;
static unsigned int top_index[256];
+ git_setup_gettext();
+
+ if (argc != 1)
+ usage(show_index_usage);
if (fread(top_index, 2 * 4, 1, stdin) != 1)
die("unable to read header");
if (top_index[0] == htonl(PACK_IDX_SIGNATURE)) {