Re: [PATCH 0/5] git_config_string janitorial conversions.
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Jul 6, 2008, 03:47 UTC
- Message-ID
- <200807060547.19085.chriscool@tuxfamily.org>
- In-Reply-To
- <cover.1215234749.git.whee@smaertness.net>
Le samedi 5 juillet 2008, Brian Hetro a écrit :
> These patches are related to the git_config_string "janitorial" work.
Your patches look good to me.
By the way, your first patch in the series seems to fix a bug:
Show 5 quoted lines
> int git_commit_config(const char *k, const char *v, void *cb)
> {
> - if (!strcmp(k, "commit.template")) {
> - if (!v)
> - return config_error_nonbool(v);It should have been: - return config_error_nonbool(k);
Show 5 quoted lines
> - template_file = xstrdup(v); > - return 0; > - } > + if (!strcmp(k, "commit.template")) > + return git_config_string(&template_file, k, v);
There is the same bug in "wt-status.c". I will send a fix for this one.
So (for the patch series):
Tested-by: Christian Couder <chriscool@tuxfamily.org>
Thanks, Christian.