* [PATCH] Document diff.external and mergetool.<tool>.path
[not found] <E6DFE65BB5ADFE44BE13CCC976124447D5BB8D@fue-email2.ad.mc.com>
@ 2007-12-17 12:21 ` Johannes Schindelin
2007-12-17 13:42 ` [PATCH] Actually add config variable diff.external Johannes Schindelin
2007-12-18 0:13 ` [PATCH] Document diff.external and mergetool.<tool>.path Junio C Hamano
0 siblings, 2 replies; 6+ messages in thread
From: Johannes Schindelin @ 2007-12-17 12:21 UTC (permalink / raw)
To: Schuberth, Sebastian; +Cc: git, gitster
There was no documentation for the config variables diff.external
and mergetool.<tool>.path.
Noticed by Sebastian Schuberth.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
Documentation/config.txt | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index ce16fc7..8a0df57 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -448,6 +448,13 @@ diff.autorefreshindex::
affects only `git diff` Porcelain, and not lower level
`diff` commands, such as `git diff-files`.
+diff.external::
+ If this config variable is set, diff generation is not
+ performed using the internal diff machinery, but using the
+ given command. Note: if you want to use an external diff
+ program only on a subset of your files, you might want to
+ use gitlink:gitattributes[5] instead.
+
diff.renameLimit::
The number of files to consider when performing the copy/rename
detection; equivalent to the git diff option '-l'.
@@ -671,6 +678,10 @@ merge.<driver>.recursive::
performing an internal merge between common ancestors.
See gitlink:gitattributes[5] for details.
+mergetool.<tool>.path::
+ Override the path for the given tool. This is useful in case
+ your tool is not in the PATH.
+
pack.window::
The size of the window used by gitlink:git-pack-objects[1] when no
window size is given on the command line. Defaults to 10.
--
1.5.4.rc0.36.g7680
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] Actually add config variable diff.external
2007-12-17 12:21 ` [PATCH] Document diff.external and mergetool.<tool>.path Johannes Schindelin
@ 2007-12-17 13:42 ` Johannes Schindelin
2007-12-18 0:13 ` [PATCH] Document diff.external and mergetool.<tool>.path Junio C Hamano
1 sibling, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2007-12-17 13:42 UTC (permalink / raw)
To: Schuberth, Sebastian; +Cc: git, gitster
We had the diff.external variable in the documentation of the config
file since its conception, but failed to respect it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
On Mon, 17 Dec 2007, Johannes Schindelin wrote:
> Subject: [PATCH] Document diff.external and mergetool.<tool>.path
>
> There was no documentation for the config variables
> diff.external and mergetool.<tool>.path.
Heh. Missed that diff.external was actually never implemented...
Also noticed by Sebastian.
diff.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/diff.c b/diff.c
index 7d17754..a49c36a 100644
--- a/diff.c
+++ b/diff.c
@@ -20,6 +20,7 @@
static int diff_detect_rename_default;
static int diff_rename_limit_default = 100;
static int diff_use_color_default;
+static const char *external_diff_cmd_cfg;
int diff_auto_refresh_index = 1;
static char diff_colors[][COLOR_MAXLEN] = {
@@ -163,6 +164,10 @@ int git_diff_ui_config(const char *var, const char *value)
diff_auto_refresh_index = git_config_bool(var, value);
return 0;
}
+ if (!strcmp(var, "diff.external")) {
+ external_diff_cmd_cfg = xstrdup(value);
+ return 0;
+ }
if (!prefixcmp(var, "diff.")) {
const char *ep = strrchr(var, '.');
@@ -209,6 +214,8 @@ static const char *external_diff(void)
if (done_preparing)
return external_diff_cmd;
external_diff_cmd = getenv("GIT_EXTERNAL_DIFF");
+ if (!external_diff_cmd)
+ external_diff_cmd = external_diff_cmd_cfg;
done_preparing = 1;
return external_diff_cmd;
}
--
1.5.4.rc0.59.g1d10d
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Document diff.external and mergetool.<tool>.path
2007-12-17 12:21 ` [PATCH] Document diff.external and mergetool.<tool>.path Johannes Schindelin
2007-12-17 13:42 ` [PATCH] Actually add config variable diff.external Johannes Schindelin
@ 2007-12-18 0:13 ` Junio C Hamano
2007-12-18 0:47 ` Johannes Schindelin
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2007-12-18 0:13 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Schuberth, Sebastian, git, gitster
Thanks. Applied.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Document diff.external and mergetool.<tool>.path
2007-12-18 0:13 ` [PATCH] Document diff.external and mergetool.<tool>.path Junio C Hamano
@ 2007-12-18 0:47 ` Johannes Schindelin
2007-12-18 0:52 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2007-12-18 0:47 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Schuberth, Sebastian, git
Hi,
On Mon, 17 Dec 2007, Junio C Hamano wrote:
> Thanks. Applied.
Dumb question: with, or without, the diff.external patch?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Document diff.external and mergetool.<tool>.path
2007-12-18 0:47 ` Johannes Schindelin
@ 2007-12-18 0:52 ` Junio C Hamano
2007-12-18 1:00 ` Johannes Schindelin
0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2007-12-18 0:52 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Schuberth, Sebastian, git
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> On Mon, 17 Dec 2007, Junio C Hamano wrote:
>
>> Thanks. Applied.
>
> Dumb question: with, or without, the diff.external patch?
Swapped the order to first make diff.external work and then document.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Document diff.external and mergetool.<tool>.path
2007-12-18 0:52 ` Junio C Hamano
@ 2007-12-18 1:00 ` Johannes Schindelin
0 siblings, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2007-12-18 1:00 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Schuberth, Sebastian, git
Hi,
On Mon, 17 Dec 2007, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > On Mon, 17 Dec 2007, Junio C Hamano wrote:
> >
> >> Thanks. Applied.
> >
> > Dumb question: with, or without, the diff.external patch?
>
> Swapped the order to first make diff.external work and then document.
Thank you very much!
Ciao,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-18 1:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E6DFE65BB5ADFE44BE13CCC976124447D5BB8D@fue-email2.ad.mc.com>
2007-12-17 12:21 ` [PATCH] Document diff.external and mergetool.<tool>.path Johannes Schindelin
2007-12-17 13:42 ` [PATCH] Actually add config variable diff.external Johannes Schindelin
2007-12-18 0:13 ` [PATCH] Document diff.external and mergetool.<tool>.path Junio C Hamano
2007-12-18 0:47 ` Johannes Schindelin
2007-12-18 0:52 ` Junio C Hamano
2007-12-18 1:00 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).