Re: Why doesn't merge fail if message has only sign-off?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 3, 2017, 17:21 UTC
- Message-ID
- <xmqq60f9mo6b.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1498996988.26970.1.camel@gmail.com>
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:
> While trying to merge a branch using "git merge" if a merge > message consists only of a "Sign-off" line it doesn't fail. > To be consistent with the behaviour of "git commit" shouldn't the merge > fail?
I think that it is not by design that it doesn't fail. It's not like we decided to allow s-o-b only merge because we found a reason why it is a good idea to do so.
So I do not think anybody minds too deeply if somebody came up a patch to "fix" it. It's just that nobody tried to create such a silly merge in real life so far (I do not think you did, either--you found this out by playing around trying to find corner cases, no?)