Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC 0/3] Make git more user-friendly during a merge conflict

From: Stephen Leake <hidden>
Date: 2016-06-15 23:00:07

David Kastrup [off-list ref] writes:
Stephen Leake [off-list ref] writes:
quoted
David Kastrup [off-list ref] writes:
quoted
"do the right thing" commands also tend to do the wrong thing
occasionally with potentially disastrous results when they are used
in scripts where the followup actions rely on the actual result.
That is bad, and should not be allowed. On the other hand, I have yet
to see an actual use case of bad behavior in this discussion.
Huh.

<http://permalink.gmane.org/gmane.comp.version-control.git/242744>
That's about backward incompatibility, which is bad, but not what I was
talking about above.

Specifically, the proposed change is:

'git reset' will have different default actions depending on context:

- if a merge is not in progress, it will do 'git reset --mixed'

- if a merge is in progress, it will do 'git reset --merge'

Is there a use case where this will do the wrong thing?

Of course, I fully understand that not being able to come up with a
"wrong thing" use case is not the same as proving it cannot happen,
especially for a system as complex as git.

So it would be ok to say "we don't do that so we are not exposed to
unintended consequences".

But "wrong thing" use cases are more convincing :).

-- 
-- Stephe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help