log-tree.c: cleanup a bit append_signoff()
authorFranck Bui-Huu <redacted>
Tue, 29 Aug 2006 11:37:06 +0000 (13:37 +0200)
committerJunio C Hamano <redacted>
Wed, 30 Aug 2006 07:19:42 +0000 (00:19 -0700)
commitfc1c75ec74c372670f01f22c68193156a445728a
tree512e48046d30c057393a843fdd2a047d3a202f0c
parent28f5c70b859e02e6b688bf35605678680c08045b
log-tree.c: cleanup a bit append_signoff()

This patch clean up append_signoff() by moving specific code that
looks up for "^[-A-Za-z]+: [^@]+@" pattern into a function.

It also stops the primary search when the cursor oversteps
'buf + at' limit.

This patch changes slightly append_signoff() behaviour too. If we
detect any Signed-off-by pattern during the primary search, we
needn't to do a pattern research after.

Signed-off-by: Franck Bui-Huu <redacted>
Signed-off-by: Junio C Hamano <redacted>
log-tree.c
git clone https://git.99rst.org/PROJECT