diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2020-01-27 08:04:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-10 10:52:10 -0800 |
commit | ceff1a13084bba74b607d738c6c467365aa6a5f7 (patch) | |
tree | 690b7de335addfaa9abe888f63b97a6f271d9ea0 /builtin/mailsplit.c | |
parent | remote: clean-up by returning early to avoid one indentation (diff) | |
download | tgif-ceff1a13084bba74b607d738c6c467365aa6a5f7.tar.xz |
remote: clean-up config callback
Some minor clean-ups in function `config_read_branches`:
* remove hardcoded length in `key += 7`
* call `xmemdupz` only once
* use a switch to handle the configuration type and add a `BUG()`
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailsplit.c')
0 files changed, 0 insertions, 0 deletions