From: Thomas Rast <trast@student.ethz.ch>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH/RFC 0/6] sort tags by date (git tag -l -D)
Date: Mon, 23 Feb 2009 10:04:23 +0100 [thread overview]
Message-ID: <200902231004.25784.trast@student.ethz.ch> (raw)
In-Reply-To: <e29894ca0902221006s1c1af9f9o8c13ff9e06670d95@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 671 bytes --]
Marc-André Lureau wrote:
> I needed to sort my tags by date, and not only the annotated tags.
As others have pointed out, there's no sane way to sort
> I was surprised that git tag didn't know how to do that. May be it
> could be handled simply by some shell script. Please tell me :)
Modulo timezone differences
git for-each-ref --format="%(taggerdate:raw)%(committerdate:raw) %(refname:short)" refs/tags | sort -n | cut -d\ -f3
For some neat reason only one of the dates is displayed, depending on
the type of object.
(Interestingly, the v0.99 tag in git.git doesn't have a date or
tagger...)
--
Thomas Rast
trast@{inf,student}.ethz.ch
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-02-23 9:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-22 18:06 [PATCH/RFC 0/6] sort tags by date (git tag -l -D) Marc-André Lureau
2009-02-23 9:04 ` Thomas Rast [this message]
2009-02-23 9:11 ` Thomas Rast
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=200902231004.25784.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=marcandre.lureau@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).