Re: git-rm isn't the inverse action of git-add
- From
Yann Dirson <ydirson@altern.org>
- Date
- Jul 2, 2007, 19:42 UTC
- Message-ID
- <20070702194237.GN7730@nan92-1-81-57-214-146.fbx.proxad.net>
- In-Reply-To
- <46893F61.5060401@jaeger.mine.nu>
On Mon, Jul 02, 2007 at 08:09:37PM +0200, Christian Jaeger wrote:
> Why so complicated? Why not just make git-rm without options behave like > cg-rm? (Or at the very least, I'd change the hint to say "try -f --cached".)
It is probably a matter of taste. Personally, I am really upset by this behaviour that cvs, cogito, stgit and others share, which forces me to issue 2 commands to really delete a file from version control and from the filesystem.
Do you really need to undo an add more often than you need to remove a file from version-control ? It may be worth, however, to make things easier. Maybe "git add --undo foo" would be a solution ? Not sure we'd want to add --undo to many git commands, though. Opinions ?
Best regards,
-- Yann