]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.h
ref-filter: implement '--merged' and '--no-merged' options
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 7 Jul 2015 16:06:12 +0000 (21:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:25:28 +0000 (10:25 -0700)
commit35257aa01203bae74f9fb856fb02c10c4b3836e6
treebcf796961dbfa72b519900247f4bbb08f746a516
parent5afcb90560586765bf21fb09959a8b4497804639
ref-filter: implement '--merged' and '--no-merged' options

In 'branch -l' we have '--merged' option which only lists refs (branches)
merged into the named commit and '--no-merged' option which only lists
refs (branches) not merged into the named commit. Implement these two
options in ref-filter.{c,h} so that other commands can benefit from this.

Based-on-patch-by: Jeff King <peff@peff.net>
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>
builtin/branch.c
ref-filter.c
ref-filter.h