C# Class GitSharp.AbstractCommand

Abstract base class of all git commands. It provides basic infrastructure
Inheritance: IGitCommand
ファイルを表示 Open project: stschake/GitSharp

Protected Properties

Property Type Description
_gitDirectory string

Public Methods

Method Description
Execute ( ) : void

Execute the git command.

FindGitDirectory ( string rootDirectory, bool recursive, bool isBare ) : string

Performs upward recursive lookup to return git directory. Honors the environment variable GIT_DIR.

Protected Methods

Method Description
AbbreviateRef ( String dst, bool abbreviateRemote ) : string

Abbreviates a ref-name, used in internal output

Method Details

AbbreviateRef() protected method

Abbreviates a ref-name, used in internal output
protected AbbreviateRef ( String dst, bool abbreviateRemote ) : string
dst String long ref
abbreviateRemote bool abbreviate as remote
return string

Execute() public abstract method

Execute the git command.
public abstract Execute ( ) : void
return void

FindGitDirectory() public static method

Performs upward recursive lookup to return git directory. Honors the environment variable GIT_DIR.
public static FindGitDirectory ( string rootDirectory, bool recursive, bool isBare ) : string
rootDirectory string
recursive bool
isBare bool
return string

Property Details

_gitDirectory protected_oe property

protected string _gitDirectory
return string