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

rev-parse, unknown arguments and extended sha1's

From
SVSven Verdoolaege <skimo@liacs.nl>
Date
Jun 24, 2005, 12:24 UTC
Message-ID
<20050624122436.GA15182@pc117b.liacs.nl>

Is git-rev-parse supposed to echo arguments it doesn't understand ? It currently does, but git-checkout-script seems to think it doesn't:

                rev=$(git-rev-parse "$arg")   
                if [ -z "$rev" ]; then
                        echo "unknown flag $arg"
                        exit 1
                fi

Also, is there any reason why the extended sha1 notation is restricted to the scripts and not used in the actual plumbing ?

skimo
Next: Linus Torvalds
Message 1 of 5 in “rev-parse, unknown arguments and extended sha1's”
  1. Sven VerdoolaegeJun 24, 2005
  2. Linus TorvaldsJun 24, 2005
  3. Sven VerdoolaegeJun 24, 2005
  4. Linus TorvaldsJun 24, 2005
  5. Linus TorvaldsJun 24, 2005

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.