[PATCH] adjust git-deltafy-script to the new diff-tree output format
[gitweb.git] / diff-cache.c
index 3c8f9e0ee97ef678c707ad0d4f4f765ee268f11e..744fffb7c8c684e9d0206da36a0fba1c502570c9 100644 (file)
@@ -154,7 +154,7 @@ static void mark_merge_entries(void)
 }
 
 static char *diff_cache_usage =
-"git-diff-cache [-p] [-r] [-z] [-m] [-M] [-C] [-R] [-S<string>] [--cached] <tree-ish>";
+"git-diff-cache [-p] [-r] [-z] [-m] [-M] [-C] [-R] [-S<string>] [--cached] <tree-ish> [<path>...]";
 
 int main(int argc, const char **argv)
 {
@@ -229,11 +229,10 @@ int main(int argc, const char **argv)
        ret = diff_cache(active_cache, active_nr);
        if (detect_rename)
                diffcore_rename(detect_rename, diff_score_opt);
-       diffcore_prune();
        if (pickaxe)
                diffcore_pickaxe(pickaxe);
        if (2 <= argc)
                diffcore_pathspec(argv + 1);
-       diff_flush(diff_output_format);
+       diff_flush(diff_output_format, 1);
        return ret;
 }