I'm searching a way to discard all changes of file with path.
in libGit2Sharp there is exist method
CheckoutOptions options = new CheckoutOptions { CheckoutModifiers = CheckoutModifiers.Force };
repo.CheckoutPaths("49916", checkoutPaths, options);
but I see no similar method in libgit2 API
How can I reset file to start state of head's commit?
I do not need unstage changes -- I need exactly revert SINGLE file to state of head commit.