log-tree.c: cleanup a bit append_signoff()
commitfc1c75ec74c372670f01f22c68193156a445728a
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Tue, 29 Aug 2006 11:37:06 +0000 (29 13:37 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 30 Aug 2006 07:19:42 +0000 (30 00:19 -0700)
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 <vagabon.xyz@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
log-tree.c