summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-10 01:57:57 -0500
committerJunio C Hamano <gitster@pobox.com>2013-04-14 23:18:58 -0700
commitddc996d767025a4ffcb52a813d32a5095f357e44 (patch)
tree20e970bd65b82eada4e559a47d72a18813c58bd5 /commit.h
parentb4cfbc969cd910992a08b12dc612d19323668e09 (diff)
downloadgit-ddc996d767025a4ffcb52a813d32a5095f357e44.tar.gz
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 'commit.h')
0 files changed, 0 insertions, 0 deletions