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

[PATCH 0/2] git describe --first-parent

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 11, 2012, 13:51 UTC
Message-ID
<cover.1347370970.git.git@drmicha.warpmail.net>

While "git describe" behaves as documented, the notion of "most recent tag" is not really easy to grab, and it's not always the way you want to describe a commit.

"--first-parent" is the option which answers the question: Which is the most recent tag on this branch which can be reached from this commit? ("This branch" being defined as "--first-parent" walk.)

I had suggested this before, but the discussion veered off quite a bit: http://permalink.gmane.org/gmane.comp.version-control.git/156811

No need to discuss the way "git describe" behaves again ;)
Michael J Gruber (2):
  git-describe: introduce --first-parent
  describe: document and test --first-parent
 Documentation/git-describe.txt | 16 +++++++++++++++-
 builtin/describe.c             |  8 +++++++-
 t/t6120-describe.sh            |  7 +++++++
 3 files changed, 29 insertions(+), 2 deletions(-)
-- 
1.7.12.463.gbd9d638
Next: Michael J Gruber
Message 1 of 6 in “git describe --first-parent”
  1. 0/2 git describe --first-parentMichael J Gruber, Sep 11, 2012
  2. 1/2 git-describe: introduce --first-parentMichael J Gruber, Sep 11, 2012
  3. Junio C HamanoSep 11, 2012
  4. 2/2 describe: document and test --first-parentMichael J Gruber, Sep 11, 2012
  5. Junio C HamanoSep 11, 2012
  6. Junio C HamanoSep 11, 2012

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.