Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

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

From: Alexander Skwar <hidden>
Date: 2016-06-15 22:43:46

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help