UnityEditor.ASHistoryWindow.DoShowDiff C# (CSharp) Method

DoShowDiff() private method

private DoShowDiff ( bool binary, int ver1, int ver2 ) : void
binary bool
ver1 int
ver2 int
return void
        private void DoShowDiff(bool binary, int ver1, int ver2)
        {
            List<string> list = new List<string>();
            List<CompareInfo> list2 = new List<CompareInfo>();
            if ((ver2 == -1) && (AssetDatabase.GUIDToAssetPath(this.m_ChangeLogSelectionGUID) == string.Empty))
            {
                Debug.Log("Cannot compare asset " + this.m_ChangeLogSelectionAssetName + " to local version because it does not exist.");
            }
            else
            {
                list.Add(this.m_ChangeLogSelectionGUID);
                list2.Add(new CompareInfo(ver1, ver2, !binary ? 0 : 1, !binary ? 1 : 0));
                Debug.Log("Comparing asset " + this.m_ChangeLogSelectionAssetName + " revisions " + ver1.ToString() + " and " + ((ver2 != -1) ? ver2.ToString() : "Local"));
                AssetServer.CompareFiles(list.ToArray(), list2.ToArray());
            }
        }