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

Re: empty directories

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Aug 22, 2007, 23:25 UTC
Message-ID
<alpine.LFD.0.999.0708221618510.30176@woody.linux-foundation.org>
In-Reply-To
<1187817948.5986.159.camel@beauty>
On Wed, 22 Aug 2007, Josh England wrote:
Show 5 quoted lines
>
> The main need is for file ownership/permission, which has been touched 
> on before.  When I clone an image, I really want an *identical* clone, 
> in every way.  It seems as though git had this functionality but 
> scrapped it due to issues with umask and merge type problems?

Well, git had all permission bits, but never ownership. And yes, using more than the one user-x-bit ended up being totally unusable for source code, because of different people having different umask, so we effectively dropped the permission bits too (although the data format was retained, so we could re-introduce then with some flag that says "honor all permission bits, not just the x bit").

But the ownership thing we've never even tried to support, since it was so obviously not something that was appropriate for a distributed project. So if you want an identical clone with ownership and (full) permissions, you really do need to have some alternate way to fill in the blanks.

I've argued that ".gitattributes" may be an acceptable alternate, especially since ownership is often something that is less than "per file", and more often "has certain patterns".

> So the question is:  would there be any way to bring this functionality 
> back as a non-default configurable option?  For those of us who need the 
> functionality, we'd be more than willing to live with some of the 
> side-effects.

Full permissions might be easy enough to resurrect, but since it's still pointless without ownership, that really isn't even relevant.

But if .gitattributes would work, you probably could introduce both full permissions and ownership rules there. We read git attributes for *other* reasons when checking files out _anyway_, ie we need the CRLF attribute stuff, so adding ownership attributes would not be at all odd.

		Linus
Previous: Josh EnglandNext: David Kastrup
Message 4 of 41 in “empty directories”
  1. Josh EnglandAug 21, 2007
  2. SeanAug 21, 2007
  3. Josh EnglandAug 22, 2007
  4. Linus TorvaldsAug 22, 2007
  5. David KastrupAug 22, 2007
  6. Josh EnglandAug 23, 2007
  7. tracking perms/ownership [was: empty directories]Josh England, Aug 23, 2007
  8. Junio C HamanoAug 23, 2007
  9. Linus TorvaldsAug 23, 2007
  10. David KastrupAug 24, 2007
  11. Linus TorvaldsAug 24, 2007
  12. Josh EnglandAug 24, 2007
  13. David KastrupAug 24, 2007
  14. Linus TorvaldsAug 24, 2007
  15. Josh EnglandAug 24, 2007
  16. Linus TorvaldsAug 24, 2007
  17. Josh EnglandAug 24, 2007
  18. Junio C HamanoAug 24, 2007
  19. Josh EnglandAug 24, 2007
  20. Robin RosenbergAug 24, 2007
  21. David KastrupAug 24, 2007
  22. Josh EnglandAug 24, 2007
  23. Junio C HamanoAug 24, 2007
  24. Josh EnglandAug 24, 2007
  25. Josh EnglandAug 24, 2007
  26. Josh EnglandAug 24, 2007
  27. Johannes SchindelinAug 24, 2007
  28. Jeff KingAug 24, 2007
  29. Josh EnglandAug 24, 2007
  30. Jeff KingAug 24, 2007
  31. Johannes SchindelinAug 25, 2007
  32. Junio C HamanoAug 25, 2007
  33. Junio C HamanoAug 25, 2007
  34. Jeff KingAug 24, 2007
  35. Johannes SchindelinAug 25, 2007
  36. Jason GarberAug 24, 2007
  37. Jakub NarebskiAug 22, 2007
  38. Jakub NarebskiAug 22, 2007
  39. Salikh ZakirovAug 22, 2007
  40. Linus TorvaldsAug 22, 2007
  41. David KastrupAug 22, 2007

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.