summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2015-08-20 16:14:22 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-20 13:15:17 -0700
commitebca2d49577665db0318a9c91c0bcca7e4eed963 (patch)
tree0d5c067201caa8c16e453bc381072527ccdecbdb /fetch-pack.c
parentcompletion: list variable names reliably with 'git config --name-only' (diff)
downloadtgif-ebca2d49577665db0318a9c91c0bcca7e4eed963.tar.xz
config: restructure format_config() for better control flow
Commit 578625fa91 (config: add '--name-only' option to list only variable names, 2015-08-10) modified format_config() such that it returned from the middle of the function when showing only keys, resulting in ugly code structure. Reorganize the if statements and dealing with the key-value delimiter to make the function easier to read. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.c')
0 files changed, 0 insertions, 0 deletions