Contains() public method

public Contains ( string pathInGitRepo ) : bool
pathInGitRepo string
return bool
Beispiel #1
0
        private bool IncludeInFetch(NamedChange change)
        {
            if (IgnorableChangeType(change.Change.ChangeType) && _resolver.Contains(change.GitPath))
            {
                return(false);
            }

            return(_resolver.ShouldIncludeGitItem(change.GitPath));
        }
Beispiel #2
0
        private bool IncludeInFetch(NamedChange change)
        {
            // If a change is only a branch or merge operation and we already have a file at the target path,
            // then there is nothing to do for that change.
            if ((change.Change.ChangeType == TfsChangeType.Branch ||
                 change.Change.ChangeType == TfsChangeType.Merge) &&
                _resolver.Contains(change.GitPath))
            {
                return(false);
            }

            return(_resolver.ShouldIncludeGitItem(change.GitPath));
        }