tag.c: implement '--format' option
commitdf0947417acd1058c17e2bf20374497f33084549
authorKarthik Nayak <karthik.188@gmail.com>
Fri, 11 Sep 2015 15:06:46 +0000 (11 20:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2015 17:02:49 +0000 (17 10:02 -0700)
tree99dbad97bb320bed4fc87cc94bde6b807d1d581a
parentb7cc53e92c806b73e14b03f60c17b7c29e52b4a4
tag.c: implement '--format' option

Implement the '--format' option provided by 'ref-filter'.
This lets the user list tags as per desired format similar
to the implementation in 'git for-each-ref'.

Add tests and documentation for the same.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-tag.txt
builtin/tag.c
t/t7004-tag.sh