author | Franck Bui-Huu <vagabon.xyz@gmail.com> | |
Tue, 29 Aug 2006 11:37:06 +0000 (13:37 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 30 Aug 2006 07:19:42 +0000 (00:19 -0700) | ||
commit | fc1c75ec74c372670f01f22c68193156a445728a | |
tree | 512e48046d30c057393a843fdd2a047d3a202f0c | tree | snapshot |
parent | 28f5c70b859e02e6b688bf35605678680c08045b | commit | diff |
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>
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 | diff | blob | history |