libgit2

git_revwalk_pathspec

Version:

Set a git_pathspec object to filter commits on

Changing the pathspec rests the walker

Signature

int git_revwalk_pathspec(git_revwalk *walk, git_pathspec *pathspec);

Parameters

In
walk

the walker being used for the traversal.

In
pathspec

Paths to filter commits on

Returns

int

0 or an error code

Versions