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

Re: git tag --no-merged?

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 4, 2015, 18:43 UTC
Message-ID
<xmqq61bho6ub.fsf@gitster.dls.corp.google.com>
In-Reply-To
<alpine.DEB.2.00.1502041615110.30476@ds9.cixit.se>
Peter Krefting <peter@softwolves.pp.se> writes:
> Using "git branch --no-merged" I can get a list of branches that I
> have that I haven't merged into my current branch. "git tag" doesn't
> have such an option, is there a way to achieve something similar
> listing tags that point to commits that aren't in my history?

Using canned set of tools, I do not think there is anything less complex than doing something like:

 $ git log --oneline --decorate --branches --not --tags

The longer term goal that has been floated a few times here is to unify various logic that computes containment relationships in "branch", "tags", etc. to one place and perhaps expose that unified logic to "for-each-ref", but that hasn't happened yet.

Previous: Peter KreftingNext: Johannes Sixt
Message 2 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.