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

Re: [PATCH] diff: add a 'path' meta header for non-renames and non-copies

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
May 3, 2010, 07:37 UTC
Message-ID
<z2m36ca99e91005030037jb880e65w73efa551a53d7be6@mail.gmail.com>
In-Reply-To
<7viq75tpaw.fsf@alter.siamese.dyndns.org>
On Mon, May 3, 2010 at 09:30, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Sorry, but none of these configuration variables are acceptable as-is.
>
> Many scripts (the ones shipped with core-git, in contrib, or written by
> users) depend on their invocation of "git diff-*" family without any funny
> command line arguments like --no-prefix nor --src-prefix to produce a
> patch that can be applied without giving a custom -p value to "git apply".
>
> Letting the user break that promise is already bad, and not giving the
> scripts any way to protect themselves from these configuration variables
> by overriding from the command line makes these doubly bad ideas.

As far as I understand git_diff_ui_config() applies only for "git diff" not for any of the plumping "git diff-*" tools. Also I thought that these extended headers are exactly there to support arbitrary meta information. Therefore I think your arguments don't hold for my 'path' extended header, do they?

Thanks, Bert

>
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 9 in “diff: add configuration option for disabling diff prefixes.”
  1. diff: add configuration option for disabling diff prefixes.Eli Collins, May 3, 2010
  2. diff: add a 'path' meta header for non-renames and non-copiesBert Wesarg, May 3, 2010
  3. Junio C HamanoMay 3, 2010
  4. Bert WesargMay 3, 2010
  5. Junio C HamanoMay 3, 2010
  6. Bert WesargMay 3, 2010
  7. Junio C HamanoMay 4, 2010
  8. Bert WesargMay 4, 2010
  9. Eli CollinsMay 5, 2010

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.