Re: metastore (was: Track /etc directory using Git)
- From
- Jan Hudec <bulb@ucw.cz>
- Date
- Sep 16, 2007, 15:59 UTC
- Message-ID
- <20070916155913.GB30476@efreet.light.src>
- In-Reply-To
- <Pine.LNX.4.64.0709151737400.24221@asgard.lang.hm>
On Sat, Sep 15, 2007 at 18:30:53 -0700, david@lang.hm wrote:
Show 6 quoted lines
> 1. whatever is trying to write the files with the correct permissions > needs to be able to query the permission store before files are > written. This needs to either be an API call into git to retreive the > information for any file when it's written, or the ability to define a > specific file to be checked out first so that it can be used for > everything else.
You seem to be forgetting about the index. Git never writes trees directly to filesystem, but always with intermediate step in the index. So the API actually exists -- simply read from the index.
-- Jan 'Bulb' Hudec <bulb@ucw.cz>