10000 Some file can't be tracked by Commits.QueryBy(path) · Issue #1591 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content
Some file can't be tracked by Commits.QueryBy(path) #1591
Open
@wenlong-xyz

Description

@wenlong-xyz

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.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0