diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
commit | 3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch) | |
tree | 1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/diff.c | |
parent | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff) | |
download | libgit2-3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e.tar.gz |
Remove old and unused error codes
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/diff.c b/src/diff.c index b21dfaf90..b845f9e8c 100644 --- a/src/diff.c +++ b/src/diff.c @@ -35,10 +35,10 @@ static bool diff_path_matches_pathspec(git_diff_list *diff, const char *path) return true; git_vector_foreach(&diff->pathspec, i, match) { - int result = git__fnmatch(match->pattern, path, 0); + int result = p_fnmatch(match->pattern, path, 0); /* if we didn't match, look for exact dirname prefix match */ - if (result == GIT_ENOMATCH && + if (result == FNM_NOMATCH && (match->flags & GIT_ATTR_FNMATCH_HASWILD) == 0 && strncmp(path, match->pattern, match->length) == 0 && path[match->length] == '/') @@ -46,9 +46,6 @@ static bool diff_path_matches_pathspec(git_diff_list *diff, const char *path) if (result == 0) return (match->flags & GIT_ATTR_FNMATCH_NEGATIVE) ? false : true; - - if (result != GIT_ENOMATCH) - giterr_clear(); } return false; |