Re: [PATCH 3/3] Add -k/--keep-going option to mergetool

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff King <peff@...>
Cc: Junio C Hamano <gitster@...>, <git@...>, Andreas Ericsson <ae@...>, Theodore Ts'o <tytso@...>, William Pursell <bill.pursell@...>
Date: Friday, November 14, 2008 - 9:25 am

Jeff King wrote:

++++++++++++++++++++++++++++++--------

I had a little difficulty thinking of some decently robust tests. git
mergetool is, by its nature, more interactive than many git commands.

With --no-prompt it should be easier to make some tests that don't just
hang when it goes wrong. I'll have a further think on this.


Ah yes, it's definitely worthy of at least a comment. This is something
that I changed right at the end of testing and I should really have made
it into a separate commit.

Previously, if you aborted a merge, you were left with the
base/local/remote temporaries for the merge that you aborted.

To be honest, I found this a little irritating. The base, local and
remote temporaries are inputs so are accessible from slots 1,2 and 3 of
the index, and any intermediate output will be in the target file. You
can git clean, but if you have other temporaries you need to keep, you
end up having to manually clean them up in any case.

With --keep-going, the problem is compounded. If you make several passes
through a list of complex merges you end up with fistfuls of these
temporary trios in your working tree. It goes from slightly annoying to
very irritating.

Charles.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git mergetool enhancements, Charles Bailey, (Thu Nov 13, 8:41 am)
[PATCH 2/3] Add -y/--no-prompt option to mergetool, Charles Bailey, (Thu Nov 13, 8:41 am)
Re: [PATCH 2/3] Add -y/--no-prompt option to mergetool, Theodore Tso, (Sat Nov 15, 11:50 am)
[PATCH 3/3] Add -k/--keep-going option to mergetool, Charles Bailey, (Thu Nov 13, 8:41 am)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Theodore Tso, (Sat Nov 15, 11:56 am)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Charles Bailey, (Mon Nov 24, 6:03 pm)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Junio C Hamano, (Sat Nov 15, 1:35 am)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Charles Bailey, (Mon Nov 24, 5:59 pm)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Charles Bailey, (Fri Nov 14, 9:25 am)
Re: [PATCH 3/3] Add -k/--keep-going option to mergetool, Theodore Tso, (Sat Nov 15, 12:12 pm)