diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-11 10:33:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-11 10:33:25 -0700 |
commit | 7f346e9d73e75871d525664f36b7a5166b4feaf3 (patch) | |
tree | 23ed0c98c3e379888f2d16e8d8dfd31468637ec0 /branch.c | |
parent | 0c72b98f31bf6eabd75be565a08ffcf0d8e74b1f (diff) | |
parent | 8a7b034d6d451491dbcfaebc3d4ed4f08c756822 (diff) | |
download | git-7f346e9d73e75871d525664f36b7a5166b4feaf3.tar.gz |
Merge branch 'ta/config-set-1'
Use the new caching config-set API in git_config() calls.
* ta/config-set-1:
add tests for `git_config_get_string_const()`
add a test for semantic errors in config files
rewrite git_config() to use the config-set API
config: add `git_die_config()` to the config-set API
change `git_config()` return value to void
add line number and file name info to `config_set`
config.c: fix accuracy of line number in errors
config.c: mark error and warnings strings for translation
Diffstat (limited to 'branch.c')
-rw-r--r-- | branch.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -161,10 +161,7 @@ int read_branch_desc(struct strbuf *buf, const char *branch_name) strbuf_addf(&name, "branch.%s.description", branch_name); cb.config_name = name.buf; cb.value = NULL; - if (git_config(read_branch_desc_cb, &cb) < 0) { - strbuf_release(&name); - return -1; - } + git_config(read_branch_desc_cb, &cb); if (cb.value) strbuf_addstr(buf, cb.value); strbuf_release(&name); |