C# 클래스 GitCommands.GitCommandHelpers

파일 보기 프로젝트 열기: gitextensions/gitextensions 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetArgumentsRequiresSsh bool
GetBisectCommand string
GetCurrentSubmoduleChanges GitCommands.GitSubmoduleStatus
GetCurrentSubmoduleChanges GitCommands.GitSubmoduleStatus
GitItemStatusFromCopyRename GitCommands.GitItemStatus
GitItemStatusFromStatusCharacter GitCommands.GitItemStatus
IsCommitHash bool
IsDiffFile bool
StartProcess System.Diagnostics.Process
StartProcessAndReadAllBytes System.Diagnostics.Process
StartProcessAndReadAllText System.Diagnostics.Process
StartProcessAndReadLines IEnumerable

공개 메소드들

메소드 설명
AbortCmd ( ) : string
AbortRebaseCmd ( ) : string
AddSubmoduleCmd ( string remotePath, string localPath, string branch, bool force ) : string
BranchCmd ( string branchName, string revision, bool checkout ) : string
CheckoutCmd ( string branchOrRevisionName, LocalChangesAction changesAction ) : string
CherryPickCmd ( string cherry, bool commit, string arguments ) : string
CleanUpCmd ( bool dryrun, bool directories, bool nonignored, bool ignored, string paths = null ) : string
CloneCmd ( string fromPath, string toPath ) : string
CloneCmd ( string fromPath, string toPath, bool central, bool initSubmodules, [ branch, int depth, [ isSingleBranch ) : string

Git Clone.

ContinueBisectCmd ( GitBisectOption bisectOption ) : string
ContinueRebaseCmd ( ) : string
CreateOrphanCmd ( string newBranchName, string startPoint = null ) : string

Create a new orphan branch from startPoint and switch to it.

CreateProcessStartInfo ( string fileName, string arguments, string workingDirectory, Encoding outputEncoding ) : ProcessStartInfo
DeleteBranchCmd ( string branchName, bool force, bool remoteBranch ) : string
DeleteTagCmd ( string tagName ) : string
FindRenamesAndCopiesOpts ( ) : string
FindRenamesOpt ( ) : string
GetAllChangedFilesCmd ( bool excludeIgnoredFiles, UntrackedFilesMode untrackedFiles, IgnoreSubmodulesMode ignoreSubmodules ) : string
GetAllChangedFilesFromString ( GitModule module, string statusString, bool fromDiff = false ) : List
GetAssumeUnchangedFilesFromString ( GitModule module, string lsString ) : List
GetDefaultHomeDir ( ) : string
GetFileExtension ( string fileName ) : string
GetForcePushArgument ( ForcePushOptions force ) : string
GetFullBranchName ( string branch ) : string
GetHomeDir ( ) : string
GetPlinkCompatibleUrl ( string inputUrl ) : string

Transforms the given input Url to make it compatible with Plink, if necessary

GetRemoteName ( string completeName, IEnumerable remotes ) : string
GetSsh ( ) : string

Gets the git SSH command; or "" if the environment variable is NOT set.

GetSubmoduleStatus ( string text, GitModule module, string fileName ) : GitCommands.GitSubmoduleStatus
MergeBranchCmd ( string branch, bool allowFastForward, bool squash, bool noCommit, string strategy ) : string
MergedBranches ( ) : string
PatchCmd ( string patchFile ) : string
PatchCmdIgnoreWhitespace ( string patchFile ) : string
PatchDirCmd ( ) : string
PatchDirCmdIgnoreWhitespace ( ) : string
Plink ( ) : bool
PushMultipleCmd ( string remote, IEnumerable pushActions ) : string

Pushes multiple sets of local branches to remote branches.

PushTagCmd ( string path, string tag, bool all, ForcePushOptions force = ForcePushOptions.DoNotForce ) : string
ReadCmdOutputLines ( string cmd, string arguments, string workDir, string stdInput ) : IEnumerable

Run command, console window is hidden, wait for exit, redirect output

RebaseCmd ( string branch, bool interactive, bool preserveMerges, bool autosquash, bool autostash ) : string
RebaseRangeCmd ( string from, string branch, string onto, bool interactive, bool preserveMerges, bool autosquash, bool autostash ) : string
RemoveCmd ( bool force = true, bool isRecursive = true ) : string

Remove files from the working tree and from the index. git rm

ResetHardCmd ( string commit ) : string
ResetMixedCmd ( string commit ) : string
ResetSoftCmd ( string commit ) : string
ResolvedCmd ( ) : string
RevertCmd ( string commit, bool autoCommit, int parentIndex ) : string
RunCmd ( string cmd, string arguments ) : string

Run command, console window is hidden, wait for exit, redirect output

RunCmdByte ( string cmd, string arguments, string workingdir, byte stdInput, byte &output, byte &error ) : int

Run command, console window is hidden, wait for exit, redirect output

SetEnvironmentVariable ( bool reload = false ) : void
SetSsh ( string path ) : void

Sets the git SSH command path.

SkipCmd ( ) : string
SkipRebaseCmd ( ) : string
StartBisectCmd ( ) : string
StashSaveCmd ( bool untracked, bool keepIndex, string message ) : string
StopBisectCmd ( ) : string
SubmoduleSyncCmd ( string name ) : string
SubmoduleUpdateCmd ( string name ) : string
TerminateTree ( this process ) : void
UnsetSsh ( ) : void

Un-sets the git SSH command path.

UseSsh ( string arguments ) : bool

비공개 메소드들

메소드 설명
GetArgumentsRequiresSsh ( string arguments ) : bool
GetBisectCommand ( GitBisectOption bisectOption ) : string
GetCurrentSubmoduleChanges ( GitModule module, string submodule ) : GitCommands.GitSubmoduleStatus
GetCurrentSubmoduleChanges ( GitModule module, string fileName, string oldFileName, bool staged ) : GitCommands.GitSubmoduleStatus
GitItemStatusFromCopyRename ( bool fromDiff, string nextfile, string fileName, char x, string status ) : GitCommands.GitItemStatus
GitItemStatusFromStatusCharacter ( string fileName, char x ) : GitCommands.GitItemStatus
IsCommitHash ( string value ) : bool

Check if a string represents a commit hash

IsDiffFile ( string path ) : bool
StartProcess ( string fileName, string arguments, string workingDirectory, Encoding outputEncoding ) : Process
StartProcessAndReadAllBytes ( string arguments, string cmd, string workDir, byte &stdOutput, byte &stdError, byte stdInput ) : Process
StartProcessAndReadAllText ( string arguments, string cmd, string workDir, string &stdOutput, string &stdError, string stdInput ) : Process
StartProcessAndReadLines ( string arguments, string cmd, string workDir, string stdInput ) : IEnumerable

메소드 상세

AbortCmd() 공개 정적인 메소드

public static AbortCmd ( ) : string
리턴 string

AbortRebaseCmd() 공개 정적인 메소드

public static AbortRebaseCmd ( ) : string
리턴 string

AddSubmoduleCmd() 공개 정적인 메소드

public static AddSubmoduleCmd ( string remotePath, string localPath, string branch, bool force ) : string
remotePath string
localPath string
branch string
force bool
리턴 string

BranchCmd() 공개 정적인 메소드

public static BranchCmd ( string branchName, string revision, bool checkout ) : string
branchName string
revision string
checkout bool
리턴 string

CheckoutCmd() 공개 정적인 메소드

public static CheckoutCmd ( string branchOrRevisionName, LocalChangesAction changesAction ) : string
branchOrRevisionName string
changesAction LocalChangesAction
리턴 string

CherryPickCmd() 공개 정적인 메소드

public static CherryPickCmd ( string cherry, bool commit, string arguments ) : string
cherry string
commit bool
arguments string
리턴 string

CleanUpCmd() 공개 정적인 메소드

public static CleanUpCmd ( bool dryrun, bool directories, bool nonignored, bool ignored, string paths = null ) : string
dryrun bool
directories bool
nonignored bool
ignored bool
paths string
리턴 string

CloneCmd() 공개 정적인 메소드

public static CloneCmd ( string fromPath, string toPath ) : string
fromPath string
toPath string
리턴 string

CloneCmd() 공개 정적인 메소드

Git Clone.
public static CloneCmd ( string fromPath, string toPath, bool central, bool initSubmodules, [ branch, int depth, [ isSingleBranch ) : string
fromPath string
toPath string
central bool Makes a bare repo.
initSubmodules bool
branch [ /// NULL: do not checkout working copy (--no-checkout). /// "" (empty string): checkout remote HEAD (branch param omitted, default behavior for clone). /// (a non-empty string): checkout the given branch (--branch smth). ///
depth int An int value for --depth param, or NULL to omit the param.
isSingleBranch [ /// True: --single-branch. /// False: --no-single-branch. /// NULL: don't pass any such param to git. ///
리턴 string

ContinueBisectCmd() 공개 정적인 메소드

public static ContinueBisectCmd ( GitBisectOption bisectOption ) : string
bisectOption GitBisectOption
리턴 string

ContinueRebaseCmd() 공개 정적인 메소드

public static ContinueRebaseCmd ( ) : string
리턴 string

CreateOrphanCmd() 공개 정적인 메소드

Create a new orphan branch from startPoint and switch to it.
public static CreateOrphanCmd ( string newBranchName, string startPoint = null ) : string
newBranchName string
startPoint string
리턴 string

CreateProcessStartInfo() 공개 정적인 메소드

public static CreateProcessStartInfo ( string fileName, string arguments, string workingDirectory, Encoding outputEncoding ) : ProcessStartInfo
fileName string
arguments string
workingDirectory string
outputEncoding System.Text.Encoding
리턴 System.Diagnostics.ProcessStartInfo

DeleteBranchCmd() 공개 정적인 메소드

public static DeleteBranchCmd ( string branchName, bool force, bool remoteBranch ) : string
branchName string
force bool
remoteBranch bool
리턴 string

DeleteTagCmd() 공개 정적인 메소드

public static DeleteTagCmd ( string tagName ) : string
tagName string
리턴 string

FindRenamesAndCopiesOpts() 공개 정적인 메소드

public static FindRenamesAndCopiesOpts ( ) : string
리턴 string

FindRenamesOpt() 공개 정적인 메소드

public static FindRenamesOpt ( ) : string
리턴 string

GetAllChangedFilesCmd() 공개 정적인 메소드

public static GetAllChangedFilesCmd ( bool excludeIgnoredFiles, UntrackedFilesMode untrackedFiles, IgnoreSubmodulesMode ignoreSubmodules ) : string
excludeIgnoredFiles bool
untrackedFiles UntrackedFilesMode
ignoreSubmodules IgnoreSubmodulesMode
리턴 string

GetAllChangedFilesFromString() 공개 정적인 메소드

public static GetAllChangedFilesFromString ( GitModule module, string statusString, bool fromDiff = false ) : List
module GitModule
statusString string
fromDiff bool
리턴 List

GetAssumeUnchangedFilesFromString() 공개 정적인 메소드

public static GetAssumeUnchangedFilesFromString ( GitModule module, string lsString ) : List
module GitModule
lsString string
리턴 List

GetDefaultHomeDir() 공개 정적인 메소드

public static GetDefaultHomeDir ( ) : string
리턴 string

GetFileExtension() 공개 정적인 메소드

public static GetFileExtension ( string fileName ) : string
fileName string
리턴 string

GetForcePushArgument() 공개 정적인 메소드

public static GetForcePushArgument ( ForcePushOptions force ) : string
force ForcePushOptions
리턴 string

GetFullBranchName() 공개 정적인 메소드

public static GetFullBranchName ( string branch ) : string
branch string
리턴 string

GetHomeDir() 공개 정적인 메소드

public static GetHomeDir ( ) : string
리턴 string

GetPlinkCompatibleUrl() 공개 정적인 메소드

Transforms the given input Url to make it compatible with Plink, if necessary
public static GetPlinkCompatibleUrl ( string inputUrl ) : string
inputUrl string
리턴 string

GetRemoteName() 공개 정적인 메소드

public static GetRemoteName ( string completeName, IEnumerable remotes ) : string
completeName string
remotes IEnumerable
리턴 string

GetSsh() 공개 정적인 메소드

Gets the git SSH command; or "" if the environment variable is NOT set.
public static GetSsh ( ) : string
리턴 string

GetSubmoduleStatus() 공개 정적인 메소드

public static GetSubmoduleStatus ( string text, GitModule module, string fileName ) : GitCommands.GitSubmoduleStatus
text string
module GitModule
fileName string
리턴 GitCommands.GitSubmoduleStatus

MergeBranchCmd() 공개 정적인 메소드

public static MergeBranchCmd ( string branch, bool allowFastForward, bool squash, bool noCommit, string strategy ) : string
branch string
allowFastForward bool
squash bool
noCommit bool
strategy string
리턴 string

MergedBranches() 공개 정적인 메소드

public static MergedBranches ( ) : string
리턴 string

PatchCmd() 공개 정적인 메소드

public static PatchCmd ( string patchFile ) : string
patchFile string
리턴 string

PatchCmdIgnoreWhitespace() 공개 정적인 메소드

public static PatchCmdIgnoreWhitespace ( string patchFile ) : string
patchFile string
리턴 string

PatchDirCmd() 공개 정적인 메소드

public static PatchDirCmd ( ) : string
리턴 string

PatchDirCmdIgnoreWhitespace() 공개 정적인 메소드

public static PatchDirCmdIgnoreWhitespace ( ) : string
리턴 string

Plink() 공개 정적인 메소드

public static Plink ( ) : bool
리턴 bool

PushMultipleCmd() 공개 정적인 메소드

Pushes multiple sets of local branches to remote branches.
public static PushMultipleCmd ( string remote, IEnumerable pushActions ) : string
remote string
pushActions IEnumerable
리턴 string

PushTagCmd() 공개 정적인 메소드

public static PushTagCmd ( string path, string tag, bool all, ForcePushOptions force = ForcePushOptions.DoNotForce ) : string
path string
tag string
all bool
force ForcePushOptions
리턴 string

ReadCmdOutputLines() 공개 정적인 메소드

Run command, console window is hidden, wait for exit, redirect output
public static ReadCmdOutputLines ( string cmd, string arguments, string workDir, string stdInput ) : IEnumerable
cmd string
arguments string
workDir string
stdInput string
리턴 IEnumerable

RebaseCmd() 공개 정적인 메소드

public static RebaseCmd ( string branch, bool interactive, bool preserveMerges, bool autosquash, bool autostash ) : string
branch string
interactive bool
preserveMerges bool
autosquash bool
autostash bool
리턴 string

RebaseRangeCmd() 공개 정적인 메소드

public static RebaseRangeCmd ( string from, string branch, string onto, bool interactive, bool preserveMerges, bool autosquash, bool autostash ) : string
from string
branch string
onto string
interactive bool
preserveMerges bool
autosquash bool
autostash bool
리턴 string

RemoveCmd() 공개 정적인 메소드

Remove files from the working tree and from the index. git rm
public static RemoveCmd ( bool force = true, bool isRecursive = true ) : string
force bool Override the up-to-date check.
isRecursive bool Allow recursive removal when a leading directory name is given.
리턴 string

ResetHardCmd() 공개 정적인 메소드

public static ResetHardCmd ( string commit ) : string
commit string
리턴 string

ResetMixedCmd() 공개 정적인 메소드

public static ResetMixedCmd ( string commit ) : string
commit string
리턴 string

ResetSoftCmd() 공개 정적인 메소드

public static ResetSoftCmd ( string commit ) : string
commit string
리턴 string

ResolvedCmd() 공개 정적인 메소드

public static ResolvedCmd ( ) : string
리턴 string

RevertCmd() 공개 정적인 메소드

public static RevertCmd ( string commit, bool autoCommit, int parentIndex ) : string
commit string
autoCommit bool
parentIndex int
리턴 string

RunCmd() 공개 정적인 메소드

Run command, console window is hidden, wait for exit, redirect output
public static RunCmd ( string cmd, string arguments ) : string
cmd string
arguments string
리턴 string

RunCmdByte() 공개 정적인 메소드

Run command, console window is hidden, wait for exit, redirect output
public static RunCmdByte ( string cmd, string arguments, string workingdir, byte stdInput, byte &output, byte &error ) : int
cmd string
arguments string
workingdir string
stdInput byte
output byte
error byte
리턴 int

SetEnvironmentVariable() 공개 정적인 메소드

public static SetEnvironmentVariable ( bool reload = false ) : void
reload bool
리턴 void

SetSsh() 공개 정적인 메소드

Sets the git SSH command path.
public static SetSsh ( string path ) : void
path string
리턴 void

SkipCmd() 공개 정적인 메소드

public static SkipCmd ( ) : string
리턴 string

SkipRebaseCmd() 공개 정적인 메소드

public static SkipRebaseCmd ( ) : string
리턴 string

StartBisectCmd() 공개 정적인 메소드

public static StartBisectCmd ( ) : string
리턴 string

StashSaveCmd() 공개 정적인 메소드

public static StashSaveCmd ( bool untracked, bool keepIndex, string message ) : string
untracked bool
keepIndex bool
message string
리턴 string

StopBisectCmd() 공개 정적인 메소드

public static StopBisectCmd ( ) : string
리턴 string

SubmoduleSyncCmd() 공개 정적인 메소드

public static SubmoduleSyncCmd ( string name ) : string
name string
리턴 string

SubmoduleUpdateCmd() 공개 정적인 메소드

public static SubmoduleUpdateCmd ( string name ) : string
name string
리턴 string

TerminateTree() 공개 정적인 메소드

public static TerminateTree ( this process ) : void
process this
리턴 void

UnsetSsh() 공개 정적인 메소드

Un-sets the git SSH command path.
public static UnsetSsh ( ) : void
리턴 void

UseSsh() 공개 정적인 메소드

public static UseSsh ( string arguments ) : bool
arguments string
리턴 bool