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

git name-rev not accepting abbreviated SHA with --stdin

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jun 24, 2015, 03:29 UTC
Message-ID
<558A2405.2090709@gmail.com>
Hi all,

"git name-rev" does not accept abbreviated SHAs if --stdin is used, though it works when the SHA is given directly on the command line:

    $ git version
    git version 2.4.3
    $ git name-rev --tags d73f544
    d73f544 tags/v3.6.3~29
    $ git name-rev --tags --stdin <<< d73f544
    d73f544

This *is* documented, but I'm curious why this distinction is made. Is it merely a matter of parsing or were there some other complications I am unaware of, which forced this distinction to be made?

thanks sitaram

Next: Junio C Hamano
Message 1 of 6 in “git name-rev not accepting abbreviated SHA with --stdin”
  1. Sitaram ChamartyJun 24, 2015
  2. Junio C HamanoJun 25, 2015
  3. Sitaram ChamartyJun 25, 2015
  4. Junio C HamanoJul 3, 2015
  5. Sitaram ChamartyJul 4, 2015
  6. Junio C HamanoJul 4, 2015

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.