summaryrefslogtreecommitdiff
path: root/t/t9602
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-02-25 20:27:40 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-27 11:20:18 -0800
commitb072504ce17564bcfd8cb82d6e3948720626065d (patch)
treec777abf13c9bc8ae1b28bbea18264c42f8abf6b0 /t/t9602
parent50a01cc48c9a46fe75e4a014fb7847c2f4482406 (diff)
downloadgit-rs/commit-parsing-optim.tar.gz
commit: don't check for space twice when looking for headerrs/commit-parsing-optim
Both standard_header_field() and excluded_header_field() check if there's a space after the buffer that's handed to them. We already check in the caller if that space is present. Don't bother calling the functions if it's missing, as they are guaranteed to return 0 in that case, and remove the now redundant checks from them. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9602')
0 files changed, 0 insertions, 0 deletions