示例#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";
            });
        }
示例#2
0
        /// <summary>
        /// Scans the status of the local repo, and renders it
        /// </summary>
        private void Scan()
        {
            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);
            });
        }