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

Re: Git files data formats documentation

From
Jon Smirl <jonsmirl@gmail.com>
Date
Aug 5, 2006, 05:48 UTC
Message-ID
<9e4733910608042248s18443277j436298229ed5ec05@mail.gmail.com>
In-Reply-To
<44D42F0D.3040707@gmail.com>

You might make some notes about old format headers and new format ones and the use_legacy_headers flag.

I started off looking at packs so I knew about TYPE_AND_BASE128_SIZE. Next I wanted to write objects so I looked at sha1_file.c. If you don't look at the code closely write_binary_header() will lead you to believe that object files use TYPE_AND_BASE128_SIZE. It took me a couple of hours to notice use_legacy_headers and discover that it defaults to on.

Jon Smirl jonsmirl@gmail.com

Previous: A Large Angry SCMNext: Junio C Hamano
Message 2 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.