Re: [PATCH v2] git-config support for diff.relative setting

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v2] git-config support for diff.relative setting

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:03:19

"Philip Oakley" [off-list ref] writes:
From: <redacted>
quoted
By default, git-diff shows changes and pathnames relative to the
repository root. Setting the diff.relative config option to "true"
shows pathnames relative to the current directory and excludes
changes outside this directory (identical to "git diff --relative").
Shouldn't this `(identical to "git diff --relative")` also be included
in the documentation change? It would truly clarify the intenbt for
the reader.
A configuration that sticks a non-default behaviour without a way to
revert to the default is a no-no.

There should be a way to run non-relative diff in a repository that
has the configuration set, perhaps by overriding with some command
line option (e.g. "--no-relative").

Re: [PATCH v2] git-config support for diff.relative setting

From: <hidden>
Date: 2016-06-15 23:03:19

"Philip Oakley" [off-list ref] wrote:
Shouldn't this `(identical to "git diff --relative")` also be
included in the documentation change? It would truly clarify the
intenbt for the reader.
Updated as follows:
+diff.relative::
+	Show pathnames relative to the current directory and exclude
+	changes outside this directory; equivalent to the 'git diff'
+	option '--relative'.
"Junio C Hamano" [off-list ref] wrote:
There should be a way to run non-relative diff in a repository that
has the configuration set, perhaps by overriding with some command
line option (e.g. "--no-relative").
Good idea; I'll put together a second patch for a "--no-relative" option 
to disable diff.relative.

-----Original Message-----
From: Junio C Hamano <redacted>
Sent: 12/20/2014 09:58 PM
To: Philip Oakley <redacted>
CC: <redacted>,  "Git Mailing List" <redacted>, 
  "Duy Nguyen" [off-list ref],  "Jonathan Nieder" [off-list ref]
Subject: Re: [PATCH v2] git-config support for diff.relative setting

"Philip Oakley" [off-list ref] writes:
From: <redacted>
quoted
By default, git-diff shows changes and pathnames relative to the
repository root. Setting the diff.relative config option to "true"
shows pathnames relative to the current directory and excludes
changes outside this directory (identical to "git diff --relative").
Shouldn't this `(identical to "git diff --relative")` also be included
in the documentation change? It would truly clarify the intenbt for
the reader.
A configuration that sticks a non-default behaviour without a way to
revert to the default is a no-no.

There should be a way to run non-relative diff in a repository that
has the configuration set, perhaps by overriding with some command
line option (e.g. "--no-relative").
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help