ShouldIncludeGitItem() public method

public ShouldIncludeGitItem ( string gitPath ) : bool
gitPath string
return bool
Exemplo n.º 1
0
        private bool IncludeInFetch(NamedChange change)
        {
            if (IgnorableChangeType(change.Change.ChangeType) && _resolver.Contains(change.GitPath))
            {
                return(false);
            }

            return(_resolver.ShouldIncludeGitItem(change.GitPath));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 private bool Include(string pathInGitRepo)
 {
     return(_resolver.ShouldIncludeGitItem(pathInGitRepo));
 }