diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-10 01:57:57 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-14 23:18:58 -0700 |
commit | ddc996d767025a4ffcb52a813d32a5095f357e44 (patch) | |
tree | 20e970bd65b82eada4e559a47d72a18813c58bd5 /test-revision-walking.c | |
parent | completion: inline __gitcomp_1 to its sole callsite (diff) | |
download | tgif-ddc996d767025a4ffcb52a813d32a5095f357e44.tar.xz |
completion: small optimization
No need to calculate a new $c with a space if we are not going to do
anything it with it.
There should be no functional changes, except that a word "foo " with no
suffixes can't be matched. But $cur cannot have a space at the end
anyway. So it's safe.
Based on the code from SZEDER Gábor.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-revision-walking.c')
0 files changed, 0 insertions, 0 deletions