parse-options.h: add macros for '--contains' option
commitf266c9163b34ec55e453d27e1ed246d67ee3ced0
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 7 Jul 2015 16:06:15 +0000 (7 21:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:25:28 +0000 (3 10:25 -0700)
tree5f6e5b518280198ee1077d5aac0ca7892e82b89e
parent9d306b5a6077f026291df3c4a5968eaf95a92417
parse-options.h: add macros for '--contains' option

Add a macro for using the '--contains' option in parse-options.h
also include an optional '--with' option macro which performs the
same action as '--contains'.

Make tag.c and branch.c use this new macro.

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
builtin/tag.c
parse-options.h