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

Re: js/difftool-no-index, was Re: What's cooking in git.git (May 2019, #02; Tue, 14)

From
Junio C Hamano <gitster@pobox.com>
Date
May 15, 2019, 01:28 UTC
Message-ID
<xmqqef508q0y.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.1905141153150.44@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 17 quoted lines
> Hi Junio,
>
> On Tue, 14 May 2019, Junio C Hamano wrote:
>
>> * js/difftool-no-index (2019-05-09) 1 commit
>>  - difftool --no-index: error out on --dir-diff (and don't crash)
>>
>>  The "--dir-diff" mode of "git difftool" is not useful in "--no-index"
>>  mode; they are now explicitly marked as mutually incompatible.
>>
>>  Will merge to 'next'.
>
> Seeing as the following is a part of v2.22.0-rc0's release notes:
>
> 	 * "git difftool" can now run outside a repository.
>
> maybe we could get this to `master` instead of `next`?
There is no 'instead of'.  Topics advance one step at a time.

I do not recall seeing you respond to my review comments on the "error out" patch <xmqqv9ykdr1w.fsf@gitster-ct.c.googlers.com>, but thinking about it further, assuming that my rephrasing of your justification in my review was correct, I wonder if it is even more correct if we do not error out but simply behave as if "--dir-diff" option were not given.

That is, if there were some way to distinguish tracked and untracked paths in --no-index mode, --dir-diff would copy only the tracked parts to temporary directories and run tree comparison. Since there is no "untracked paths" by definition in --no-index mode, we do not even have to make copies but just compare the two directories given using the same tree comparison tool.

Wouldn't that be more useful behaviour than telling the end users to run the backend tree comparison tool themselves?

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 9 in “What's cooking in git.git (May 2019, #02; Tue, 14)”
  1. Junio C HamanoMay 13, 2019
  2. Elijah NewrenMay 13, 2019
  3. js/difftool-no-index, was Re: What's cooking in git.git (May 2019, #02; Tue, 14)Johannes Schindelin, May 14, 2019
  4. Junio C HamanoMay 15, 2019
  5. Johannes SchindelinMay 15, 2019
  6. Junio C HamanoMay 15, 2019
  7. Johannes SchindelinMay 17, 2019
  8. Junio C HamanoMay 19, 2019
  9. Johannes SchindelinMay 21, 2019

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.