login
Header Space

 
 

Re: Empty directories...

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Wednesday, July 18, 2007 - 1:56 am

Junio C Hamano <gitster@pobox.com> writes:


Thanks.  It certainly is not serious for the Linux kernel source, but
seems awkward for quite a few situations.  Anyway, what is your take
on the situation I described?

That creating some directory hierarchy (happening to contain empty
directories) with some external program, adding and committing it,
then switching to a different branch (or maybe doing a git-reset
--hard) leaves a skeleton of empty directories around?

I find this almost worse than not being able to put them into the
repository: you can't get rid of them anymore either!

I'd be tempted to propose that git should remove empty subdirectories
when cleaning up a removed tree in the working directory, even though
that violates the principle to not delete anything it isn't tracking.
But since you can't get it to track the stuff in the first place...

But the real fix would be to track them.

Does some trick work possibly at checkin time, like putting an empty
file into every empty directory, adding to the index, then removing
all empty files explicitly from the index and then checking in, or is
this hopeless to work around with from the user side without affecting
the repository itself?

-- 
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)
speck-geostationary