Re: [RFC PATCH] Re: Empty directories...
- From
Nix <nix@esperi.org.uk>
- Date
- Jul 23, 2007, 20:18 UTC
- Message-ID
- <87ps2inab5.fsf@hades.wkstn.nix>
- In-Reply-To
- <863azka7d4.fsf@lola.quinscape.zz>
On 19 Jul 2007, David Kastrup stated:
Show 14 quoted lines
> Tomash Brechko <tomash.brechko@gmail.com> writes: >> Please consider this: I myself use Git to track my own local >> projects, and for this usage you proposal have no value for me, >> i.e. as a _Source_ Code Management system Git is rather complete. >> But I also track /etc and ~/ in Git, and for this I'd love to have >> directories, permissions, ownership, other attributes, to be >> tracked. I have Perl script wrapping Git that allows me to filter >> tracked paths by full regexps instead of Git's file globs, and also >> to filter out too big files assuming that they are binary anyway. > > Look, git _tracks_ contents. Your permissions managements needs to be > told explicitly when and how things change. So you end up with git > _tracking_ material and your permissions/directory management needing > the level of manual handholding Subversion demands.
Actually, if we had a post-checkout hook, we could use a pre-commit hook to keep track of directory existence, permissions, et seq, and a post- checkout hook to restore them.
(But we don't, at least not yet. Adding one is probably quite easy.)