Re: Empty directories...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Kastrup
Date: Thursday, July 26, 2007 - 10:22 pm

Robin Rosenberg <robin.rosenberg.lists@dewire.com> writes:


It would be quite a nuisance for a patch-based workflow, since patches
don't talk about the creation and deletion of directories.

The "track only when entered approach" has the advantage that
directories that were only created to accommodate patches will be
removed again when becoming empty.

Of course, once doing "git-add top-level" will level the difference.


Why wouldn't I have tree/zap removed when doing git-rm tree?


But it doesn't.  If you do git-add tree, optimizing the dir entry away
since tree/zap exists, then subsequently do git-rm tree/zap, of course
there is nothing to do except remove tree/zap, and the tree is gone.

One can't start tracking trees explicitly only when they become empty,
because one can't know whether to track them then.


I currently have the problem that

rm -rf *
unzip some-archive
git-add some-archive
git-commit -a -m whatever
git-checkout something else

leaves empty directory skeletons lying around.


I don't want a source management system to tell me whenever it is
going to annoy me.


With that approach idea the workflow

"Apply a patch creating something/hello"
"Undo the patch creating something/hello"

will leave something lying around.  For somebody managing hundreds of
directories, that would be a nuisance.

I don't say that a "track all parents automatically" approach would
not have its merits: it would likely prevent some mistakes and be
easily understandable to most users.  But for managing a patch
workflow, it would appear to get in the way.

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