aboutsummaryrefslogtreecommitdiff
path: root/builtin-ls-files.c
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-06-29 22:08:38 -0700
committerJunio C Hamano <gitster@pobox.com>2009-07-06 09:45:00 -0700
commitf581de1b7b9d17c83b188bf8ffe536fb8a9dd2a4 (patch)
treea11dae2c4e5ee93216ef9d127f0af217728d2e92 /builtin-ls-files.c
parentdd787c19c4f011cc3adb422ef856f2c58d989640 (diff)
downloadgit-f581de1b7b9d17c83b188bf8ffe536fb8a9dd2a4.tar.gz
git-f581de1b7b9d17c83b188bf8ffe536fb8a9dd2a4.tar.xz
completion: __git_config_get_set_variables() handle values with spaces
Commit 0065236 (bash completion: complete variable names for "git config" with options 2009-05-08) implemented its config variable search wrong. When a config contains a value with a space and a period (.) in it, completion erroneously thinks that line in the configuration is multiple config variables. For example $ cat .git/config format.cc = Junio C Hamano <gitster@pobox.com> $ git config --unset <TAB> format.cc <gitster@pobox.com> Instead of using a for loop splitting across spaces, pipe each line to a while read loop and beef up the case statement to match only 'config.variable=value'. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-ls-files.c')
0 files changed, 0 insertions, 0 deletions