patch-id: use stable patch-id for rebases
commit51276c1832d64d3b8f4dfc06c3ef21bf74f1916e
authorJerry Zhang <jerry@skydio.com>
Mon, 24 Oct 2022 20:07:40 +0000 (24 20:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 22:44:19 +0000 (24 15:44 -0700)
tree1f091339b7733c7c1fa6f7fedf30973467c50a91
parent0570be79ead35e47e29ee2587e2c8ea47c091d49
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>
builtin/log.c
diff.c
diff.h
patch-ids.c
patch-ids.h