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

Re: Metadata and checkin file date

From
Andreas Ericsson <ae@op5.se>
Date
Apr 27, 2010, 09:22 UTC
Message-ID
<4BD6ACEF.1040909@op5.se>
In-Reply-To
<alpine.LFD.2.00.1004270719320.17234@bbs.intern>
On 04/27/2010 07:23 AM, Gerhard Wiesinger wrote:
Show 5 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)

If you're talking about empty directories, that feature doesn't exist and I can't imagine why you'd want it to. If you'd care to explain why you want it, I'm sure we can find a different way of achieving your goal.

> b.) rights (basic: chmod, chow, chgrp, extended: extended attributes 
> like ACLs and selinux), necessary for versioning e.g. /etc

Sounds like you want a backup-program. Some projects have been aimed towards this goal already. I'm sure google can provide more information. AFAIR, most of them work with two hook-scripts that update a regular file with the meta-data of all tracked files. This makes committing and checking out slower than it would otherwise be, but since it's doing more I suppose that's to be expected.

Adding it to core git would mean re-designing git's basic data model, which is obviously not something we're about to do on a whim.

> 2.) Original file dates (checkin date) on clone and pull (and not 
> checkout date)
> 

I expect the solutions that work for 1b will also have this "feature", or that it will be easy to patch for it. For a source code management system though, this is a very bad idea indeed since it messes with the fundamental rules of building; A changed file must be rebuilt.

Seeing as this would also require a major change in git's data model, this is another of those changes that I doubt will be supported in the git core in the foreseeable future.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Gerhard WiesingerNext: Gerhard Wiesinger
Message 2 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.