diff options
author | SZEDER Gábor <szeder@ira.uka.de> | 2016-10-02 18:35:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-03 12:47:19 -0700 |
commit | e94ce1394e17e1b91b943b8d41131b6aadb96b88 (patch) | |
tree | 3da28b721871bc4b5e985c87cf4a26e2ffca9750 /t/t5100/rfc2047-info-0006 | |
parent | Prepare for 2.10.1 (diff) | |
download | tgif-e94ce1394e17e1b91b943b8d41131b6aadb96b88.tar.xz |
ref-filter: strip format option after a field name only once while parsing
When parse_ref_filter_atom() iterates over a list of valid atoms to
check that a field name is one of them, it has to strip the optional
colon-separated format option suffix that might follow the field name.
However, it does so inside the loop, i.e. it performs the exact same
stripping over and over again.
Move stripping the format option suffix out of that loop, so it's only
performed once for each parsed field name.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/rfc2047-info-0006')
0 files changed, 0 insertions, 0 deletions