Files
git/Documentation
Petr Baudis 7162dff3dd Add support for explicit type specifiers when calling git-repo-config
Currently, git-repo-config will just return the raw value of option
as specified in the config file; this makes things difficult for scripts
calling it, especially if the value is supposed to be boolean.

This patch makes it possible to ask git-repo-config to check if the option
is of the given type (int or bool) and write out the value in its
canonical form. If you do not pass --int or --bool, the behaviour stays
unchanged and the raw value is emitted.

This also incidentally fixes the segfault when option with no value is
encountered.

[jc: tweaked the option parsing a bit to make it easier to see
 that the patch does not change anything but the type stuff in
 the diff output.  Also changed to avoid "foo ? : bar" construct. ]

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-02-12 00:26:54 -08:00
..
2006-01-20 13:34:12 -08:00
2005-11-08 08:58:52 -08:00
2006-01-28 02:26:30 -08:00
2005-12-29 01:32:56 -08:00
2006-01-29 15:00:46 -08:00
2005-12-27 17:57:28 -08:00
2006-01-28 02:26:30 -08:00
2005-12-29 01:32:56 -08:00
2005-12-29 01:32:56 -08:00
2005-10-12 18:32:02 -07:00
2005-12-16 18:23:33 -08:00
2005-10-26 16:31:58 -07:00
2005-12-29 01:32:56 -08:00
2006-02-06 21:14:57 -08:00
2005-12-22 22:35:38 -08:00
2005-10-25 22:51:13 -07:00
2006-02-07 13:19:42 -08:00
2005-10-04 17:04:03 -07:00
2006-02-06 21:53:11 -08:00