]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: hoist signature parsing
authorbrian m. carlson <sandals@crustytoothpaste.net>
Thu, 11 Feb 2021 02:08:05 +0000 (02:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Feb 2021 07:35:42 +0000 (23:35 -0800)
commit88bce0e24c8f777fce1f726b4553bd32286bba04
treec9461dfdbe2633707234f9bbe512f6db3b16877d
parent937032e14aaf1eab59c96dd78938be1c48c648e1
ref-filter: hoist signature parsing

When we parse a signature in the ref-filter code, we continually
increment the buffer pointer.  Hoist the signature parsing above the
blank line delimiting headers and body so we can find the signature when
using a header to sign the buffer.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c