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

git cat-file on a submodule

From
David Turner <novalis@novalis.org>
Date
Jan 11, 2017, 00:11 UTC
Message-ID
<1484093500.17967.6.camel@frank>
Why does git cat-file -t $sha:foo, where foo is a submodule, not work? 
git rev-parse $sha:foo works.  

By "why", I mean "would anyone complain if I fixed it?" FWIW, I think -p should just return the submodule's sha.

Next: Stefan Beller
Message 1 of 5 in “git cat-file on a submodule”
  1. David TurnerJan 11, 2017
  2. Stefan BellerJan 11, 2017
  3. Jeff KingJan 11, 2017
  4. David TurnerJan 11, 2017
  5. Junio C HamanoJan 11, 2017

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.