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

Re: Git describe question

From
JHJean-Luc Herren <jlh@gmx.ch>
Date
Jul 14, 2008, 22:29 UTC
Message-ID
<487BD34F.4080201@gmx.ch>
In-Reply-To
<20080714092040.4090046b@crow>
Mark Burton wrote:
Show 5 quoted lines
> Ok, I understand what it's doing now - but that makes me wonder if it
> would be useful/possible to be able to specify that git describe only
> considers the commits on top of the tag for the current (or some
> specified branch). i.e. at the moment, gitk shows 8 commits on top of
> v1.5.6.3 in the master branch.

Are you saying "git describe" should output v1.5.6.3-8-g10ce020? That would be misleading and even wrong. This would be like saying that there are only 8 commits of difference between v1.5.6.3 and 10ce20, which is not true. The differences between those two commits are over 300 single commits and that's also what "git (log|diff) v1.5.6.3..10ce20" will tell you. All 300+ commits that have been made to the branch master since the branch maint forked off are part of 10ce20, but not part of v1.5.6.3. It seems fine to me that "git describe" reflects this difference.

> As the master branch is the checked out branch and the v1.5.6.3 tag
> tags a commit in that branch (via the merge) [...]

I don't think people usually say "tag X is on branch Y", excepted maybe if Y has never been merged anywhere. Specifically, nobody would say v1.5.6.3 is *on* branch master. But it's part of its history. v1.5.6.3 is *on* maint, at best.

jlh
Previous: Mark BurtonNext: Junio C Hamano
Message 4 of 6 in “Git describe question”
  1. Mark BurtonJul 14, 2008
  2. Junio C HamanoJul 14, 2008
  3. Mark BurtonJul 14, 2008
  4. Jean-Luc HerrenJul 14, 2008
  5. Junio C HamanoJul 14, 2008
  6. Mark BurtonJul 15, 2008

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.