login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Lang <david.lang@...>
Cc: <git@...>
Date: Thursday, January 11, 2007 - 8:55 pm

David Lang <david.lang@digitalinsight.com> wrote:

During checkout we use the index to help us decide if a file needs
to be updated with new content or can be left as-is.  Its a cache of
what version each file is at, and its based on the file stat data
(dev, inode, modification date, etc.) to tell us if the file has
been modified or was last created by Git.  If Git was the one that
last modified the file and the version stored in the index matches
the version needed during the checkout, the file is left alone.
But if anything differs then the file gets overwritten.
 

No.


Yes.  It is what he suggested.


Someone needs to implement support for a post-checkout trigger.  _Then_
a checkout trigger could perform this action.


You may be able to do that in the pre-commit hook by updating the index

-- 
Shawn.
-
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 as a general backup mechanism, Junio C Hamano, (Tue Dec 12, 7:43 pm)
Re: Using git as a general backup mechanism, Steven Grimm, (Thu Dec 14, 7:33 pm)
Re: Using git as a general backup mechanism, Junio C Hamano, (Thu Dec 14, 8:33 pm)
Re: Using git as a general backup mechanism (was Re: Using G..., Johannes Schindelin, (Tue Dec 12, 6:57 pm)
Re: Using git as a general backup mechanism (was Re: Using G..., Johannes Schindelin, (Tue Dec 12, 8:01 pm)
Re: Using GIT to store /etc (Or: How to make GIT store all f..., Shawn O. Pearce, (Thu Jan 11, 8:55 pm)
speck-geostationary