diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-05 18:33:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-05 18:33:16 -0700 |
commit | 08b51f51e6a4cf2f5ad4b893707f1337a450e499 (patch) | |
tree | 1ff3a0c83f79c221194ac91ee6c2018d477ec7af /diff.c | |
parent | 1fc561d169ac08c411e34a4439894c5201b3d080 (diff) | |
parent | 9b373229506c9f563b2e2f053c3f1d932789fbfd (diff) | |
download | git-08b51f51e6a4cf2f5ad4b893707f1337a450e499.tar.gz |
Merge branch 'qq/maint'
* qq/maint:
clone -q: honor "quiet" option over native transports.
attribute documentation: keep EXAMPLE at end
builtin-commit.c: Use 'git_config_string' to get 'commit.template'
http.c: Use 'git_config_string' to clean up SSL config.
diff.c: Use 'git_config_string' to get 'diff.external'
convert.c: Use 'git_config_string' to get 'smudge' and 'clean'
builtin-log.c: Use 'git_config_string' to get 'format.subjectprefix' and 'format.suffix'
Documentation cvs: Clarify when a bare repository is needed
Documentation: be precise about which date --pretty uses
Conflicts:
Documentation/gitattributes.txt
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -153,12 +153,8 @@ int git_diff_ui_config(const char *var, const char *value, void *cb) diff_auto_refresh_index = git_config_bool(var, value); return 0; } - if (!strcmp(var, "diff.external")) { - if (!value) - return config_error_nonbool(var); - external_diff_cmd_cfg = xstrdup(value); - return 0; - } + if (!strcmp(var, "diff.external")) + return git_config_string(&external_diff_cmd_cfg, var, value); if (!prefixcmp(var, "diff.")) { const char *ep = strrchr(var, '.'); |