git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Metadata and checkin file date

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 27, 2010, 09:35 UTC
Message-ID
<m3sk6hck8b.fsf@localhost.localdomain>
In-Reply-To
<alpine.LFD.2.00.1004270719320.17234@bbs.intern>
Gerhard Wiesinger <lists@wiesinger.com> writes:
Show 11 quoted lines
> Hello,
> 
> I'm new to git and I'm looking for the following features:
> 1.) Metadata for
>    a.) directory versioning (e.g. add/rm, mv)
>    b.) rights (basic: chmod, chow, chgrp, extended: extended
> attributes like ACLs and selinux), necessary for versioning e.g. /etc
> 2.) Original file dates (checkin date) on clone and pull (and not
> checkout date)
> 
> Is this possible? Any plans if missing?

Git is distributed version control system (DVCS), not a backup system. It is used mainly for distributed development of programs. Therefore it supports natively only those parts of metadata that make sense for VCS, namely symlinks (with workaround for filesystems that do not have support for symbolic links) and the executable permission for files.

File ownership does not make sense for VCS, as other people that clone your repository do not have the same set of users that you have, and might not have the same set of groups that you have. Neverthemind that their filesystem might not support notion of file ownership, not only do not have support for extended attributes and the like.

If you really, really need this, you can use additional tools to preserve metadata, like Metastore or git-cache-meta, or even ready tools that use Git as bckend like IsiSetup or bup (well, bup use git package format, not git itself...), see this Git Wiki page: https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools

HTH (Hope That Helps)
-- 
Jakub Narebski
Poland
Previous: Jakub NarebskiNext: Gerhard Wiesinger
Message 8 of 10 in “Metadata and checkin file date”
  1. Gerhard WiesingerApr 27, 2010
  2. Andreas EricssonApr 27, 2010
  3. Gerhard WiesingerApr 27, 2010
  4. Andreas EricssonApr 27, 2010
  5. Gerhard WiesingerApr 27, 2010
  6. Jakub NarebskiApr 27, 2010
  7. Jakub NarebskiApr 27, 2010
  8. Jakub NarebskiApr 27, 2010
  9. Gerhard WiesingerApr 27, 2010
  10. Jakub NarebskiApr 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.