using LibGit2Sharp.Handlers;
namespace LibGit2Sharp
{
///
/// Allows callers to specify how unmatched paths should be handled
/// by operations such as Reset(), Compare(), Unstage(), ...
///
/// By passing these options, the passed paths will be treated as
/// explicit paths, and NOT pathspecs containing globs.
///
///
public class ExplicitPathsOptions
{
///
/// Associated paths will be treated as explicit paths.
///
public ExplicitPathsOptions()
{
ShouldFailOnUnmatchedPath = true;
}
///
/// When set to true, the called operation will throw a when an unmatched
/// path is encountered.
///
/// Set to true by default.
///
///
public bool ShouldFailOnUnmatchedPath { get; set; }
///
/// Sets a callback that will be called once for each unmatched path.
///
public UnmatchedPathHandler OnUnmatchedPath { get; set; }
}
}