Verify() public method

public Verify ( TfsChangesetInfo changeset, bool ignorePathCaseMismatch ) : int
changeset Sep.Git.Tfs.Core.TfsChangesetInfo
ignorePathCaseMismatch bool
return int
Example #1
0
        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);
        }
Example #2
0
        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);
        }