Re: git-rm isn't the inverse action of git-add
- From
David Kastrup <dak@gnu.org>
- Date
- Jul 5, 2007, 14:00 UTC
- Message-ID
- <86abubkl0v.fsf@lola.quinscape.zz>
- In-Reply-To
- <vpqd4z7q820.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 5 quoted lines
> One benefit is: you don't have to use "-f" for a non-dangerous > senario. That seems stupid, but for the plain "rm" command, the > "-rf" is hardcoded in the fingers of many unix users, and I know > several people having lost data by typing it a bit too mechanically > (with a typo behind, like forgetting the "*" in "*~" ;-).
Just a few days ago, I used rm -rf * in a temporary directory. I would now advise people against doing that without an absolute path. The problem was that at some later point of time, some history search/key fsckup popped that line back into the shell and executed it.
At that time, in my home directory. This was definitely annoying, even though the files and directories .* (and thus most configuration data) were spared.
> I'll try writting patch for that if people agree that this is saner > that the current behavior.
Sounds like it.
-- David Kastrup