Skip to content

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

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions