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.