From: Junio C Hamano Date: Thu, 11 Jan 2007 22:58:47 +0000 (-0800) Subject: git-rm: do not fail on already removed file. X-Git-Tag: v1.5.0-rc1~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/646ac22bdf7f7011bb4c77647053416e892ce64d?ds=sidebyside;hp=646ac22bdf7f7011bb4c77647053416e892ce64d 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 ---