pathspec.h
1.19 KB
-
Return the matched pathspec pattern in `git_pathspec_match_path` · 943700ec
Instead of returning directly the pattern as the return value, I used an out parameter, because the function also tests if the passed pathspecs vector is empty. If yes, it considers that the path "matches", but in that case there is no matched pattern per se.
yorah committed