コード例 #1
0
        private string GetSelectedPatch(IList <GitRevision> revisions, GitItemStatus file)
        {
            string firstRevision  = revisions.Count > 0 ? revisions[0].Guid : null;
            string secondRevision = revisions.Count == 2 ? revisions[1].Guid : null;

            return(DiffText.GetSelectedPatch(firstRevision, secondRevision, file));
        }