]> git.ipfire.org Git - thirdparty/git.git/commit
patch-id: make get_one_patchid() more extensible
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 01:17:36 +0000 (18:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 01:19:14 +0000 (18:19 -0700)
commit2438294a13dc3f04684bcfb1af75008b3ca07f86
treea2d189b58b9ec0770700844bde5c0276578d3706
parentc92f3195adf61f248af5bc787def379b2db6f2e9
patch-id: make get_one_patchid() more extensible

We pass two independent Boolean flags (i.e. do we want the stable
variant of patch-id?  do we want to hash the stuff verbatim?) into
the function as two separate parameters.  Before adding the third
one and make the interface even wider, let's consolidate them into
a single flag word.

No changes in behaviour.  Just a trivial interface change.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/patch-id.c