Re: [PATCH/RFC 0/6] sort tags by date (git tag -l -D)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux