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