C# 클래스 GitSharp.Repository

Represents a git repository
상속: IDisposable
파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
CheckoutBranch ( Branch branch ) : void

Check out the given branch

CheckoutBranch ( string name ) : void

Check out the branch with the given name

Close ( ) : void
Commit ( string message ) : Commit

Commit staged changes and update HEAD. The default git author is used.

Commit ( string message, Author author ) : Commit

Commit staged changes and update HEAD

Dispose ( ) : void
Init ( InitCommand cmd ) : Repository

Initializes a repository in the current location using the provided git command's options.

Init ( string path ) : Repository

Initializes a non-bare repository. Use GitDirectory to specify location.

Init ( string path, bool bare ) : Repository

Initializes a repository. Use GitDirectory to specify the location. Default is the current directory.

IsValid ( string path ) : bool

Checks if the directory given by the path is a valid non-bare git repository. The given path may either point to the working directory or the repository's .git directory.

IsValid ( string path, bool bare ) : bool

Checks if the directory given by the path is a valid git repository.

Repository ( string path ) : System

Initializes the Repository object.

ToString ( ) : string

비공개 메소드들

메소드 설명
DirExists ( string path ) : bool
FileExists ( string path ) : bool
Repository ( GitSharp.Core.Repository repo ) : System

메소드 상세

CheckoutBranch() 공개 메소드

Check out the given branch
public CheckoutBranch ( Branch branch ) : void
branch Branch
리턴 void

CheckoutBranch() 공개 메소드

Check out the branch with the given name
public CheckoutBranch ( string name ) : void
name string
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

Commit() 공개 메소드

Commit staged changes and update HEAD. The default git author is used.
public Commit ( string message ) : Commit
message string The commit message
리턴 Commit

Commit() 공개 메소드

Commit staged changes and update HEAD
public Commit ( string message, Author author ) : Commit
message string The commit message
author Author The author of the content to be committed
리턴 Commit

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Init() 공개 정적인 메소드

Initializes a repository in the current location using the provided git command's options.
public static Init ( InitCommand cmd ) : Repository
cmd InitCommand
리턴 Repository

Init() 공개 정적인 메소드

Initializes a non-bare repository. Use GitDirectory to specify location.
public static Init ( string path ) : Repository
path string
리턴 Repository

Init() 공개 정적인 메소드

Initializes a repository. Use GitDirectory to specify the location. Default is the current directory.
public static Init ( string path, bool bare ) : Repository
path string
bare bool
리턴 Repository

IsValid() 공개 정적인 메소드

Checks if the directory given by the path is a valid non-bare git repository. The given path may either point to the working directory or the repository's .git directory.
public static IsValid ( string path ) : bool
path string
리턴 bool

IsValid() 공개 정적인 메소드

Checks if the directory given by the path is a valid git repository.
public static IsValid ( string path, bool bare ) : bool
path string
bare bool
리턴 bool

Repository() 공개 메소드

Initializes the Repository object.
public Repository ( string path ) : System
path string Path to the local git repository.
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string