Execute() 공개 메소드

Execute the command.
public Execute ( ) : void
리턴 void
예제 #1
0
        public void Init()
        {
            //Initializing a new repository in the current directory (if GID_DIR environment variable is not set)
            Git.Init(".");

            //Initializing a new repository in the specified location
            Git.Init("path/to/repo");

            //Initializing a new repository with options
            var cmd = new InitCommand {
                GitDirectory = "path/to/repo", Quiet = false, Bare = true
            };

            cmd.Execute();
        }
예제 #2
0
 /// <summary>
 /// Initializes a repository in the current location using the provided git command's options.
 /// </summary>
 /// <param name="cmd"></param>
 /// <returns></returns>
 public static Repository Init(InitCommand cmd)
 {
     cmd.Execute();
     return cmd.Repository;
 }
예제 #3
0
 /// <summary>
 /// Initializes a repository in the current location using the provided git command's options.
 /// </summary>
 /// <param name="cmd"></param>
 /// <returns></returns>
 public static Repository Init(InitCommand cmd)
 {
     cmd.Execute();
     return(cmd.Repository);
 }
예제 #4
0
파일: Commands.cs 프로젝트: kkl713/GitSharp
 public static void Init(InitCommand command)
 {
     command.Execute();
 }
예제 #5
0
 public static void Init(InitCommand command)
 {
     command.Execute();
 }