Re: [PATCH] git-rm: don't remove newly added file without -f
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 26, 2007, 22:36 UTC
- Message-ID
- <7vk5x3vdhh.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20070326222239.GA3498@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Hmm, yes, I agree that is inconsistent. However, it's such a common > workflow that forcing a '-f' would become meaningless. And you _can_ > rescue the blob from the object database in a pinch, though finding it > can be tedious.
That's exactly the reason why I mentioned this inconsistency between add vs rm "tongue-in-cheek".
We really do not want to require -f for common situations so much that it ends up training people's fingers to type -f without thinking, which would render the safety option meaningless.