From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH/RFC 0/6] sort tags by date (git tag -l -D)
Date: Sun, 22 Feb 2009 20:06:33 +0200 [thread overview]
Message-ID: <e29894ca0902221006s1c1af9f9o8c13ff9e06670d95@mail.gmail.com> (raw)
Hi,
I needed to sort my tags by date, and not only the annotated tags. 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 :)
Take this patch series easy, it's only a RFC. I had some fun hacking
the code, that's the most important for me. I would be happy to take
comment.
Something I wish I could do is also have a better pretty_print_tag()
to have customized format (or may be it should be in git log instead?)
I tried different approach to deal with light tags, and none was
really good. In the end, I decided to use the "object" base type, and
have a private light_tag type. There might be different solutions to
that. I am happy to discuss them.
regards,
Marc-Andre Lureau (6):
tag: read signature
tag: parse the date
tag: copy parsed buffer unconditionnaly
object: add one bit to let creation of private types (OBJ_MAX + n)
builtin-tag: add sort by date -D
test: add simple sorted tag test
builtin-tag.c | 162 ++++++++++++++++++++++++++++++++++++++++++++-----------
object.h | 2 +-
t/t7004-tag.sh | 53 ++++++++++++++++++
tag.c | 17 +++++-
tag.h | 5 ++-
5 files changed, 201 insertions(+), 38 deletions(-)
next reply other threads:[~2009-02-22 18:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-22 18:06 Marc-André Lureau [this message]
2009-02-23 9:04 ` [PATCH/RFC 0/6] sort tags by date (git tag -l -D) Thomas Rast
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=e29894ca0902221006s1c1af9f9o8c13ff9e06670d95@mail.gmail.com \
--to=marcandre.lureau@gmail.com \
--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).