git-rm: do not fail on already removed file.
authorJunio C Hamano <junkio@cox.net>
Thu, 11 Jan 2007 22:58:47 +0000 (14:58 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 11 Jan 2007 22:58:47 +0000 (14:58 -0800)
commit646ac22bdf7f7011bb4c77647053416e892ce64d
treed7a292aecfab6d0522fba899e3ad31231f350676
parent3b97fee23df7ec78eea77151fcc0885ec3191950
git-rm: do not fail on already removed file.

Often the user would do "/bin/rm foo" before telling git, but
then want to tell git about it.  "git rm foo" however would fail
because it cannot unlink(2) foo.

Treat ENOENT error return from unlink(2) as if a successful
removal happened.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-rm.c