Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits)
- From
Nikolai Weibull <now@bitwi.se>
- Date
- Dec 11, 2006, 10:50 UTC
- Message-ID
- <dbfc82860612110250g73708f7al88c1b50acb2c0dcd@mail.gmail.com>
- In-Reply-To
- <787BE48C-1808-4A33-A368-5E8A3F00C787@mac.com>
On 12/10/06, Kyle Moffett <mrmacman_g4@mac.com> wrote:
Show 7 quoted lines
> 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).