Beispiel #1
0
 //Run when button is clicked
 public override void OnClick(GitGudWindow window)
 {
     GitCore.Push(true, (output) =>
     {
         GitEvents.TriggerOnLocalChange();
     });
 }
Beispiel #2
0
        private void AutoPush()
        {
            GitCore.Push(true, (output) =>
            {
                //Trigger a refresh
                GitEvents.TriggerOnLocalChange();

                //Error
                if (output.errorData != null)
                {
                    Debug.LogError(output.errorData);
                    return;
                }
            });
        }