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

git describe --contains --abbrev=0 <sha1> doesn't work as expected

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Oct 25, 2013, 15:56 UTC
Message-ID
<CAC9WiBhFRRkwiWH9H4BSUdLrktst5e6MaZd0PLwf03seUUq9eg@mail.gmail.com>
Hello,

Basically doing: git describe --abbrev=0 <sha1> gives the closest tag from <sha1>

I would expect adding "--contains" option would give the closest tag containing <sha1> but it seems that --abbrev=0 has no more effect in that case:

$ git describe --tags --contains --abbrev=0 7f285fa78d4b81b8458f05e77fb6b46245121b4e v2.6.35-rc5~14^2~4

Is that expected ?
Thanks
-- 
Francis
Message 1 of 1 in “git describe --contains --abbrev=0 <sha1> doesn't work as expected”
  1. Francis MoreauOct 25, 2013

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.