Re: [PATCH v8 2/2] test-config: add tests for the config_set API

2014-07-15 Thread Tanay Abhra
Junio C Hamano gitster at pobox.com writes: Tanay Abhra tanayabh at gmail.com writes: diff --git a/test-config.c b/test-config.c new file mode 100644 index 000..dc313c2 --- /dev/null +++ b/test-config.c at at -0,0 +1,125 at at + + +int main(int argc, char **argv)

Re: [PATCH v8 2/2] test-config: add tests for the config_set API

2014-07-11 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: diff --git a/test-config.c b/test-config.c new file mode 100644 index 000..dc313c2 --- /dev/null +++ b/test-config.c +int main(int argc, char **argv) +{ + int i, val; + const char *v; + const struct string_list *strptr; +

Re: [PATCH v8 2/2] test-config: add tests for the config_set API

2014-07-11 Thread Junio C Hamano
Tanay Abhra tanay...@gmail.com writes: diff --git a/t/t1308-config-set.sh b/t/t1308-config-set.sh new file mode 100755 index 000..87a29f1 --- /dev/null +++ b/t/t1308-config-set.sh @@ -0,0 +1,170 @@ +#!/bin/sh + +test_description='Test git config-set API in different settings' + +.

[PATCH v8 2/2] test-config: add tests for the config_set API

2014-07-10 Thread Tanay Abhra
Expose the `config_set` C API as a set of simple commands in order to facilitate testing. Add tests for the `config_set` API as well as for `git_config_get_*()` family for the usual config files. Signed-off-by: Tanay Abhra tanay...@gmail.com --- .gitignore| 1 + Makefile