pathspec: add copy_pathspec
[gitweb.git] / builtin / update-index.c
index ada1dff846f2b77d5f71d69db57a7eca5033b943..b9c2bd0741232fbd0358e06e7bb8981e2ef39491 100644 (file)
@@ -11,6 +11,7 @@
 #include "refs.h"
 #include "resolve-undo.h"
 #include "parse-options.h"
+#include "pathspec.h"
 
 /*
  * Default to not allowing changes to the list of files. The
@@ -796,7 +797,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);