Skip to content

KeyNotFoundException when trying to iterate through QueryBy result set. #1410

@shehan

Description

@shehan

I'm trying to get all commits that a particular file is associated with. This is the code that I'm running:

IEnumerable<LogEntry> fileHistory = repo.Commits.QueryBy(fileRelativePath);
foreach (LogEntry version in fileHistory){
 // do something...
}

The foreach throws a KeyNotFoundException. Any idea on how to overcome this?

I'm using: LibGit2Sharp.0.23.1

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