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

can git-describe learn first-parent behavior?

From
JSJoshua Shrader <jshrader83@gmail.com>
Date
Sep 21, 2010, 05:58 UTC
Message-ID
<AANLkTi=6o15y-6Q+tn40=hrPf9pmo+Y1Jd97hGxr5mH2@mail.gmail.com>

This seems like it would be a rather useful feature. Suppose a maintenance branch, maint/v1.0, is forked from master, and the branch point is tagged something like "v1.0-stable". The next commit on master is tagged "v2.0-base", indicating that it is the first commit of the new release. Suppose two releases are made - a release for public consumption of version 1.0, and a release for internal testing from master (currently 2.0), and we want to embed the output of git-describe into the builds. If bugs were fixed on 1.0, and then 1.0 was merged into master, it seems perfectly possible to run git-describe on master, but get the v1.0 tag in the output.

Is this just a poor workflow? Am I using git-describe incorrectly? Or, does a first-parent option to git-describe seem useful?

Thanks for the input.
Josh
Next: Michael J Gruber
Message 1 of 12 in “can git-describe learn first-parent behavior?”
  1. Joshua ShraderSep 21, 2010
  2. Michael J GruberSep 21, 2010
  3. git-describe: introduce --first-parentMichael J Gruber, Sep 21, 2010
  4. Johannes SixtSep 21, 2010
  5. Michael J GruberSep 21, 2010
  6. Johannes SixtSep 21, 2010
  7. Michael J GruberSep 21, 2010
  8. Johannes SixtSep 21, 2010
  9. Michael J GruberSep 21, 2010
  10. Joshua ShraderSep 21, 2010
  11. Michael J GruberSep 22, 2010
  12. Joshua ShraderSep 22, 2010

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.