commit | ebca2d49577665db0318a9c91c0bcca7e4eed963 | [log] [tgz] |
---|---|---|
author | SZEDER Gábor <szeder@ira.uka.de> | Thu Aug 20 16:14:22 2015 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Aug 20 13:15:17 2015 -0700 |
tree | 0d5c067201caa8c16e453bc381072527ccdecbdb | |
parent | 905f2036d0975a828f764947384e732c2908d6eb [diff] |
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>