public GitRepositoryConfigurer(IFileSystem fileSystem, IGitCommand gitCommand, TextReader reader, TextWriter writer)
 {
     _fileSystem = fileSystem;
     _gitCommand = gitCommand;
     _reader = reader;
     _writer = writer;
 }
 public GitRepositoryConfigurer(IFileSystem fileSystem, IGitCommand gitCommand, TextReader reader, TextWriter writer)
 {
     _fileSystem = fileSystem;
     _gitCommand = gitCommand;
     _reader     = reader;
     _writer     = writer;
 }
예제 #3
0
        public void SetupTests()
        {
            _console = Substitute.For <IConsole>();
            _writer  = Substitute.For <IConsoleWriter>();

            var repoDirs = Substitute.For <IRepositoryPaths>();

            repoDirs.RootFolder.Returns("C:\\Junk\\Folder\\");
            repoDirs.RepositoryFolder.Returns("C:\\Junk\\Folder\\.git\\");
            _cmdlet = Substitute.For <IGitCommand>();

            _cmdlet.RepositoryDirectories.Returns(repoDirs);
        }
예제 #4
0
        public ProgressForm(IGitCommand gitCommand)
        {
            InitializeComponent();

            _gitCommand = gitCommand;
            _gitCommand.CommandProgress += _gitCommand_CommandProgress;
            _gitCommand.CommandSuccess  += _gitCommand_CommandSuccess;
            _gitCommand.CommandAborted  += _gitCommand_CommandAborted;
            _gitCommand.CommandFailed   += _gitCommand_CommandFailed;

            _tracer         = new RichTextBoxTraceListener(LogBox);
            Trace.AutoFlush = true;
            Trace.Listeners.Add(_tracer);
        }
예제 #5
0
 public GitCommandParserBase(IGitCommand command)
 {
     this.Command      = command;
     this.CmdletWriter = command.CmdletWriter;
 }
예제 #6
0
파일: GitTag.cs 프로젝트: nbucket/bounce
 public GitTag() {
     Git = new GitCommand();
     Force = false;
 }
예제 #7
0
 public GitCheckout(IGitRepoParser gitRepoParser, IDirectoryUtils directoryUtils, IGitCommand gitCommand)
 {
     GitRepoParser  = gitRepoParser;
     DirectoryUtils = directoryUtils;
     GitCommand     = gitCommand;
 }
예제 #8
0
 private static GitCommandLineBuilder CreateSut(IGitCommand command)
 {
     return(new GitCommandLineBuilder(command));
 }
예제 #9
0
 public GitStatusParser(IGitCommand command) : base(command)
 {
 }
예제 #10
0
 public GitCheckout(IGitRepoParser gitRepoParser, IDirectoryUtils directoryUtils, IGitCommand gitCommand)
 {
     GitRepoParser = gitRepoParser;
     DirectoryUtils = directoryUtils;
     GitCommand = gitCommand;
 }
예제 #11
0
 public GitCommandLineBuilder(IGitCommand gitCommand)
 {
     this.gitCommand = gitCommand;
 }
예제 #12
0
 public GitConfigParser(IGitCommand command) : base(command)
 {
     this.Command = command;
 }
 public GitCommandLineBuilder(IGitCommand gitCommand)
 {
     this.gitCommand = gitCommand;
 }
예제 #14
0
 public GitTag()
 {
     Git   = new GitCommand();
     Force = false;
 }