예제 #1
0
파일: Commands.cs 프로젝트: dasch/GitSharp
 public static void Init(InitCommand command)
 {
     command.Execute();
 }
예제 #2
0
 /// <summary>
 /// Initializes a repository. Use GitDirectory to specify the location. Default is the current directory.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="bare"></param>
 /// <returns></returns>
 public static Repository Init(string path, bool bare)
 {
     var cmd = new InitCommand() { GitDirectory=path, Bare = bare };
     return Init(cmd);
 }
예제 #3
0
 /// <summary>
 /// Initializes a repository in the current location using the provided git command's options.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="bare"></param>
 /// <returns></returns>
 public static Repository Init(InitCommand cmd)
 {
     cmd.Execute();
     return cmd.Repository;
 }
예제 #4
0
 /// <summary>
 /// Initializes a repository. Use GitDirectory to specify the location. Default is the current directory.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="bare"></param>
 /// <returns></returns>
 public static Repository Init(bool bare)
 {
     var cmd = new InitCommand() { Bare = bare };
     cmd.Execute();
     return cmd.InitializedRepository;
 }