]> git.ipfire.org Git - thirdparty/git.git/commit
t4204: patch-id supports various input format
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 01:17:34 +0000 (18:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 01:19:14 +0000 (18:19 -0700)
commit4210ea6f0f2ee95370694e6a3d4fbb8ccf8c4847
tree8900069d4f4d2f8a559174dc8c8e293b0db492c8
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
t4204: patch-id supports various input format

"git patch-id" was first developed to read from "git diff-tree
--stdin -p" output.  Later it was enhanced to read from "git
diff-tree --stdin -p -v", which was the downstream of an early
imitation of "git log" ("git rev-list" run in the upstream of a pipe
to feed the "diff-tree").  These days, we also read from "git
format-patch".

Their output begins slightly differently, but the patch-id computed
over them for the same commit should be the same.  Ensure that we
won't accidentally break this expectation.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4204-patch-id.sh