From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Subject: Re: More formatting with 'git tag -l' Date: Mon, 29 Aug 2011 23:20:11 +0200 Organization: Gentoo Message-ID: <20110829232011.565ea553@pomiocik.lan> References: <20110829211018.2ce4ebab@pomiocik.lan> <20110829193658.GG756@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/6DL3__fjperBp06XhTA/.f="; protocol="application/pgp-signature" Cc: git@vger.kernel.org To: Jeff King X-From: git-owner@vger.kernel.org Mon Aug 29 23:19:03 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qy9EU-0001a4-AB for gcvg-git-2@lo.gmane.org; Mon, 29 Aug 2011 23:19:02 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754851Ab1H2VS3 (ORCPT ); Mon, 29 Aug 2011 17:18:29 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:45001 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754835Ab1H2VS2 (ORCPT ); Mon, 29 Aug 2011 17:18:28 -0400 Received: from pomiocik.lan (unknown [87.204.190.32]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 1E8111B40A1; Mon, 29 Aug 2011 21:18:25 +0000 (UTC) In-Reply-To: <20110829193658.GG756@sigill.intra.peff.net> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; x86_64-pc-linux-gnu) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: --Sig_/6DL3__fjperBp06XhTA/.f= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 29 Aug 2011 15:36:58 -0400 Jeff King wrote: > On Mon, Aug 29, 2011 at 09:10:18PM +0200, Micha=C5=82 G=C3=B3rny wrote: >=20 > > Would it be feasible to add more formatting options to 'git tag -l'. > > Right now, it's just '-n' but if more formatting options were added, > > I think I could use annotated tags as a nice source for > > autogenerated 'NEWS' file. > >=20 > > What I am most concerned about is the date of last commit contained > > in the tag. Having an option to format each printed tag and use that > > information along with tag details in a format string (like the one > > used by 'git log') would be great. >=20 > You can do something similar with 'git for-each-ref', which is > probably what you should be using if you are scripting, anyway (as it > is "plumbing" and guaranteed not to change in future releases). > Something like: Thanks, that looks great. The only thing I am missing right now is a simple %(body) variant which would strip the GPG signature. I'd really like to avoid establishing a shell oneliner to do that. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/6DL3__fjperBp06XhTA/.f= Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iJwEAQEIAAYFAk5cAosACgkQfXuS5UK5QB1tzwQAr+GkPBpsMRZxSZ25THkuxxQ8 n/FSS0IWAfNOTLGoRNt3sm8F0phAQ3Yjvr7IsjN8Q5r6bHLqGg7NyJ8ieceVKVeX Iym4TYh0axd8T5iNQp5rFOTvVL6cnsNc7nJdeAs0iXV9LabFPS5P76DICVSR+YNo Iy/LyqGy5tyvvO2pKwE= =h52W -----END PGP SIGNATURE----- --Sig_/6DL3__fjperBp06XhTA/.f=--