diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:22 -0800 |
commit | 963792ed277bde985ea9ff4953529d656b186571 (patch) | |
tree | ce457fde106f33c0cd9c75b1c15a5169752431cb /refs.c | |
parent | 34061299002fcbf5467385debbd9ad3d5f1c5a4e (diff) | |
parent | ad8c7cdadd96c66d0adf894250c8f4dd77bb2bee (diff) | |
download | git-963792ed277bde985ea9ff4953529d656b186571.tar.gz |
Merge branch 'jk/parse-config-key-cleanup'
The "parse_config_key()" API function has been cleaned up.
* jk/parse-config-key-cleanup:
parse_hide_refs_config: tell parse_config_key we don't want a subsection
parse_config_key: allow matching single-level config
parse_config_key: use skip_prefix instead of starts_with
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1035,11 +1035,10 @@ static struct string_list *hide_refs; int parse_hide_refs_config(const char *var, const char *value, const char *section) { - const char *subsection, *key; - int subsection_len; + const char *key; if (!strcmp("transfer.hiderefs", var) || - (!parse_config_key(var, section, &subsection, &subsection_len, &key) - && !subsection && !strcmp(key, "hiderefs"))) { + (!parse_config_key(var, section, NULL, NULL, &key) && + !strcmp(key, "hiderefs"))) { char *ref; int len; |