summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2016-10-02 18:35:11 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-03 12:47:19 -0700
commite94ce1394e17e1b91b943b8d41131b6aadb96b88 (patch)
tree3da28b721871bc4b5e985c87cf4a26e2ffca9750 /exec_cmd.c
parentPrepare for 2.10.1 (diff)
downloadtgif-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 'exec_cmd.c')
0 files changed, 0 insertions, 0 deletions