On Wed, Jul 16, 2008 at 11:48:42AM -0700, Junio C Hamano wrote: > Ciaran McCreesh <ciaran.mccreesh@xxxxxxxxxxxxxx> writes: > > > git rm --if-missing will only remove files if they've already been removed from > > disk. > > This probably is a borderline with feaping creaturism. What's the use of > it in a real workflow that you need this for? > > "git add -u" may be too broad in that it also adds anything modified, but > so is --if-missing too broad in that it removes anything removed, and if > you are going to limit by giving pathspecs _anyway_, then... > > Old timers might just do: > > git diff --name-only --diff-filter=D | > git update-index --remove --stdin > > ;-) > Ah. This comes in handy. I already searched for a command to delete all missing files. After reading through the fine manual of 'git rm', I went to git update-index but didn't come up with a solution to my problem. But I have to say, an argument to 'git rm' would be preferable than the above plumping. -Peter -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html