From: Jeff King <peff@peff.net>
To: "NODA, Kai" <nodakai@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git tag --contains <commit> -n=1 ?
Date: Thu, 24 Dec 2009 00:52:58 -0500 [thread overview]
Message-ID: <20091224055257.GA419@sigill.intra.peff.net> (raw)
In-Reply-To: <4B327F8F.2060106@gmail.com>
On Thu, Dec 24, 2009 at 05:37:35AM +0900, NODA, Kai wrote:
> >Since the output of git tag is sorted by name, generally not.
>
> Wow, I didn't know that.
> But then, under the assumption that tags have names like verNNN,
> that behavior ensures me that "head -1" works as intended.
If that assumption does not hold, you can also sort by date. See:
http://article.gmane.org/gmane.comp.version-control.git/133586
-Peff
prev parent reply other threads:[~2009-12-24 5:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 16:19 git tag --contains <commit> -n=1 ? NODA, Kai
2009-12-23 17:19 ` Andreas Schwab
2009-12-23 20:37 ` NODA, Kai
2009-12-24 5:52 ` 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=20091224055257.GA419@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=nodakai@gmail.com \
/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).