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

Re: Git files data formats documentation

From
Junio C Hamano <junkio@cox.net>
Date
Aug 6, 2006, 00:37 UTC
Message-ID
<7vejvud7ib.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<44D5141A.2070004@gmail.com>
A Large Angry SCM <gitzilla@gmail.com> writes:
Show 20 quoted lines
> Junio C Hamano wrote:
> ...
>>> <OCTAL_MODE>
>>> 	# Octal encoding, without prefix, of the file system object
>>> 	# type and permission bits. The bit layout is according to the
>>> 	# POSIX standard, with only regular files, directories, and
>>> 	# symbolic links permitted. The actual permission bits are
>>> 	# all zero except for regular files. The only permission bit
>>> 	# of any consequence to Git is the owner executable bit. By
>>> 	# default, the permission bits for files will be either 0644
>>> 	# or 0755, depending on the owner executable bit.
>>> 	;
>>
>> It's not really "by default" -- more like "by definition", since
>> there is no way for the program to use something different.  We
>> used to record non-canonical modes in ancient versions of git,
>> but I think fsck-objects would warn on objects created that way.
>>
>
> See git-mktree.
That's a bad example -- the tool being too loose.
Previous: A Large Angry SCMNext: Shawn Pearce
Message 6 of 13 in “Git files data formats documentation”
  1. A Large Angry SCMAug 5, 2006
  2. Jon SmirlAug 5, 2006
  3. Junio C HamanoAug 5, 2006
  4. Shawn PearceAug 5, 2006
  5. A Large Angry SCMAug 5, 2006
  6. Junio C HamanoAug 6, 2006
  7. Shawn PearceAug 5, 2006
  8. A Large Angry SCMAug 5, 2006
  9. Jakub NarebskiAug 5, 2006
  10. A Large Angry SCMAug 5, 2006
  11. Jakub NarebskiAug 5, 2006
  12. A Large Angry SCMAug 5, 2006
  13. Nicolas PitreAug 16, 2006

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.