mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-17 16:02:11 +00:00

This adds APIs for querying git attributes. In addition to the new API in include/git2/attr.h, most of the action is in src/attr_file.[hc] which contains utilities for dealing with a single attributes file, and src/attr.[hc] which contains the implementation of the APIs that merge all applicable attributes files.
29 lines
438 B
Plaintext
29 lines
438 B
Plaintext
# a comment followed by some blank lines
|
|
|
|
|
|
|
|
# another comment that is indented
|
|
|
|
# variations on fnmatch
|
|
|
|
pat0 attr0
|
|
!pat1 attr1
|
|
pat2/ attr2
|
|
pat3dir/pat3file attr3
|
|
pat4.* attr4
|
|
*.pat5 attr5
|
|
pat6/pat6/*.pat6 attr6
|
|
|
|
pat7[a-e]??[xyz] attr7 # with a comment on the line
|
|
|
|
pat8\ with\ spaces attr8
|
|
|
|
invalid # attr with no assignments doesn't count
|
|
|
|
also/invalid
|
|
|
|
invalid.again/
|
|
|
|
# next attr is at eof
|
|
|
|
pat9 attr9 |