Re: tracking perms/ownership [was: empty directories]
- From
- Josh England <jjengla@sandia.gov>
- Date
- Aug 24, 2007, 15:50 UTC
- Message-ID
- <1187970632.6357.108.camel@beauty>
- In-Reply-To
- <20070824095217.GB16853@coredump.intra.peff.net>
On Fri, 2007-08-24 at 05:52 -0400, Jeff King wrote:
Show 18 quoted lines
> On Fri, Aug 24, 2007 at 11:38:13AM +0200, Johannes Schindelin wrote: > > > > So here's the initial thought. Create two new gitattributes, 'perms' > > > and 'ownership', which will track perms/ownership for files matching the > > > given pattern. > > > > I wonder why you do not just use the "smudge" and "clean" attributes, and > > store the ownership _and_ the permissions in .gitacls. > > > > Yes, _maybe_ it is something other people might want, too, but let's start > > quick & easy, no? > > Yes, I think that is a much better idea. Perhaps they aren't that > popular among this crowd, but it seems silly to develop in this > direction and not at least consider people storing actual ACLs (or even > other extended attributes). An already-standard format like that > produced by 'getfacl' should make this pretty trivial (and handles > regular unix permissions at the same time).
Do you mean using acls through contrib/hooks/update-paranoid? That is the only place I see any mention of them. clean and smudge seem out because they are passed blob objects and have no notion of pathname. I don't see how to use this for automatic storing/restoring of perms/ownership.
-JE