Execute() public method

Execute the command.
public Execute ( ) : void
return void
Exemplo n.º 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();
        }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 public static void Init(InitCommand command)
 {
     command.Execute();
 }
Exemplo n.º 5
0
 public static void Init(InitCommand command)
 {
     command.Execute();
 }