-
Notifications
You must be signed in to change notification settings - Fork 888
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
Support "git log --path" #463
Comments
I am waiting this parameter also, but I have some code for path filter, see https://gist.github.com/Aimeast/6250443 |
Can anyone assign this to me? |
Tried but can't assign to non-collaborator. 👿 That said, it's all yours. |
Does |
@Aimeast There's no direct API for that. It can be done at a managed level by iterating commits which contain the path. |
This functionality was added by #963 |
Hi @carlosmn i tried #963 but could not achieve it. below is what i am doing. can u check if i am doing it correct. help is much appreciated. public static void GetFileHistory(string filepath,string repopath)
{
using (var repo = new Repository(repopath))
{
// here i am using absolute file path
IEnumerable<LogEntry> history = repo.Commits.QueryBy(filepath);
//problem is here. it does not go into loop.
foreach(LogEntry e in history)
{
Console.WriteLine(e.Commit.Message);
}
}
} /// here is what i get |
Do we support git log --path? It seems there is no path parameter in Filter. Is there another way to implement "git log --path"?
The text was updated successfully, but these errors were encountered: