Re: Managing /etc with git: Store ownership and time in git?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux