private void CommitCallback(GitDiffWindow window) { if (EditorUtility.DisplayDialog("Are you sure?", "Are you sure you want to commit the changes?", "✔ Commit", "✖ Cancel")) { window.Commit(); } }
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"); } } }