]> git.ipfire.org Git - thirdparty/git.git/blobdiff - range-diff.c
Merge branch 'js/stash-apply-in-secondary-worktree'
[thirdparty/git.git] / range-diff.c
index ba1e9a4265a6cb3e6ae77b2f32f9fd64bee04cc6..f2fc1e02c2c74034c3fe1f3c29fcc81458ccb738 100644 (file)
@@ -52,6 +52,7 @@ static int read_patches(const char *range, struct string_list *list)
 
        argv_array_pushl(&cp.args, "log", "--no-color", "-p", "--no-merges",
                        "--reverse", "--date-order", "--decorate=no",
+                       "--no-prefix",
                        /*
                         * Choose indicators that are not used anywhere
                         * else in diffs, but still look reasonable
@@ -111,7 +112,7 @@ static int read_patches(const char *range, struct string_list *list)
                        if (!util->diff_offset)
                                util->diff_offset = buf.len;
                        line[len - 1] = '\n';
-                       len = parse_git_diff_header(&root, &linenr, 1, line,
+                       len = parse_git_diff_header(&root, &linenr, 0, line,
                                                    len, size, &patch);
                        if (len < 0)
                                die(_("could not parse git header '%.*s'"), (int)len, line);