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

Re: git tag --no-merged?

From
Peter Krefting <peter@softwolves.pp.se>
Date
Feb 5, 2015, 09:09 UTC
Message-ID
<alpine.DEB.2.00.1502051001090.10655@ds9.cixit.se>
In-Reply-To
<6A0F0356-2AF1-487D-A20E-FB6051D9E689@gmail.com>
Kyle J. McKay:
Show 8 quoted lines
> I think something like this might do what you want:
>
> git for-each-ref --format='%(refname)' refs/tags | \
> while read t; do
> if ! git merge-base --is-ancestor $t HEAD; then
>   echo ${t#refs/tags/}
> fi
> done
That works like a charm, thank you!
-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Kyle J. McKay
Message 6 of 6 in “git tag --no-merged?”
  1. Peter KreftingFeb 4, 2015
  2. Junio C HamanoFeb 4, 2015
  3. Johannes SixtFeb 4, 2015
  4. Junio C HamanoFeb 4, 2015
  5. Kyle J. McKayFeb 5, 2015
  6. Peter KreftingFeb 5, 2015

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.