exclude: add flags parameter to add_patterns()
authorJeff King <peff@peff.net>
Tue, 16 Feb 2021 14:44:28 +0000 (09:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Feb 2021 17:41:33 +0000 (09:41 -0800)
commit1679d60bfc4c5c38f30fc938cf006b1e8608f733
treeb8433e9f7381f5b526bf43e3383d17ae0fa89e3b
parentdbf387d550d679369f3bbbcf2c25ed03f7ff851f
exclude: add flags parameter to add_patterns()

There are a number of callers of add_patterns() and its sibling
functions. Let's give them a "flags" parameter for adding new options
without having to touch each caller. We'll use this in a future patch to
add O_NOFOLLOW support. But for now each caller just passes 0.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/sparse-checkout.c
dir.c
dir.h