for-each-ref: add '--points-at' option
commitd325406ef2f3c819d02ac838fb2a3f8e021d08ae
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 7 Jul 2015 16:06:10 +0000 (7 21:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:25:28 +0000 (3 10:25 -0700)
tree224d02444d6b885aaa809ed488a217d24060052c
parent68411046b5067de9c378d1f58313f2fae288286c
for-each-ref: add '--points-at' option

Add the '--points-at' option provided by 'ref-filter'. The
option lets the user to list only refs which points at the
given object.

Add documentation and tests for the same.

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>
Documentation/git-for-each-ref.txt
builtin/for-each-ref.c
t/t6302-for-each-ref-filter.sh