diff options
| author | Derrick Stolee <stolee@gmail.com> | 2026-02-23 12:26:54 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:23:41 -0800 |
| commit | 645f92a3e9179ebf1ed42dc4fa05cc8dd71e3e9c (patch) | |
| tree | aa0dbd2a064f60ae3c6300ee454feac35dd5fa06 /contrib/persistent-https | |
| parent | 2d4ab5a885f365cb66156ff4553f88c000dfa307 (diff) | |
| download | git-645f92a3e9179ebf1ed42dc4fa05cc8dd71e3e9c.tar.gz git-645f92a3e9179ebf1ed42dc4fa05cc8dd71e3e9c.zip | |
config: restructure format_config()
The recent changes have replaced the bodies of most if/else-if cases
with simple helper method calls. This makes it easy to adapt the
structure into a clearer switch statement, leaving a simple if/else in
the default case.
Make things a little simpler to read by reducing the nesting depth via a
new goto statement when we want to skip values.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
