git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Brian Hetro
Message 7 of 7 in “git_config_string janitorial conversions.”
  1. 0/5 git_config_string janitorial conversions.Brian Hetro, Jul 5, 2008
  2. 1/5 builtin-commit.c: Use 'git_config_string' to get 'commit.template'Brian Hetro, Jul 5, 2008
  3. 2/5 builtin-log.c: Use 'git_config_string' to get 'format.subjectprefix' and 'format.suffix'Brian Hetro, Jul 5, 2008
  4. 3/5 convert.c: Use 'git_config_string' to get 'smudge' and 'clean'Brian Hetro, Jul 5, 2008
  5. 4/5 diff.c: Use 'git_config_string' to get 'diff.external'Brian Hetro, Jul 5, 2008
  6. 5/5 http.c: Use 'git_config_string' to clean up SSL config.Brian Hetro, Jul 5, 2008
  7. Christian CouderJul 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.