convert read_cache_preload() to take struct pathspec
[gitweb.git] / builtin / commit.c
index 64d1a3d236546c620fc2a7abb68cf3f5c824ea6e..0344ec72afd171c6c55386eb70432745dbc01248 100644 (file)
@@ -294,7 +294,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix,
                       PATHSPEC_PREFER_FULL,
                       prefix, argv);
 
-       if (read_cache_preload(pathspec.raw) < 0)
+       if (read_cache_preload(&pathspec) < 0)
                die(_("index file corrupt"));
 
        if (interactive) {
@@ -1245,7 +1245,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
                       PATHSPEC_PREFER_FULL,
                       prefix, argv);
 
-       read_cache_preload(s.pathspec.raw);
+       read_cache_preload(&s.pathspec);
        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, s.pathspec.raw, NULL, NULL);
 
        fd = hold_locked_index(&index_lock, 0);