diff options
author | René Scharfe <l.s.r@web.de> | 2017-02-25 20:27:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-27 11:20:18 -0800 |
commit | b072504ce17564bcfd8cb82d6e3948720626065d (patch) | |
tree | c777abf13c9bc8ae1b28bbea18264c42f8abf6b0 /contrib/subtree/.gitignore | |
parent | commit: be more precise when searching for headers (diff) | |
download | tgif-b072504ce17564bcfd8cb82d6e3948720626065d.tar.xz |
commit: don't check for space twice when looking for header
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 'contrib/subtree/.gitignore')
0 files changed, 0 insertions, 0 deletions