private void CommitAndPushCallback(GitDiffWindow window) { if (gitSettings.ExternalsType.IsFlagSet(GitSettingsJson.ExternalsTypeEnum.Commit) || EditorUtility.DisplayDialog("Are you sure?", "Are you sure you want to commit the changes and then push them?", "➔ Commit and Push", "✖ Cancel")) { if (window.Commit()) { UniGitLoader.DisplayWizard <GitPushWizard>("Git Push", "Push"); } } }
private void GoToMerge() { if (externalManager.TakeMerge()) { gitManager.MarkDirty(); } else { UniGitLoader.DisplayWizard <GitMergeWizard>("Git Merge", "Merge"); } }
private void GoToPush() { if (externalManager.TakePush()) { gitManager.MarkDirty(); } else { var wizard = UniGitLoader.DisplayWizard <GitPushWizard>("Git Push", "Push"); wizard.Init(selectedBranch.LoadBranch(gitManager)); } }
private void GoToPull() { if (externalManager.TakePull()) { gitManager.Callbacks.IssueAssetDatabaseRefresh(); gitManager.MarkDirty(); } else { var wizard = UniGitLoader.DisplayWizard <GitPullWizard>("Git Pull", "Pull"); wizard.Init(selectedBranch.LoadBranch(gitManager)); } }
private void GoToFetch() { var branch = selectedBranch.LoadBranch(gitManager); if (externalManager.TakeFetch(branch.Remote.Name)) { gitManager.MarkDirty(); } else { var wizard = UniGitLoader.DisplayWizard <GitFetchWizard>("Git Fetch", "Fetch"); wizard.Init(branch); } }