Merge branch 'ap/maint-update-index-h-is-for-help' into maint-1.8.1
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 15:36:10 +0000 (08:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 15:36:10 +0000 (08:36 -0700)
* ap/maint-update-index-h-is-for-help:
update-index: allow "-h" to also display options

builtin/update-index.c
index ada1dff846f2b77d5f71d69db57a7eca5033b943..5c7762eef404e7ea21d88991a81407f1cb99f306 100644 (file)
@@ -796,7 +796,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
        };
 
        if (argc == 2 && !strcmp(argv[1], "-h"))
-               usage(update_index_usage[0]);
+               usage_with_options(update_index_usage, options);
 
        git_config(git_default_config, NULL);