From: Nikolai Weibull Date: Mon, 11 Dec 2006 10:50:59 GMT Subject: Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits) Message-ID: 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 keep the files I want to track in a separate folder that I track with Git and use a Makefile for updating /etc. I basically have a rule for checking for differences between the tracked folder and /etc and a rule for installing changed files (with the correct permissions). It works, but it does require some "Makefile magic" to work right (or the way /I/ want it anyway).