for-each-ref: introduce 'ref_array_clear()'
[gitweb.git] / builtin / diff-files.c
index 46085f862f937b005493319cea25b93bcb10c999..8ed2eb8813a442b64c8f43ed23acbdbd1c0dd452 100644 (file)
@@ -11,7 +11,7 @@
 #include "submodule.h"
 
 static const char diff_files_usage[] =
-"git diff-files [-q] [-0/-1/2/3 |-c|--cc] [<common diff options>] [<path>...]"
+"git diff-files [-q] [-0 | -1 | -2 | -3 | -c | --cc] [<common-diff-options>] [<path>...]"
 COMMON_DIFF_OPTIONS_HELP;
 
 int cmd_diff_files(int argc, const char **argv, const char *prefix)
@@ -61,7 +61,7 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
            (rev.diffopt.output_format & DIFF_FORMAT_PATCH))
                rev.combine_merges = rev.dense_combined_merges = 1;
 
-       if (read_cache_preload(rev.diffopt.pathspec.raw) < 0) {
+       if (read_cache_preload(&rev.diffopt.pathspec) < 0) {
                perror("read_cache_preload");
                return -1;
        }