]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/stash.c
diff: spell DIFF_INDEX_CACHED out when calling run_diff_index()
[thirdparty/git.git] / builtin / stash.c
index fe64cde9ce3010e812f789dfbe040c64f16bec45..fe5052f12fd2b6b34e26936ee1fbc078539a0e9f 100644 (file)
@@ -1111,7 +1111,7 @@ static int check_changes_tracked_files(const struct pathspec *ps)
        add_head_to_pending(&rev);
        diff_setup_done(&rev.diffopt);
 
-       result = run_diff_index(&rev, 1);
+       result = run_diff_index(&rev, DIFF_INDEX_CACHED);
        if (diff_result_code(&rev.diffopt, result)) {
                ret = 1;
                goto done;