builtin: patch-id: remove unused diff-tree prefix
commit0d32ae8d7ffab444a83ce1db11e5341a95d109dd
authorJerry Zhang <Jerry@skydio.com>
Mon, 24 Oct 2022 20:07:44 +0000 (24 20:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 22:44:20 +0000 (24 15:44 -0700)
tree99016db55ee4f7bf6e490d3990a6647bfa856c9c
parent2871f4d447214874e13cf764ab3a170c9d844ca2
builtin: patch-id: remove unused diff-tree prefix

The last git version that had "diff-tree" in the header text
of "git diff-tree" output was v1.3.0 from 2006. The header text
was changed from "diff-tree" to "commit" in 91539833
("Log message printout cleanups").

Given how long ago this change was made, it is highly unlikely that
anyone is still feeding in outputs from that git version.

Remove the handling of the "diff-tree" prefix and document the
source of the other prefixes so that the overall functionality
is more clear.

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