]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/pathspec.c
Revert PR #1462 and provide alternative fix
authorRussell Belfer <rb@github.com>
Fri, 9 Aug 2013 17:52:35 +0000 (10:52 -0700)
committerRussell Belfer <rb@github.com>
Fri, 9 Aug 2013 17:52:35 +0000 (10:52 -0700)
commit4ba64794aee983483eef659623a765d61311ded1
tree33b048d3b6bda96f53058f43ff6303c257fcb7fb
parentfbb6c0c84c65d5e36ad552040897cfbde83b59b2
Revert PR #1462 and provide alternative fix

This rolls back the changes to fnmatch parsing from commit
2e40a60e847d6c128af23e24ea7a8efebd2427da except for the tests
that were added.  Instead this adds couple of new flags that can
be passed in when attempting to parse an fnmatch pattern.  Also,
this changes the pathspec match logic to special case matching a
filename with a '!' prefix against a negative pattern.

This fixes the build.
src/attr_file.c
src/attr_file.h
src/ignore.c
src/pathspec.c
tests-clar/attr/file.c