tag.c: implement '--merged' and '--no-merged' options
commit5242860f548d1869ac2779726ad496f0ae8ab5ca
authorKarthik Nayak <karthik.188@gmail.com>
Thu, 10 Sep 2015 16:22:49 +0000 (10 21:52 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2015 17:02:50 +0000 (17 10:02 -0700)
tree34b29e239726d239c4afc4e82348b58c00eb4743
parentdf0947417acd1058c17e2bf20374497f33084549
tag.c: implement '--merged' and '--no-merged' options

Use 'ref-filter' APIs to implement the '--merged' and '--no-merged'
options into 'tag.c'. The '--merged' option lets the user to only list
tags merged into the named commit. The '--no-merged' option lets the
user to only list tags not merged into the named commit.  If no object
is provided it assumes HEAD as the object.

Add documentation and tests 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