summaryrefslogtreecommitdiff
path: root/git-mergetool.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2016-10-02 16:35:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-03 19:47:19 (GMT)
commite94ce1394e17e1b91b943b8d41131b6aadb96b88 (patch)
tree3da28b721871bc4b5e985c87cf4a26e2ffca9750 /git-mergetool.sh
parent92d426662b0673adcd41995e6c2f0afcb9ad39af (diff)
downloadgit-e94ce1394e17e1b91b943b8d41131b6aadb96b88.zip
git-e94ce1394e17e1b91b943b8d41131b6aadb96b88.tar.gz
git-e94ce1394e17e1b91b943b8d41131b6aadb96b88.tar.bz2
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 'git-mergetool.sh')
0 files changed, 0 insertions, 0 deletions