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>
This commit is contained in:

committed by
Junio C Hamano

parent
625568cd88
commit
b0db704652
1
attr.h
1
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);
|
||||
|
Reference in New Issue
Block a user