]> git.ipfire.org Git - thirdparty/git.git/commit - commit.c
commit: add for_each_mergetag()
authorChristian Couder <chriscool@tuxfamily.org>
Mon, 7 Jul 2014 06:35:37 +0000 (08:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2014 22:32:21 +0000 (15:32 -0700)
commit063da62b02aeafe58fdacce0ea48c0761b06df60
tree56b0db184d387b64fb3e12cdf5cd7d857216f655
parent6f92e5ff3cdc813de8ef5327fd4bad492fb7d6c9
commit: add for_each_mergetag()

In the same way as there is for_each_ref() to iterate on refs,
for_each_mergetag() allows the caller to iterate on the mergetags of
a given commit.  Use it to rewrite show_mergetag() used in "git log".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h
log-tree.c