Use `git_config_get_string()` instead of `git_config()` to take advantage of
the config-set API which provides a cleaner control flow.
Signed-off-by: Tanay Abhra tanay...@gmail.com
---
branch.c | 24
1 file changed, 4 insertions(+), 20 deletions(-)
diff --git a/branch.c
Tanay Abhra tanay...@gmail.com writes:
Use `git_config_get_string()` instead of `git_config()` to take advantage of
the config-set API which provides a cleaner control flow.
Signed-off-by: Tanay Abhra tanay...@gmail.com
---
branch.c | 24
1 file changed, 4
Junio C Hamano gits...@pobox.com writes:
Tanay Abhra tanay...@gmail.com writes:
-if (cb.value)
-strbuf_addstr(buf, cb.value);
+strbuf_addstr(buf, v);
+free((char*)v);
In this cast, I smell an API mistake to insist an extra constness to
the output parameter of
On 7/21/2014 11:29 PM, Junio C Hamano wrote:
Tanay Abhra tanay...@gmail.com writes:
Use `git_config_get_string()` instead of `git_config()` to take advantage of
the config-set API which provides a cleaner control flow.
Signed-off-by: Tanay Abhra tanay...@gmail.com
---
branch.c | 24
4 matches
Mail list logo