From: Santi Béjar Date: Sun, 10 Dec 2006 15:06:14 GMT Subject: Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits) Message-ID: <8aa486160612100706y92bc722n93374e394fc58005@mail.gmail.com> In-Reply-To: <787BE48C-1808-4A33-A368-5E8A3F00C787@mac.com> On 12/10/06, Kyle Moffett wrote: > I've recently become somewhat interested in the idea of using GIT to > store the contents of various folders in /etc. However after a bit > of playing with this, I discovered that GIT doesn't actually preserve > all permission bits since that would cause problems with the more > traditional software development model. I'm curious if anyone has > done this before; and if so, how they went about handling the > permissions and ownership issues. > > I spent a little time looking over how GIT stores and compares > permission bits; trying to figure out if it's possible to patch in a > new configuration variable or two; say "preserve_all_perms" and > "preserve_owner", or maybe even "save_acls". It looks like standard > permission preservation is fairly basic; you would just need to patch > a few routines which alter the permissions read in from disk or > compare them with ones from the database. On the other hand, it > would appear that preserving ownership or full POSIX ACLs might be a > bit of a challenge. > > Thanks for your insight and advice! I have not used it, but you could try: http://www.isisetup.ch/ that uses git as a backend.