aboutsummaryrefslogtreecommitdiffstats
path: root/diff.h
diff options
context:
space:
mode:
authorJerry Zhang <jerry@skydio.com>2022-10-24 20:07:40 +0000
committerJunio C Hamano <gitster@pobox.com>2022-10-24 15:44:19 -0700
commit51276c1832d64d3b8f4dfc06c3ef21bf74f1916e (patch)
tree1f091339b7733c7c1fa6f7fedf30973467c50a91 /diff.h
parent0570be79ead35e47e29ee2587e2c8ea47c091d49 (diff)
downloadgit-51276c1832d64d3b8f4dfc06c3ef21bf74f1916e.tar.gz
patch-id: use stable patch-id for rebases
Git doesn't persist patch-ids during the rebase process, so there is no need to specifically invoke the unstable variant. Use the stable logic for all internal patch-id calculations to minimize the number of code paths and improve test coverage. Signed-off-by: Jerry Zhang <jerry@skydio.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.h b/diff.h
index 8ae18e5ab1..fd33caeb25 100644
--- a/diff.h
+++ b/diff.h
@@ -634,7 +634,7 @@ int run_diff_files(struct rev_info *revs, unsigned int option);
int run_diff_index(struct rev_info *revs, unsigned int option);
int do_diff_cache(const struct object_id *, struct diff_options *);
-int diff_flush_patch_id(struct diff_options *, struct object_id *, int, int);
+int diff_flush_patch_id(struct diff_options *, struct object_id *, int);
void flush_one_hunk(struct object_id *result, git_hash_ctx *ctx);
int diff_result_code(struct diff_options *, int);