Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>
Date: Sunday, December 10, 2006 - 2:35 pm

On Dec 10, 2006, at 13:26:32, Jakub Narebski wrote:

The real problem I have with that is you literally have to duplicate  
all sorts of functionality.  I want to run "foo-status" in /etc and  
get something useful, but if /etc is not a git directory in and of  
itself then you have to duplicate most of "git-status" anyways.  And  
the same applies to all the other commands.  From what I can see of  
IsiSetup the tools for checking out, merging, modifying, cloning, etc  
are all much more limited and immature than the ones available  
through GIT/cogito, and I would be loathe to discard all that extra  
functionality and duplicate a few thousand lines of code in the name  
of "concept purity".

GIT already has _some_ idea about file permissions, it just discards  
most of the data before writing to disk.  Of course, adding POSIX  
ACLs and user-extended-attributes requires a new data format, but  
those are very similar to filesystem permissions; they differ only in  
amount of data stored, not in purpose.

Import/export scripts literally require wrapping every single GIT  
command with a script that changes directory a few times, reads from  
a different checked-out tree, and permutes some extended-attribute  
data slightly before storing it in the underlying GIT tree.  Even  
without adding any new functionality whatsoever that doubles the  
amount of code just for finding your repository and checking command- 
line arguments, and that's a crazy trade-off to make in any situation.

Cheers,
Kyle Moffett

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Using GIT to store /etc (Or: How to make GIT store all f..., Kyle Moffett, (Sun Dec 10, 2:35 pm)
Re: Using GIT to store /etc (Or: How to make GIT store all f..., Josef Weidendorfer, (Mon Dec 11, 8:13 am)
Re: Using GIT to store /etc (Or: How to make GIT store all f..., Johannes Schindelin, (Mon Dec 11, 9:33 am)
Re: Using GIT to store /etc (Or: How to make GIT store all f..., Josef Weidendorfer, (Mon Dec 11, 11:07 am)