git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Managing /etc with git: Store ownership and time in git?
@ 2007-11-01 12:55 Alexander Skwar
  2007-11-01 13:09 ` Miklos Vajna
  2007-11-01 13:10 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Skwar @ 2007-11-01 12:55 UTC (permalink / raw)
  To: git

Hello.

I'd like to use git to manage the /etc directories of some servers.
What's quite nice with git (in comparison to svn) is, that it
out-of-the-box stores the permissions of a file. But it doesn't seem
like it stores the ownership (ie. user/group) of tracked content.
Does anyone know how to cope with that "problem"?

Oh, and it also seems that Git doesn't store the time information of
files, does it? For tracking /etc, this would be very useful. Would
anyone have a solution for this as well?

What I'm thinking about right now is, to write a "hook" script which
"dumps" the stats of the to-be added files in some "index" file. But
that seems like a rather clumsy soltion...

It would be great of someone could maybe share his solution!

Thanks a lot,
Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Managing /etc with git: Store ownership and time in git?
  2007-11-01 12:55 Managing /etc with git: Store ownership and time in git? Alexander Skwar
@ 2007-11-01 13:09 ` Miklos Vajna
  2007-11-01 15:42   ` Jakub Narebski
  2007-11-01 13:10 ` Jeff King
  1 sibling, 1 reply; 4+ messages in thread
From: Miklos Vajna @ 2007-11-01 13:09 UTC (permalink / raw)
  To: Alexander Skwar; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar <listen@alexander.skwar.name> wrote:
> I'd like to use git to manage the /etc directories of some servers.

http://git.or.cz/gitwiki/GitFaq#head-7e70881352ec207609dc4d7eedbd0532946a5825

- VMiklos

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Managing /etc with git: Store ownership and time in git?
  2007-11-01 12:55 Managing /etc with git: Store ownership and time in git? Alexander Skwar
  2007-11-01 13:09 ` Miklos Vajna
@ 2007-11-01 13:10 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2007-11-01 13:10 UTC (permalink / raw)
  To: Alexander Skwar; +Cc: git

On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar wrote:

> I'd like to use git to manage the /etc directories of some servers.
> What's quite nice with git (in comparison to svn) is, that it
> out-of-the-box stores the permissions of a file. But it doesn't seem

It doesn't; git stores only the executable bit.

> like it stores the ownership (ie. user/group) of tracked content.
> Does anyone know how to cope with that "problem"?

Yes, convert your file metadata into a text format in a file in the
repository, and commit that.

> Oh, and it also seems that Git doesn't store the time information of
> files, does it? For tracking /etc, this would be very useful. Would
> anyone have a solution for this as well?

Same as above.

> What I'm thinking about right now is, to write a "hook" script which
> "dumps" the stats of the to-be added files in some "index" file. But
> that seems like a rather clumsy soltion...

That's more or less the solution that has been advocated. Search in the
list archives for /etc solutions; this topic comes up every few months.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Managing /etc with git: Store ownership and time in git?
  2007-11-01 13:09 ` Miklos Vajna
@ 2007-11-01 15:42   ` Jakub Narebski
  0 siblings, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2007-11-01 15:42 UTC (permalink / raw)
  To: git

Miklos Vajna wrote:

> On Thu, Nov 01, 2007 at 12:55:57PM +0000, Alexander Skwar <listen@alexander.skwar.name> wrote:
>> I'd like to use git to manage the /etc directories of some servers.
> 
> http://git.or.cz/gitwiki/GitFaq#head-7e70881352ec207609dc4d7eedbd0532946a5825

http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
search for Metastore

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-01 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 12:55 Managing /etc with git: Store ownership and time in git? Alexander Skwar
2007-11-01 13:09 ` Miklos Vajna
2007-11-01 15:42   ` Jakub Narebski
2007-11-01 13:10 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).