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

Re: [PATCH] Add git-name-rev

From
Petr Baudis <pasky@suse.cz>
Date
Oct 26, 2005, 08:36 UTC
Message-ID
<20051026083625.GD30889@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.63.0510260103570.27364@wbgn013.biozentrum.uni-wuerzburg.de>

Dear diary, on Wed, Oct 26, 2005 at 01:05:59AM CEST, I got a letter where Johannes Schindelin <Johannes.Schindelin@gmx.de> told me that...

Show 7 quoted lines
> git-name-rev tries to find nice symbolic names for commits. It does so by 
> walking the commits from the refs. When the symbolic name is ambiguous, 
> the following heuristic is applied: Try to avoid too many ~'s, and if two 
> ambiguous names have the same count of ~'s, take the one whose last number 
> is smaller.
> 
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

I think you should either add this to git-findtags.perl or (better) add git-findtags.perl's functionality (i.e. a switch to search only in the tags) to this and obsolete/kill git-findtags.perl. It is pretty new (from Oct 13) so killing it shouldn't break anything.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 4 in “Add git-name-rev”
  1. Add git-name-revJohannes Schindelin, Oct 25, 2005
  2. Petr BaudisOct 26, 2005
  3. Johannes SchindelinOct 26, 2005
  4. Matthias UrlichsOct 27, 2005

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.