diff options
author | SZEDER Gábor <szeder@ira.uka.de> | 2015-08-20 16:14:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-20 13:15:17 -0700 |
commit | ebca2d49577665db0318a9c91c0bcca7e4eed963 (patch) | |
tree | 0d5c067201caa8c16e453bc381072527ccdecbdb /fetch-pack.c | |
parent | completion: list variable names reliably with 'git config --name-only' (diff) | |
download | tgif-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