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

Re: [PATCH v3 1/2] git-config support for diff.relative setting

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 30, 2014, 18:16 UTC
Message-ID
<xmqqegrhrok7.fsf@gitster.dls.corp.google.com>
In-Reply-To
<54A2E744.8010508@shysecurity.com>
kelson@shysecurity.com writes:
Show 5 quoted lines
> By default, git-diff shows changes and pathnames relative to the
> repository root.
> Setting diff.relative to "true" shows pathnames relative to the
> current directory
> and excludes changes outside this directory.

The above does not tell any lie, but it is mostly a description of what "--relative" does. I think the main point of this change is that by configuring a variable "diff.relative" (and forget about it) you do not have to keep saying "--relative" from the command line, so that is how you should "sell" this change to others, I think.

> ---
No signoff?
Show 12 quoted lines
>  Documentation/diff-config.txt |  5 +++++
>  diff.c                        |  8 ++++++++
>  t/t4045-diff-relative.sh      | 21 +++++++++++++++++++++
>  3 files changed, 34 insertions(+)
>
> diff --git a/Documentation/diff-config.txt b/Documentation/diff-config.txt
> index b001779..496e9b0 100644
> --- a/Documentation/diff-config.txt
> +++ b/Documentation/diff-config.txt
> @@ -103,6 +103,11 @@ diff.orderfile::
>      one shell glob pattern per line.
>      Can be overridden by the '-O' option to linkgit:git-diff[1].

Whitespace damaged patch? HTs are all gone. Please practice first by sending your patches to yourself, and then try to "git am" them by saving the e-mail messages you received from yourself.

"git grep -i thunder Documentation" seem to tell me that there are hints on using Thunderbird in SubmittingPatches and format-patch documentation.

I might have said this already, but I think this change, without support for "--no-relative", would be an incomplete one that can break the end-user experience, and it would be better to swap the order of the patches.

Thanks.
Previous: kelson@shysecurity.comNext: kelson@shysecurity.com
Message 7 of 13 in “added git-config support for diff.relative setting”
  1. added git-config support for diff.relative settingKelson, Dec 11, 2014
  2. Duy NguyenDec 11, 2014
  3. KelsonDec 11, 2014
  4. added git-config support for diff.relative settingKelson, Dec 12, 2014
  5. 1/2 git-config support for diff.relative settingkelson@shysecurity.com, Dec 21, 2014
  6. 1/2 git-config support for diff.relative settingkelson@shysecurity.com, Dec 30, 2014
  7. Junio C HamanoDec 30, 2014
  8. 1/2 support for --no-relative and diff.relativekelson@shysecurity.com, Dec 30, 2014
  9. 1/2 support for --no-relative and diff.relativekelson@shysecurity.com, Jan 6, 2015
  10. Junio C HamanoJan 7, 2015
  11. kelson@shysecurity.comJan 7, 2015
  12. Junio C HamanoJan 7, 2015
  13. Junio C HamanoJan 7, 2015

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.