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

Manually decoding a git object

From
Philip Oakley <philipoakley@iee.org>
Date
Feb 19, 2012, 15:29 UTC
Message-ID
<A716A27D407F401DAAC373027D5CFF2A@PhilipOakley>
In-Reply-To
<1329624946-32173-1-git-send-email-pclouds@gmail.com>

If I have a renamed file which is a git object, such a "Git_Object", was 8c-something-or-other, what is the easiest way of examining / decoding / recreating the original file (either as its sha1, or a cat-file).

I don't appear to be able to unzip the file in its raw format... I'm using Msysgit on windows XP.

Philip
Previous: Jeff KingNext: 徐迪
Message 10 of 17 in “Document format of basic Git objects”
  1. Document format of basic Git objectsNguyễn Thái Ngọc Duy, Feb 15, 2012
  2. Jonathan NiederFeb 15, 2012
  3. Junio C HamanoFeb 15, 2012
  4. Junio C HamanoFeb 16, 2012
  5. Document format of basic Git objectsNguyễn Thái Ngọc Duy, Feb 19, 2012
  6. Junio C HamanoFeb 19, 2012
  7. Junio C HamanoFeb 19, 2012
  8. Nguyen Thai Ngoc DuyFeb 20, 2012
  9. Jeff KingFeb 20, 2012
  10. Manually decoding a git objectPhilip Oakley, Feb 19, 2012
  11. 徐迪Feb 20, 2012
  12. Philip OakleyFeb 20, 2012
  13. Thomas RastFeb 20, 2012
  14. Philip OakleyFeb 20, 2012
  15. Thomas RastFeb 20, 2012
  16. 徐迪Feb 20, 2012
  17. Philip OakleyFeb 20, 2012

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.