]> git.ipfire.org Git - thirdparty/haproxy.git/commit
SCRIPTS: git-show-backports: add -H to use the hash of the commit message
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2016 15:44:45 +0000 (16:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2016 15:48:16 +0000 (16:48 +0100)
commit5e637e556d12cd4d8b97b4896448ef6f3396224b
treec51a5bf1a9150a229ddcf9db454ae4bdd98587c5
parentb684cd4642186fd64c9335c316aeca16cc87d9de
SCRIPTS: git-show-backports: add -H to use the hash of the commit message

Sometimes certain commits don't contain useful tracking information but
we'd still like to be able to report them. Here we implement a hash on
the author's name, e-mail and date, the subject and the body before the
first s-o-b or cherry-picked line. These parts are supposed to be
reasonable invariant across backports and are usable to compute an
invariant hash of a given commit. When we don't find ancestry in a
commit, we try this method (if -H is specified) to compare commits
hashes and we can report a match. The equivalent commit is reported
as "XXXX+?" to indicate that it's an apparent backport but we don't
know how far it goes.
scripts/git-show-backports