summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-03-13 18:23:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-13 22:28:54 (GMT)
commitb0db70465246bb8309d3d12c9bc34ac3f0c1e203 (patch)
treea82cfca2e400ddd21f22cec61e2d664462e4a38f /attr.h
parent625568cd8813bf32b2172eaf59e45e9da5978ce3 (diff)
downloadgit-b0db70465246bb8309d3d12c9bc34ac3f0c1e203.zip
git-b0db70465246bb8309d3d12c9bc34ac3f0c1e203.tar.gz
git-b0db70465246bb8309d3d12c9bc34ac3f0c1e203.tar.bz2
pathspec: allow querying for attributes
The pathspec mechanism is extended via the new ":(attr:eol=input)pattern/to/match" syntax to filter paths so that it requires paths to not just match the given pattern but also have the specified attrs attached for them to be chosen. Based on a patch by Stefan Beller <sbeller@google.com> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/attr.h b/attr.h
index 48ab3e1..442d464 100644
--- a/attr.h
+++ b/attr.h
@@ -44,6 +44,7 @@ struct attr_check {
extern struct attr_check *attr_check_alloc(void);
extern struct attr_check *attr_check_initl(const char *, ...);
+extern struct attr_check *attr_check_dup(const struct attr_check *check);
extern struct attr_check_item *attr_check_append(struct attr_check *check,
const struct git_attr *attr);