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");
         }
     }
 }
예제 #2
0
 private void GoToMerge()
 {
     if (externalManager.TakeMerge())
     {
         gitManager.MarkDirty();
     }
     else
     {
         UniGitLoader.DisplayWizard <GitMergeWizard>("Git Merge", "Merge");
     }
 }
예제 #3
0
 private void GoToPush()
 {
     if (externalManager.TakePush())
     {
         gitManager.MarkDirty();
     }
     else
     {
         var wizard = UniGitLoader.DisplayWizard <GitPushWizard>("Git Push", "Push");
         wizard.Init(selectedBranch.LoadBranch(gitManager));
     }
 }
예제 #4
0
 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));
     }
 }
예제 #5
0
        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);
            }
        }