コード例 #1
0
ファイル: BashGitStrategy.cs プロジェクト: draptik/RepoSync
		public ICommandResponse Push (string path)
		{
			ICommandRequest gitRequest = new GitRequest {
                               Arguments = "push ",
                               WorkingDirectory = path
                       };
			return new CommandService (new BashGitCommandOutputStrategy ()).Execute (gitRequest);
//			return null;
		}
コード例 #2
0
        public ICommandResponse Pull(string src, string dest)
        {
            ICommandRequest gitRequest = new GitRequest {
                Arguments        = "pull " + src,
                WorkingDirectory = dest
            };

            return(new CommandService(new BashGitCommandOutputStrategy()).Execute(gitRequest));
//			return null;
        }
コード例 #3
0
        public ICommandResponse Push(string path)
        {
            ICommandRequest gitRequest = new GitRequest {
                Arguments        = "push ",
                WorkingDirectory = path
            };

            return(new CommandService(new BashGitCommandOutputStrategy()).Execute(gitRequest));
//			return null;
        }
コード例 #4
0
ファイル: BashGitStrategy.cs プロジェクト: draptik/RepoSync
		public ICommandResponse Pull (string src, string dest)
		{
			ICommandRequest gitRequest = new GitRequest {
                               Arguments = "pull " + src,
                               WorkingDirectory = dest
                       };

			return new CommandService (new BashGitCommandOutputStrategy ()).Execute (gitRequest);
//			return null;
		}
コード例 #5
0
ファイル: BashGitStrategy.cs プロジェクト: draptik/RepoSync
		public bool IsGitDir (string path)
		{
			ICommandRequest commandRequest = new GitRequest {
				Arguments = "log", // "ls-files"
				WorkingDirectory = path
			};

			var response = new CommandService (new BashGitCommandOutputStrategy ()).Execute (commandRequest);
			return response.Success;
		}
コード例 #6
0
        public bool IsGitDir(string path)
        {
            ICommandRequest commandRequest = new GitRequest {
                Arguments        = "log",          // "ls-files"
                WorkingDirectory = path
            };

            var response = new CommandService(new BashGitCommandOutputStrategy()).Execute(commandRequest);

            return(response.Success);
        }