Ejemplo n.º 1
0
        private static void ParseUnifiedDiff(string path, GitDiffParser diffParser, GitCommit commit)
        {
            commit.Difflets = diffParser.Parse(commit.UnifiedDiff);

            foreach (var file in commit.Files)
            {
                if (file.Status != "A")
                {
                    file.BeforeText = GitCommands.ShowFileBeforeCommit(path, commit.Sha, file.File);
                }
                if (file.Status != "D")
                {
                    file.AfterText = GitCommands.ShowFileAfterCommit(path, commit.Sha, file.File);
                }
            }
        }