Re: [PATCH] Documentation: warn against merging in a dirty tree
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 15, 2008, 23:42 UTC
- Message-ID
- <7vtzch7z7u.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1221518994-26111-2-git-send-email-trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
> Merging in a dirty tree is usually a bad idea because you need to > reset --hard to abort; but the docs didn't say anything about it.
Strictly speaking, you do not have to worry about anything if (1) all of your work tree changes are easily reproducible (Linus's keeping a new EXTRAVERSION in his Makefile, never staged nor committed is an often cited example), or (2) you know beforehand that a merge with the other party will not touch the part you have local changes that you care about.
In other words, you need to know what you are doing, and a warning with "usually it is a bad idea" would be an appropriate thing to do.