Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits)
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 10, 2007, 02:30 UTC
- Message-ID
- <20070110023031.GC30765@spearce.org>
- In-Reply-To
- <Pine.LNX.4.63.0701091735490.7747@qynat.qvtvafvgr.pbz>
David Lang <david.lang@digitalinsight.com> wrote:
Show 6 quoted lines
> I want to have a tripwire-like system checking the files to make sure that > they haven't changed unexpectedly. the program I'm looking at notices inode > as well as timestamp and content changed. > > when you checkout a file from git will it re-write/overwrite a file that > hasn't changed or will it realize there is no change and leave it as-is?
If the stat data is current it will leave it as-is. You can force the index to refresh with `git update-index --refresh` or by running git status.
> does this answer change if there is a trigger on checkout (to change > permissions or otherwise manipulate the file)?
Only if the trigger does something in addition, like force overwrite files. But we don't have a checkout trigger. So there's no trigger.
-- Shawn.