Пример #1
0
        private void ReadGitAttributes()
        {
            var attributesPath = Path.Combine(repoPath, ".gitattributes");

            string[] attributesLines;
            if (fileLinesReader.ReadLines(attributesPath, out attributesLines))
            {
                foreach (var line in attributesLines)
                {
                    ReadLine(line);
                }
            }
        }
Пример #2
0
        private Regex[] ReadGitAttributes()
        {
            var list           = new List <Regex>();
            var attributesPath = Path.Combine(paths.RepoPath, ".gitattributes");

            string[] attributesLines;
            if (fileLinesReader.ReadLines(attributesPath, out attributesLines))
            {
                foreach (var line in attributesLines)
                {
                    ReadLine(line, list);
                }
            }
            return(list.ToArray());
        }