Example #1
0
        /// <summary>
        /// Scans the status of the local repo, and renders it
        /// </summary>
        private void Scan()
        {
            //Scan status
            GitCore.Status(true,
                           (commandOutput) =>
            {
                //Error catch
                if (commandOutput.errorData != null)
                {
                    Debug.LogError(commandOutput.errorData);
                    error       = true;
                    errorString = commandOutput.errorData;
                    return;
                }

                error = false;
                BuildStageLists(commandOutput.outputData);
            });

            //Scan branch
            GitCore.CurrentBranch((branch) =>
            {
                branchName = branch;
            }, (error) =>
            {
                branchName = "Error";
            });
        }
Example #2
0
 private void OnEnable()
 {
     GitCore.CurrentBranch((branch) =>
     {
         currentBranchName = branch;
         Repaint();
     });
 }