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

Re: GIT_EXTERNAL_DIFF invoked with undocumented calling convention after unstashing conflicts

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 30, 2007, 19:59 UTC
Message-ID
<7vk5q7hqld.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200709302117.37422.bruno@clisp.org>
> "git diff --uncached" invokes the GIT_EXTERNAL_DIFF variable with just one
> argument (instead of 7 arguments, as documented) in a particular situation:
You are looking at an unmerged path.
    'GIT_EXTERNAL_DIFF'::
            When the environment variable 'GIT_EXTERNAL_DIFF' is set, the
            program named by it is called, instead of the diff invocation
            described above.  For a path that is added, removed, or modified,
            'GIT_EXTERNAL_DIFF' is called with 7 parameters:
    ...
    +
    For a path that is unmerged, 'GIT_EXTERNAL_DIFF' is called with 1
    parameter, <path>.

The script needs to decide how it wants to present an unmerged path; the information on each unmerged stages can be read from the output of "ls-files -u $thatpath".

Previous: Bruno HaibleNext: Bruno Haible
Message 2 of 3 in “GIT_EXTERNAL_DIFF invoked with undocumented calling convention after unstashing conflicts”
  1. Bruno HaibleSep 30, 2007
  2. Junio C HamanoSep 30, 2007
  3. Bruno HaibleSep 30, 2007

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.