Re: [PATCH] Make git revert warn the user when reverting a merge commit.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 21, 2008, 20:23 UTC
- Message-ID
- <7vwsdtmg5m.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <200812211359.31991.bss@iguanasuicide.net>
"Boyd Stephen Smith Jr." <bss@iguanasuicide.net> writes:
> Then why not have "-m 1" be assumed instead of forcing the user to specify it?
The reason we don't is because until very recently we did not even allow you to revert a merge relative to any parent. We wanted to avoid surprising people who are _relying on_ that behaviour to make sure that they do not revert a merge by accident.
We could certainly do what you suggest to imply "-m 1" when the commit requested to be reverted happens to be a merge, but we shouldn't be doing that without thinking things through. It will break people's longstanding expectations.