Пример #1
0
        public static void MarkIgnored(string folder)
        {
            var excludePath = GitUtils.GetGitExcludePath(Path.Combine(folder, ".."));

            if (excludePath == null)
            {
                return;
            }

            var contents = GitUtils.GetFileStringList(excludePath).ToList();

            contents.Add(folder);
            GitUtils.SetFileStringList(excludePath, contents);
        }