public static void ShowDiff(string path, [NotNull] Commit start, [NotNull] Commit end) { if (GitExternalManager.TakeDiff(path, start, end)) { return; } }
public void ShowDiff(string path, [NotNull] Commit oldCommit, [NotNull] Commit newCommit, GitExternalManager externalManager) { if (externalManager.TakeDiff(path, oldCommit, newCommit)) { return; } var window = UniGitLoader.GetWindow <GitDiffInspector>(); window.Init(path, oldCommit, newCommit); }
public static void ShowDiff(string path) { if (string.IsNullOrEmpty(path) || Repository == null) { return; } if (GitExternalManager.TakeDiff(path)) { return; } EditorWindow.GetWindow <GitDiffInspector>(true).Init(path); }
public void ShowDiff(string path, GitExternalManager externalManager) { if (string.IsNullOrEmpty(path) || Repository == null) { return; } if (externalManager.TakeDiff(path)) { return; } var window = UniGitLoader.GetWindow <GitDiffInspector>(); window.Init(path); }
public static void ShowDiffPrev(string path) { if (string.IsNullOrEmpty(path) && Repository != null) { return; } var lastCommit = Repository.Commits.QueryBy(path).Skip(1).FirstOrDefault(); if (lastCommit == null) { return; } if (GitExternalManager.TakeDiff(path, lastCommit.Commit)) { return; } EditorWindow.GetWindow <GitDiffInspector>(true).Init(path, lastCommit.Commit); }
public void ShowDiffPrev(string path, GitExternalManager externalManager) { if (string.IsNullOrEmpty(path) || Repository == null) { return; } var lastCommit = Repository.Commits.QueryBy(path).Skip(1).FirstOrDefault(); if (lastCommit == null) { return; } if (externalManager.TakeDiff(path, lastCommit.Commit)) { return; } var window = UniGitLoader.GetWindow <GitDiffInspector>(); window.Init(path, lastCommit.Commit); }