parse-options.h: add macros for '--contains' option
authorKarthik Nayak <redacted>
Tue, 7 Jul 2015 16:06:15 +0000 (21:36 +0530)
committerJunio C Hamano <redacted>
Mon, 3 Aug 2015 17:25:28 +0000 (10:25 -0700)
commitf266c9163b34ec55e453d27e1ed246d67ee3ced0
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 <redacted>
Mentored-by: Matthieu Moy <redacted>
Signed-off-by: Karthik Nayak <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/branch.c
builtin/tag.c
parse-options.h
git clone https://git.99rst.org/PROJECT