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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2012, 16:10 UTC
Message-ID
<7vwr00ilqj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<cover.1347370970.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 7 quoted lines
> 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 see a confused message here. If it is "the" option which answers, what is the question? If the "question" is the only question people would ask, you wouldn't make this an option, but update the default to do this, but you obviously did not want to do so, so there must be cases where using this option is inappropirate and is not "the" option to answer the question the user wants to ask.

Also, how would this interact with "--contains"? Should it and if so why? If it shouldn't, why?

Previous: Junio C Hamano
Message 6 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.