New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get commits history only for a file #220
Comments
libgit2/libgit2#1711 might be helpful for this. |
I had a quick look at the log example from libgit2 and it seems to use the git_pathspec_match_tree function to match for a given file. The var pathspec = new nodegit.Pathspec(); results in
Is there any way to construct a new pathspec using nodegit? |
That object will have to be constructed by the libgit2 library. Right now you'd have to be calling something like git_pathspec_new. Unfortunately we're ignoring that method right now and I think it's because we don't have a good way to pull in an array of strings and pipe that through C++/C to get it into libgit2. That's something we'll have to figure out. If you have any ideas we'd certainly would love the help :) |
Now that |
Hi,
how can I get the commits history but only for a particular file, not all the branch ?
thanks !
The text was updated successfully, but these errors were encountered: