git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: CoDEmanX <codemanx@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: List tags for a certain branch
Date: Sun, 23 Aug 2015 14:58:23 -0400	[thread overview]
Message-ID: <20150823185822.GA8005@sigill.intra.peff.net> (raw)
In-Reply-To: <0322fd40-7473-4faa-840f-8be27f555435@email.android.com>

On Sun, Aug 23, 2015 at 08:06:39PM +0200, CoDEmanX wrote:

> > in a future version of git you should be able to do "git tag 
> --merged" to get the tags that are "merged" to a particular branch. 
> 
> Would it return every tag in the branch, even if it was created in
> that branch, and not merged from somewhere else? If no, than it's not
> what I am looking for. 
> 
> (Or more precisely: would it give a list of all tags, that point to
> commits present in the specified branch, regardless of whether these
> commits were originally done in that branch or merged from another
> branch? I hope my understanding of git is correct here...)

Yes, it would show all tags that are present in the history leading up
to that branch tip[1]. Git tracks a DAG of the history; it does not
remember "which branch" a particular action happened on.

-Peff

[1] Actually the argument to "--merged" does not need to be a branch at
    all. It is really a commit, so you could specify a tag, an extended
    sha-1 expression, etc.

      reply	other threads:[~2015-08-23 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 15:27 List tags for a certain branch CoDEmanX
2015-08-23 17:07 ` Jeff King
2015-08-23 18:06   ` CoDEmanX
2015-08-23 18:58     ` Jeff King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150823185822.GA8005@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=codemanx@gmx.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).