diff options
author | Jerry Zhang <jerry@skydio.com> | 2022-10-24 22:07:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-25 00:44:19 +0200 |
commit | 51276c1832d64d3b8f4dfc06c3ef21bf74f1916e (patch) | |
tree | 1f091339b7733c7c1fa6f7fedf30973467c50a91 /patch-ids.h | |
parent | patch-id: fix stable patch id for binary / header-only (diff) | |
download | git-51276c1832d64d3b8f4dfc06c3ef21bf74f1916e.tar.xz git-51276c1832d64d3b8f4dfc06c3ef21bf74f1916e.zip |
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 'patch-ids.h')
-rw-r--r-- | patch-ids.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patch-ids.h b/patch-ids.h index ab6c6a6804..490d739371 100644 --- a/patch-ids.h +++ b/patch-ids.h @@ -20,7 +20,7 @@ struct patch_ids { }; int commit_patch_id(struct commit *commit, struct diff_options *options, - struct object_id *oid, int, int); + struct object_id *oid, int); int init_patch_ids(struct repository *, struct patch_ids *); int free_patch_ids(struct patch_ids *); |