Re: possible bug in git apply?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <david@...>
Cc: <git@...>, <rob@...>
Date: Saturday, August 4, 2007 - 4:08 pm

david@lang.hm writes:


Committing the change?


Yes, once he commits.  As long as git keeps files tracked in that
directory, there is no reason for it to delete it.

I agree that it is hard to come up with a good logic for this sort of
thing.  git-add checks the _current_ state of a file into the index.
git-rm can actually do the same only by actually _deleting_ the
working copy.  So when should git try deleting the directory?
Probably when the directory becomes empty in the index, for
consistency.  Too bad that the index does not contain any information
about directories at all, so there is no good way to figure this
particular point in time out efficiently.

I guess that git rather attempts deleting the directory when the tree
in the _repository_ rather than the index becomes empty.  And for that
you need to commit.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
possible bug in git apply?, , (Sat Aug 4, 3:45 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:48 am)
Re: possible bug in git apply?, Junio C Hamano, (Sun Aug 5, 1:11 am)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:59 pm)
Re: possible bug in git apply?, Junio C Hamano, (Mon Aug 6, 4:29 am)
Re: possible bug in git apply?, Junio C Hamano, (Mon Aug 6, 5:37 am)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 1:53 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 2:18 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 2:50 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 3:20 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 3:37 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 3:55 am)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:53 am)
Re: possible bug in git apply?, David Kastrup, (Sat Aug 4, 4:08 pm)
Re: possible bug in git apply?, Junio C Hamano, (Sat Aug 4, 4:00 pm)