{"thread":{"id":"10559","subject":"Managing /etc with git: Store ownership and time in git?","startedAt":"2007-11-01T12:55:57Z","lastAt":"2007-11-01T15:42:02Z","messageCount":4,"participants":["Alexander Skwar","Miklos Vajna","Jeff King","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"57815","messageId":"loom.20071101T123817-247@post.gmane.org","threadId":"10559","inReplyTo":null,"subject":"Managing /etc with git: Store ownership and time in git?","fromName":"Alexander Skwar","fromEmail":"listen@alexander.skwar.name","sentAt":"2007-11-01T12:55:57Z","receivedAt":"2007-11-01T12:55:57Z","isPatch":false,"sender":{"key":"listen@alexander.skwar.name","avatar":null},"body":"Hello.\n\nI'd like to use git to manage the /etc directories of some servers.\nWhat's quite nice with git (in comparison to svn) is, that it\nout-of-the-box stores the permissions of a file. But it doesn't seem\nlike it stores the ownership (ie. user/group) of tracked content.\nDoes anyone know how to cope with that \"problem\"?\n\nOh, and it also seems that Git doesn't store the time information of\nfiles, does it? For tracking /etc, this would be very useful. Would\nanyone have a solution for this as well?\n\nWhat I'm thinking about right now is, to write a \"hook\" script which\n\"dumps\" the stats of the to-be added files in some \"index\" file. But\nthat seems like a rather clumsy soltion...\n\nIt would be great of someone could maybe share his solution!\n\nThanks a lot,\nAlexander\n"},{"id":"57816","messageId":"20071101130928.GH27987@genesis.frugalware.org","threadId":"10559","inReplyTo":"loom.20071101T123817-247@post.gmane.org","subject":"Re: Managing /etc with git: Store ownership and time in git?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2007-11-01T13:09:28Z","receivedAt":"2007-11-01T13:09:28Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar <listen@alexander.skwar.name> wrote:\n> I'd like to use git to manage the /etc directories of some servers.\n\nhttp://git.or.cz/gitwiki/GitFaq#head-7e70881352ec207609dc4d7eedbd0532946a5825\n\n- VMiklos\n"},{"id":"57818","messageId":"20071101131043.GA19914@coredump.intra.peff.net","threadId":"10559","inReplyTo":"loom.20071101T123817-247@post.gmane.org","subject":"Re: Managing /etc with git: Store ownership and time in git?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-11-01T13:10:44Z","receivedAt":"2007-11-01T13:10:44Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar wrote:\n\n> I'd like to use git to manage the /etc directories of some servers.\n> What's quite nice with git (in comparison to svn) is, that it\n> out-of-the-box stores the permissions of a file. But it doesn't seem\n\nIt doesn't; git stores only the executable bit.\n\n> like it stores the ownership (ie. user/group) of tracked content.\n> Does anyone know how to cope with that \"problem\"?\n\nYes, convert your file metadata into a text format in a file in the\nrepository, and commit that.\n\n> Oh, and it also seems that Git doesn't store the time information of\n> files, does it? For tracking /etc, this would be very useful. Would\n> anyone have a solution for this as well?\n\nSame as above.\n\n> What I'm thinking about right now is, to write a \"hook\" script which\n> \"dumps\" the stats of the to-be added files in some \"index\" file. But\n> that seems like a rather clumsy soltion...\n\nThat's more or less the solution that has been advocated. Search in the\nlist archives for /etc solutions; this topic comes up every few months.\n\n-Peff\n"},{"id":"57839","messageId":"fgcrvd$s03$1@ger.gmane.org","threadId":"10559","inReplyTo":"20071101130928.GH27987@genesis.frugalware.org","subject":"Re: Managing /etc with git: Store ownership and time in git?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-11-01T15:42:02Z","receivedAt":"2007-11-01T15:42:02Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Miklos Vajna wrote:\n\n> On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar <listen@alexander.skwar.name> wrote:\n>> I'd like to use git to manage the /etc directories of some servers.\n> \n> http://git.or.cz/gitwiki/GitFaq#head-7e70881352ec207609dc4d7eedbd0532946a5825\n\nhttp://git.or.cz/gitwiki/InterfacesFrontendsAndTools\nsearch for Metastore\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}