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

RFH: git show HEAD:$SUBMODULE

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 5, 2009, 16:46 UTC
Message-ID
<alpine.DEB.1.00.0902051744520.7491@intel-tinevez-2-302>
Hi,

at the moment, 'show HEAD:$SUBMODULE' fails horribly, as git-show abuses the revision walker to parse the command line parameters, and the revision walker does not like a non-existing commit.

Instead, it would be nicer to show the user something like
	HEAD:$SUBMODULE
	submodule at commit $COMMIT_NAME

However, I have no clue how to go about getting that. I want to avoid having to parse the parameters twice, but I also do not want to fsck up the revision walker...

Ideas?

Ciao, Dscho

Next: Junio C Hamano
Message 1 of 2 in “RFH: git show HEAD:$SUBMODULE”
  1. Johannes SchindelinFeb 5, 2009
  2. Junio C HamanoFeb 5, 2009

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.