private int Run(string commitish) { // Warn, based on core.autocrlf or core.safecrlf value? // -- autocrlf=true or safecrlf=true: TFS may have CRLF where git has LF var parents = _globals.Repository.GetParentTfsCommits(commitish); if (parents.IsEmpty()) { throw new GitTfsException("No TFS parents found to compare!"); } foreach (var parent in parents) { _verifier.Verify(parent); } return(GitTfsExitCodes.OK); }
private int RunFromCommitish(string commitish) { // Warn, based on core.autocrlf or core.safecrlf value? // -- autocrlf=true or safecrlf=true: TFS may have CRLF where git has LF var parents = _globals.Repository.GetLastParentTfsCommits(commitish); if (parents.IsEmpty()) { throw new GitTfsException("No TFS parents found to compare!"); } int foundDiff = GitTfsExitCodes.OK; foreach (var parent in parents) { foundDiff = Math.Max(foundDiff, _verifier.Verify(parent, IgnorePathCaseMismatch)); } return(foundDiff); }