Re: Empty directories...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Wednesday, July 18, 2007 - 1:34 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


But empty directories which were empty to start with don't go away
since they are not tracked.  And that means that their parents don't
go away.

Git will remove directories which _had_ git-tracked content prior to
the checkout.  But it will not register empty directories created
outside of git, and consequently will not remove them.


Linus, condescension is all very nice, but I already told you: I had a
directory hierarchy created outside of git's control (every file comes
into being first outside of git).  This hierarchy contained empty
directories.  The while hierarchy was committed into git.  git
silently skipped registering empty directories.  Then a different
version got checked out which did not contain the directory hierarchy
in question.  And git left the (unregistered) empty directories in, as
well as all their parent directories.

And that is just plain wrong.


But I told git to track the whole directory tree recursively.  There
were no uncommitted files it complained about.  It is not reasonable
that it is afterwards unable to remove this when I checkout some other
tag.


Sure.  But that it refuses to track the files makes the total behavior
an annoyance.  I don't complain _how_ git handles not being able to
track empty directories.  I complain about it not being able to track
them in the first place.  The consequences are hideous.


When I tell it to track it, it should not refuse.  Even if it is
empty.  Because if it _stayed_ empty, git can then remove it (and
possibly the parents) when I checkout something else.

-- 
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:
Empty directories..., David Kastrup, (Tue Jul 17, 8:13 pm)
Re: Empty directories..., Robin Rosenberg, (Thu Jul 26, 7:33 pm)
Re: Empty directories..., David Kastrup, (Fri Jul 27, 1:22 am)
Re: Empty directories..., Junio C Hamano, (Tue Jul 17, 10:23 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 1:56 am)
Re: Empty directories..., Junio C Hamano, (Wed Jul 18, 2:53 am)
Re: Empty directories..., Johan Herland, (Fri Jul 20, 4:29 am)
Re: Empty directories..., Wincent Colaiuta, (Wed Jul 18, 2:34 am)
Re: Empty directories..., Matthieu Moy, (Tue Jul 17, 8:39 pm)
Re: Empty directories..., Johannes Schindelin, (Tue Jul 17, 8:35 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 2:07 am)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 12:23 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 1:34 pm)
Re: Empty directories..., Matthieu Moy, (Wed Jul 18, 12:39 pm)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 1:06 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 5:37 pm)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 5:45 pm)
[RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 7:16 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 7:40 pm)
Re: [RFC PATCH] Re: Empty directories..., David Kastrup, (Wed Jul 18, 7:42 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 8:22 pm)
Re: [RFC PATCH] Re: Empty directories..., Junio C Hamano, (Thu Jul 19, 1:28 am)
Re: [RFC PATCH] Re: Empty directories..., Shawn O. Pearce, (Thu Jul 19, 1:38 am)
Re: [RFC PATCH] Re: Empty directories..., Shawn O. Pearce, (Thu Jul 19, 2:09 am)
Re: [RFC PATCH] Re: Empty directories..., Matthieu Moy, (Thu Jul 19, 4:13 am)
Re: [RFC PATCH] Re: Empty directories..., Tomash Brechko, (Thu Jul 19, 6:51 am)
Re: [RFC PATCH] Re: Empty directories..., Johannes Schindelin, (Thu Jul 19, 8:16 am)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 7:13 pm)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 12:33 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 1:38 pm)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 2:05 pm)
Re: Empty directories..., Johannes Schindelin, (Wed Jul 18, 6:26 am)