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

Re: [PATCH] mergetool: clean up temp files when aborted

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 24, 2013, 21:41 UTC
Message-ID
<7vy5fi8di2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABURp0qxj0HVHbYOR1Enfx_A1-ALPDGhLriGp=gab-LBigwt8g@mail.gmail.com>
Phil Hord <phil.hord@gmail.com> writes:
Show 21 quoted lines
> On Thu, Jan 24, 2013 at 2:54 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Phil Hord <hordp@cisco.com> writes:
>> ...
>>> These temporary files should not remain after the mergetool operation is
>>> completed.
>>
>> Aren't there cases where people "abort" so that they can have a
>> chance inspect them outside mergetool program?  If there are no such
>> cases, then I would agree with your claim "should not remain", but
>> the proposed log message does not explay why it is sure that there
>> are no such use cases.
>
> You may be right about other people's workflows which I forgot to
> consider.  I have noticed a lot of inconsistency in this tool wrt to
> mergetool.keepBackup and mergetool.keepTemporaries.  Perhaps this
> change should hinge on the latter.
>
> Would you agree with this rephrased statement (accompanied by matching logic)?
>
>     When mergetool.keepTemporaries is false or not set, these temporary files
>     should not remain when the mergetool operation is aborted.

That is perfectly sensible (and should apply equally to non-"abort" cases, I think).

Thanks.
Previous: Phil Hord
Message 4 of 4 in “mergetool: clean up temp files when aborted”
  1. mergetool: clean up temp files when abortedPhil Hord, Jan 24, 2013
  2. Junio C HamanoJan 24, 2013
  3. Phil HordJan 24, 2013
  4. Junio C HamanoJan 24, 2013

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.