Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Some file can't be tracked by Commits.QueryBy(path) #1591

Open
wenlong-xyz opened this issue Jul 3, 2018 · 0 comments
Open

Some file can't be tracked by Commits.QueryBy(path) #1591

wenlong-xyz opened this issue Jul 3, 2018 · 0 comments

Comments

@wenlong-xyz
Copy link

I use to following code to track the latest change for a special file. But I found some file can't be tracked while the others can be tracked correctly.

var latestCommitLog = repository.Commits.QueryBy(file);
if (latestCommitLog.Count() > 0)
{
        var latestCommit = latestCommitLog.First().Commit;
}
else 
{
        // no history
        // some file has be pushed to repository but can't be tracked.
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant