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

Re: Storing permissions

From
David A. Wheeler <dwheeler@dwheeler.com>
Date
Apr 17, 2005, 16:21 UTC
Message-ID
<42628D1B.3000207@dwheeler.com>
In-Reply-To
<Pine.LNX.4.58.0504170857580.7211@ppc970.osdl.org>
Linus Torvalds wrote:
Show 16 quoted lines
> 
> On Sun, 17 Apr 2005, David A. Wheeler wrote:
> 
>>There's a minor reason to write out ALL the perm bit data, but
>>only care about a few bits coming back in: Some people use
>>SCM systems as a generalized backup system
> 
> Yes. I was actually thinking about having system config files in a git 
> repository when I started it, since I noticed how nicely it would do 
> exactly that.
> 
> However, since the mode bits also end up being part of the name of the 
> tree object (ie they are most certainly part of the hash), it's really 
> basically impossible to only care about one bit but writing out many bits: 
> it's the same issue of having multiple "identical" blocks with different 
> names.
...
> One solution is to tell git with a command line flag and/or config file 
> entry that "for this repo, I want you to honor all bits". That should be 
> easy enough to add at some point, and then you really get what you want.
Yes, I thought of that too.  And I agree, that should do the job.

My real concern is I'm looking at the early design of the storage format so that it's POSSIBLE to extend git in obvious ways. As long as it's possible later, then that's a great thing.

...
Show 5 quoted lines
> Also, I made a design decision that git only cares about non-dotfiles. Git 
> literally never sees or looks at _anything_ that starts with a ".". I 
> think that's absolutely the right thing to do for an SCM (if you hide your 
> files, I really don't think you should expect the SCM to see it), but it's 
> obviously not the right thing for a backup thing.

Again, a command line flag or config file entry could change that in the future, if desired. So this is a decision that could be changed later... the best kind of decision :-).

--- David A. Wheeler
Previous: Linus TorvaldsNext: Morten Welinder
Message 15 of 25 in “Storing permissions”
  1. Martin MaresApr 16, 2005
  2. Paul JacksonApr 16, 2005
  3. Junio C HamanoApr 16, 2005
  4. Paul JacksonApr 17, 2005
  5. David A. WheelerApr 17, 2005
  6. Morten WelinderApr 17, 2005
  7. Paul JacksonApr 17, 2005
  8. Linus TorvaldsApr 17, 2005
  9. Paul JacksonApr 17, 2005
  10. Linus TorvaldsApr 17, 2005
  11. David A. WheelerApr 17, 2005
  12. Paul JacksonApr 17, 2005
  13. Daniel BarkalowApr 17, 2005
  14. Linus TorvaldsApr 17, 2005
  15. David A. WheelerApr 17, 2005
  16. Symlinks [was Re: Storing permissions]Morten Welinder, Apr 17, 2005
  17. Zack BrownDec 7, 2005
  18. Andreas EricssonDec 7, 2005
  19. Zack BrownDec 7, 2005
  20. Petr BaudisDec 7, 2005
  21. Johannes SchindelinDec 7, 2005
  22. Junio C HamanoDec 7, 2005
  23. Zack BrownDec 7, 2005
  24. Junio C HamanoDec 7, 2005
  25. H. Peter AnvinDec 8, 2005

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.