Пример #1
0
        public static GitOutputs InvokeWithOutput(BaseGitCommand command, GitOptions gitOptions = null)
        {
            var git = new Git(command, gitOptions);
            git.Start(true);
            git.WaitForExit();

            return git._gitOutputs;
        }
Пример #2
0
        private Git(BaseGitCommand command, GitOptions gitOptions)
        {
            if (gitOptions == null)
                gitOptions = new GitOptions();

            _gitOptions = gitOptions;

            #if DEBUG
            _gitOptions.DisplayStandardOutput = true;
            #endif

            _command = command;
        }
Пример #3
0
 public static void Invoke(BaseGitCommand command, GitOptions gitOptions = null)
 {
     var git = new Git(command, gitOptions);
     git.Start(false);
     git.WaitForExit();
 }