summaryrefslogtreecommitdiff
path: root/builtin-merge-file.c
diff options
context:
space:
mode:
authorLibravatar Benjamin Kramer <benny.kra@googlemail.com>2010-01-26 18:48:36 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-26 10:44:10 -0800
commit24072c0256a520408575416fe8706667b576ff99 (patch)
tree1155e3fcc4cd65d214fc406e1858f95f283d12eb /builtin-merge-file.c
parentam: fix patch format detection for Thunderbird "Save As" emails (diff)
downloadtgif-24072c0256a520408575416fe8706667b576ff99.tar.xz
grep: use REG_STARTEND (if available) to speed up regexec
BSD and glibc have an extension to regexec which takes a buffer + length pair instead of a NUL-terminated string. Since we already have the length computed this can save us a strlen call inside regexec. Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-merge-file.c')
0 files changed, 0 insertions, 0 deletions