C# Класс GitCommands.GitModule

Наследование: IGitModule
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DetachedBranch string
LosslessEncoding Encoding

Private Properties

Свойство Тип Описание
AppendQuotedString string
CreateGitStartInfo System.Diagnostics.ProcessStartInfo
DecodeString string
Equals bool
GetCurrentSubmoduleStatus void
GetFetchArgs string
GetFileContents string
GetPatch PatchApply.Patch
GetSide string
GetSortedRefsCommand string
GetSubmoduleCommitHash IGitItem
GetSubmoduleInfo GitSubmoduleInfo
GetSubmoduleStatus void
GetTree string
GetTreeFromRemoteRefs CmdResult
GetTreeFromRemoteRefsEx CmdResult
IGitModule IGitModule
InitSuperproject void
ProccessDiffNotes string
ReadCmdOutputLines IEnumerable
RunCacheableCmd string
RunCmd string
RunCmdResult CmdResult
StartProccess Process
UpdateIndex void

Открытые методы

Метод Описание
AddRemote ( string name, string path ) : string
ApplyPatch ( string dir, string amCommand ) : string
AssumeUnchangedFiles ( IList files, bool assumeUnchanged, bool &wereErrors ) : string
Blame ( string filename, string from, Encoding encoding ) : GitCommands.GitBlame
Blame ( string filename, string from, string lines, Encoding encoding ) : GitCommands.GitBlame
CheckBranchFormat ( [ branchName ) : bool

Uses check-ref-format to ensure that a branch name is well formed.

CheckSubmoduleStatus ( string commit, string oldCommit ) : SubmoduleStatus
CheckSubmoduleStatus ( string commit, string oldCommit, GitCommands.CommitData data, GitCommands.CommitData olddata, bool loaddata = false ) : SubmoduleStatus
CheckoutConflictedFiles ( ConflictData unmergedData ) : string[]
CheckoutFiles ( IEnumerable fileList, string revision, bool force ) : string
CommitCmd ( bool amend, bool signOff = false, string author = "", bool useExplicitCommitMessage = true, bool noVerify = false ) : string
DeleteTag ( string tagName ) : string
EditNotes ( string revision ) : void
Equals ( object obj ) : bool
ExistsMergeCommit ( string startRev, string endRev ) : bool
FetchCmd ( string remote, string remoteBranch, string localBranch, bool fetchTags = false, bool isUnshallow = false ) : string
FindGitSuperprojectPath ( string &submoduleName, string &submodulePath ) : string
FindGitWorkingDir ( string startDir ) : string
FindTopProjectModule ( ) : GitModule
FormatBranchName ( [ branchName ) : string

Format branch name, check if name is valid for repository.

FormatPatch ( string from, string to, string output ) : string
FormatPatch ( string from, string to, string output, int start ) : string
GetAllBranchesWhichContainGivenCommit ( string sha1, bool getLocal, bool getRemote ) : IEnumerable

Gets branches which contain the given commit. If both local and remote branches are requested, remote branches are prefixed with "remotes/" (as returned by git branch -a)

GetAllChangedFiles ( bool excludeIgnoredFiles = true, bool excludeAssumeUnchangedFiles = true, UntrackedFilesMode untrackedFiles = UntrackedFilesMode.Default ) : IList
GetAllChangedFilesWithSubmodulesStatus ( bool excludeIgnoredFiles = true, bool excludeAssumeUnchangedFiles = true, UntrackedFilesMode untrackedFiles = UntrackedFilesMode.Default ) : IList
GetAllTagsWhichContainGivenCommit ( string sha1 ) : IEnumerable

Gets all tags which contain the given commit.

GetCombinedDiffContent ( GitRevision revisionOfMergeCommit, string filePath, string extraArgs, Encoding encoding ) : string
GetCombinedDiffFileList ( string shaOfMergeCommit ) : IList
GetCommitCount ( string parentHash, string childHash ) : int?
GetCommitCountString ( string from, string to ) : string
GetConflict ( string filename ) : ConflictData
GetConflicts ( string filename = "" ) : List
GetCurrentChanges ( string fileName, string oldFileName, bool staged, string extraDiffArguments, Encoding encoding ) : PatchApply.Patch
GetCurrentCheckout ( ) : string
GetCurrentRemote ( ) : string

Gets the remote of the current branch; or "origin" if no remote is configured.

GetCurrentSubmoduleLocalPath ( ) : string
GetDiffFiles ( string from, string to, bool noCache = false ) : List
GetDiffFilesText ( string from, string to ) : string
GetDiffFilesText ( string from, string to, bool noCache ) : string
GetDiffFilesWithSubmodulesStatus ( string from, string to ) : List
GetEffectivePathSetting ( string setting ) : string
GetEffectiveSetting ( string setting ) : string
GetEffectiveSettings ( ) : ISettingsSource
GetFileBlobHash ( string fileName, string revision ) : string
GetFileContents ( GitCommands.GitItemStatus file ) : string
GetFileStream ( string blob ) : Stream
GetFileText ( string id, Encoding encoding ) : string
GetFullTree ( string id ) : string[]
GetGitDirectory ( ) : string

Gets the ".git" directory path.

GetGitDirectory ( string repositoryPath ) : string
GetHashCode ( ) : int
GetIgnoredFiles ( IEnumerable ignorePatterns ) : IList

Returns list of filenames which would be ignored

GetInteractiveRebasePatchFiles ( ) : IList
GetLocalTrackingBranchName ( string remoteName, string branch ) : string
GetMergeBase ( string a, string b ) : string
GetMergeMessage ( ) : string
GetMergedBranches ( ) : ICollection
GetNextRebasePatch ( ) : string
GetParents ( string commit ) : string[]
GetParentsRevisions ( string commit ) : GitCommands.GitRevision[]
GetPathSetting ( string setting ) : string
GetPreviousCommitMessages ( int count ) : IEnumerable
GetPreviousCommitMessages ( string revision, int count ) : IEnumerable
GetPuttyKeyFileForRemote ( string remote ) : string
GetRebaseDir ( ) : string
GetRebasePatchFiles ( ) : IList
GetRefs ( bool tags = true, bool branches = true ) : IList
GetRemoteBranch ( string branch ) : string

Gets the remote branch of the specified local branch; or "" if none is configured.

GetRemoteBranches ( ) : IEnumerable
GetRemoteServerRefs ( string remote, bool tags, bool branches ) : RemoteActionResult>
GetRemotes ( bool allowEmpty = true ) : string[]
GetRevision ( string commit, bool shortFormat = false ) : GitRevision
GetSelectedBranch ( ) : string

Gets the current branch; or "(no branch)" if HEAD is detached.

GetSelectedBranch ( string repositoryPath ) : string

Gets the current branch; or "(no branch)" if HEAD is detached.

GetSelectedBranchFast ( string repositoryPath ) : string

Dirty but fast. This sometimes fails.

GetSetting ( string setting ) : string
GetSettings ( string setting ) : IEnumerable
GetSingleDiff ( string @from, string to, string fileName, string oldFileName, string extraDiffArguments, Encoding encoding, bool cacheResult ) : PatchApply.Patch
GetSortedRefs ( ) : IList
GetStagedFiles ( ) : IList
GetStagedFilesWithSubmodulesStatus ( ) : IList
GetStashDiffFiles ( string stashName ) : IList
GetStashes ( ) : IList
GetStatusText ( bool untracked ) : string
GetSubmodule ( string localPath ) : GitModule
GetSubmoduleConfigFile ( ) : ConfigFile
GetSubmoduleFullPath ( string localPath ) : string
GetSubmoduleItemsForEachRef ( string filename, bool>.Func showRemoteRef ) : IGitItem>.Dictionary
GetSubmoduleNameByPath ( string localPath ) : string
GetSubmoduleRemotePath ( string name ) : string
GetSubmoduleSummary ( string submodule ) : string
GetSubmodulesInfo ( ) : IEnumerable
GetSubmodulesLocalPaths ( bool recursive = true ) : IList

This is a faster function to get the names of all submodules then the GetSubmodules() function. The command @git submodule is very slow.

GetSuperprojectCurrentCheckout ( ) : string>.KeyValuePair
GetTagMessage ( string tag ) : string

Returns tag's message. If the lightweight tag is passed, corresponding commit message is returned.

GetTagRefs ( GetTagRefsSortOrder option ) : IList

GetTree ( string id, bool full ) : IList
GetTreeFiles ( string treeGuid, bool full ) : IList
GetTreeRefs ( string tree ) : IList
GetUnstagedFiles ( ) : IList
GetUnstagedFilesWithSubmodulesStatus ( ) : IList
GitModule ( string workingdir ) : System
GitStatus ( UntrackedFilesMode untrackedFilesMode, IgnoreSubmodulesMode ignoreSubmodulesMode ) : IList
HandleConflictSelectSide ( string fileName, string side ) : bool
HandleConflictsSaveSide ( string fileName, string saveAsFileName, string side ) : bool
HasSubmodules ( ) : bool
InTheMiddleOfAction ( ) : bool
InTheMiddleOfBisect ( ) : bool
InTheMiddleOfConflictedMerge ( ) : bool
InTheMiddleOfInteractiveRebase ( ) : bool
InTheMiddleOfPatch ( ) : bool
InTheMiddleOfRebase ( ) : bool
Init ( bool bare, bool shared ) : string
IsBareRepository ( ) : bool
IsBareRepository ( string repositoryPath ) : bool
IsDetachedHead ( ) : bool

Indicates whether HEAD is not pointing to a branch.

IsDetachedHead ( string branch ) : bool
IsDirtyDir ( ) : bool

Indicates whether there are any changes to the repository, including any untracked files or directories; excluding submodules.

IsLockedIndex ( ) : bool
IsLockedIndex ( string repositoryPath ) : bool
IsMerge ( string commit ) : bool
IsRunningGitProcess ( ) : bool
IsSubmodule ( string submodulePath ) : bool
IsValidGitWorkingDir ( ) : bool

Indicates whether the WorkingDir contains a git repository.

IsValidGitWorkingDir ( string dir ) : bool

Indicates whether the specified directory contains a git repository.

LastPullActionToFormPullAction ( ) : void
OpenWithDifftool ( string filename, string oldFileName = "", string revision1 = null, string revision2 = null, string extraDiffArguments = "" ) : string
PathIsUrl ( string path ) : bool
PullCmd ( string remote, string remoteBranch, string localBranch, bool rebase, bool fetchTags = false, bool isUnshallow = false ) : string
PushAllCmd ( string remote, ForcePushOptions force, bool track, int recursiveSubmodules ) : string

Creates a 'git push' command using the specified parameters.

PushCmd ( string remote, string fromBranch, string toBranch, ForcePushOptions force, bool track, int recursiveSubmodules ) : string

Creates a 'git push' command using the specified parameters.

ReEncodeCommitMessage ( string s, string toEncodingName ) : string
ReEncodeFileNameFromLossless ( string fileName ) : string
ReEncodeShowString ( string s ) : string

header part of show result is encoded in logoutputencoding (including reencoded commit message) diff part is raw data in file's original encoding s should be encoded in LosslessEncoding

ReEncodeString ( string s, Encoding fromEncoding, Encoding toEncoding ) : string
ReEncodeStringFromLossless ( string s ) : string
ReEncodeStringFromLossless ( string s, Encoding toEncoding ) : string

reencodes string from GitCommandHelpers.LosslessEncoding to toEncoding

ReadGitOutputLines ( string arguments ) : IEnumerable

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

RemoveFiles ( IEnumerable fileList, bool force ) : string
RemoveRemote ( string name ) : string
RenameBranch ( string name, string newName ) : string
RenameRemote ( string name, string newName ) : string
ResetFile ( string file ) : string
ResetHard ( string commit ) : string
ResetHard ( string commit, string file ) : string
ResetMixed ( string commit ) : string
ResetMixed ( string commit, string file ) : string
ResetSoft ( string commit ) : string
ResetSoft ( string commit, string file ) : string
RevParse ( string revisionExpression ) : string
RunBash ( string bashCommand = null ) : Process

Runs a bash or shell command.

RunBatchFile ( string batchFile ) : string

Run batch file, console window is hidden, wait for exit, redirect output

RunExternalCmdDetached ( string cmd, string arguments ) : Process

Run command, console window is hidden

RunExternalCmdDetached ( string fileName, string arguments, string workingDir ) : Process

Run command, console window is hidden

RunExternalCmdDetachedShowConsole ( string cmd, string arguments ) : Process

Run command, console window is visible

RunExternalCmdShowConsole ( string cmd, string arguments ) : void

Run command, console window is visible, wait for exit

RunGitCmd ( string arguments, Encoding encoding = null, byte stdInput = null ) : string

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

RunGitCmdDetached ( string arguments, Encoding encoding = null ) : Process

Run git command, console window is hidden, redirect output

RunGitCmdResult ( string arguments, Encoding encoding = null, byte stdInput = null ) : CmdResult

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

RunGitK ( ) : void
RunGui ( ) : void
SaveBlobAs ( string saveAs, string blob ) : void
SetPathSetting ( string setting, string value ) : void
SetSetting ( string setting, string value ) : void
ShowSha1 ( string sha1 ) : string
StageFile ( string file ) : string
StageFileToRemove ( string file ) : string
StageFiles ( IList files, bool &wereErrors ) : string
StartPageantForRemote ( string remote ) : bool

Tries to start Pageant for the specified remote repo (using the remote's PuTTY key file).

StartPageantWithKey ( string sshKeyFile ) : void
StreamCopy ( Stream input, Stream output ) : void
Tag ( string tagName, string revision, bool annotation, bool force ) : string
ToString ( ) : string
UnquoteFileName ( string fileName ) : string
UnsetSetting ( string setting ) : void
UnstageFile ( string file ) : string
UnstageFileToRemove ( string file ) : string
UnstageFiles ( IList files ) : string

Приватные методы

Метод Описание
AppendQuotedString ( string str1, string str2 ) : string
CreateGitStartInfo ( string arguments ) : ProcessStartInfo
DecodeString ( string str ) : string
Equals ( GitModule other ) : bool
GetCurrentSubmoduleStatus ( IList status ) : void
GetFetchArgs ( string remote, string remoteBranch, string localBranch, bool fetchTags, bool isUnshallow ) : string
GetFileContents ( string path ) : string
GetPatch ( PatchApply patchManager, string fileName, string oldFileName ) : PatchApply.Patch
GetSide ( string side ) : string
GetSortedRefsCommand ( ) : string
GetSubmoduleCommitHash ( string filename, string refName ) : IGitItem
GetSubmoduleInfo ( string submodule ) : GitSubmoduleInfo
GetSubmoduleStatus ( IList status, string from, string to ) : void
GetTree ( bool tags, bool branches ) : string
GetTreeFromRemoteRefs ( string remote, bool tags, bool branches ) : CmdResult
GetTreeFromRemoteRefsEx ( string remote, bool tags, bool branches ) : CmdResult
IGitModule ( string submoduleName ) : IGitModule
InitSuperproject ( ) : void
ProccessDiffNotes ( int startIndex, string lines ) : string
ReadCmdOutputLines ( string cmd, string arguments, string stdInput ) : IEnumerable
RunCacheableCmd ( string cmd, string arguments = "", Encoding encoding = null ) : string
RunCmd ( string cmd, string arguments, Encoding encoding = null, byte stdInput = null ) : string
RunCmdResult ( string cmd, string arguments, Encoding encoding = null, byte stdInput = null ) : CmdResult
StartProccess ( string fileName, string arguments, string workingDir, bool showConsole ) : Process
UpdateIndex ( Lazy processReader, string filename ) : void

Описание методов

AddRemote() публичный Метод

public AddRemote ( string name, string path ) : string
name string
path string
Результат string

ApplyPatch() публичный Метод

public ApplyPatch ( string dir, string amCommand ) : string
dir string
amCommand string
Результат string

AssumeUnchangedFiles() публичный Метод

public AssumeUnchangedFiles ( IList files, bool assumeUnchanged, bool &wereErrors ) : string
files IList
assumeUnchanged bool
wereErrors bool
Результат string

Blame() публичный Метод

public Blame ( string filename, string from, Encoding encoding ) : GitCommands.GitBlame
filename string
from string
encoding System.Text.Encoding
Результат GitCommands.GitBlame

Blame() публичный Метод

public Blame ( string filename, string from, string lines, Encoding encoding ) : GitCommands.GitBlame
filename string
from string
lines string
encoding System.Text.Encoding
Результат GitCommands.GitBlame

CheckBranchFormat() публичный Метод

Uses check-ref-format to ensure that a branch name is well formed.
public CheckBranchFormat ( [ branchName ) : bool
branchName [ Branch name to test.
Результат bool

CheckSubmoduleStatus() публичный Метод

public CheckSubmoduleStatus ( string commit, string oldCommit ) : SubmoduleStatus
commit string
oldCommit string
Результат SubmoduleStatus

CheckSubmoduleStatus() публичный Метод

public CheckSubmoduleStatus ( string commit, string oldCommit, GitCommands.CommitData data, GitCommands.CommitData olddata, bool loaddata = false ) : SubmoduleStatus
commit string
oldCommit string
data GitCommands.CommitData
olddata GitCommands.CommitData
loaddata bool
Результат SubmoduleStatus

CheckoutConflictedFiles() публичный Метод

public CheckoutConflictedFiles ( ConflictData unmergedData ) : string[]
unmergedData ConflictData
Результат string[]

CheckoutFiles() публичный Метод

public CheckoutFiles ( IEnumerable fileList, string revision, bool force ) : string
fileList IEnumerable
revision string
force bool
Результат string

CommitCmd() публичный Метод

public CommitCmd ( bool amend, bool signOff = false, string author = "", bool useExplicitCommitMessage = true, bool noVerify = false ) : string
amend bool
signOff bool
author string
useExplicitCommitMessage bool
noVerify bool
Результат string

DeleteTag() публичный Метод

public DeleteTag ( string tagName ) : string
tagName string
Результат string

EditNotes() публичный Метод

public EditNotes ( string revision ) : void
revision string
Результат void

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

ExistsMergeCommit() публичный Метод

public ExistsMergeCommit ( string startRev, string endRev ) : bool
startRev string
endRev string
Результат bool

FetchCmd() публичный Метод

public FetchCmd ( string remote, string remoteBranch, string localBranch, bool fetchTags = false, bool isUnshallow = false ) : string
remote string
remoteBranch string
localBranch string
fetchTags bool
isUnshallow bool
Результат string

FindGitSuperprojectPath() публичный Метод

public FindGitSuperprojectPath ( string &submoduleName, string &submodulePath ) : string
submoduleName string
submodulePath string
Результат string

FindGitWorkingDir() публичный статический Метод

public static FindGitWorkingDir ( string startDir ) : string
startDir string
Результат string

FindTopProjectModule() публичный Метод

public FindTopProjectModule ( ) : GitModule
Результат GitModule

FormatBranchName() публичный Метод

Format branch name, check if name is valid for repository.
public FormatBranchName ( [ branchName ) : string
branchName [ Branch name to test.
Результат string

FormatPatch() публичный Метод

public FormatPatch ( string from, string to, string output ) : string
from string
to string
output string
Результат string

FormatPatch() публичный Метод

public FormatPatch ( string from, string to, string output, int start ) : string
from string
to string
output string
start int
Результат string

GetAllBranchesWhichContainGivenCommit() публичный Метод

Gets branches which contain the given commit. If both local and remote branches are requested, remote branches are prefixed with "remotes/" (as returned by git branch -a)
public GetAllBranchesWhichContainGivenCommit ( string sha1, bool getLocal, bool getRemote ) : IEnumerable
sha1 string The sha1.
getLocal bool Pass true to include local branches
getRemote bool Pass true to include remote branches
Результат IEnumerable

GetAllChangedFiles() публичный Метод

public GetAllChangedFiles ( bool excludeIgnoredFiles = true, bool excludeAssumeUnchangedFiles = true, UntrackedFilesMode untrackedFiles = UntrackedFilesMode.Default ) : IList
excludeIgnoredFiles bool
excludeAssumeUnchangedFiles bool
untrackedFiles UntrackedFilesMode
Результат IList

GetAllChangedFilesWithSubmodulesStatus() публичный Метод

public GetAllChangedFilesWithSubmodulesStatus ( bool excludeIgnoredFiles = true, bool excludeAssumeUnchangedFiles = true, UntrackedFilesMode untrackedFiles = UntrackedFilesMode.Default ) : IList
excludeIgnoredFiles bool
excludeAssumeUnchangedFiles bool
untrackedFiles UntrackedFilesMode
Результат IList

GetAllTagsWhichContainGivenCommit() публичный Метод

Gets all tags which contain the given commit.
public GetAllTagsWhichContainGivenCommit ( string sha1 ) : IEnumerable
sha1 string The sha1.
Результат IEnumerable

GetCombinedDiffContent() публичный Метод

public GetCombinedDiffContent ( GitRevision revisionOfMergeCommit, string filePath, string extraArgs, Encoding encoding ) : string
revisionOfMergeCommit GitRevision
filePath string
extraArgs string
encoding System.Text.Encoding
Результат string

GetCombinedDiffFileList() публичный Метод

public GetCombinedDiffFileList ( string shaOfMergeCommit ) : IList
shaOfMergeCommit string
Результат IList

GetCommitCount() публичный Метод

public GetCommitCount ( string parentHash, string childHash ) : int?
parentHash string
childHash string
Результат int?

GetCommitCountString() публичный Метод

public GetCommitCountString ( string from, string to ) : string
from string
to string
Результат string

GetConflict() публичный Метод

public GetConflict ( string filename ) : ConflictData
filename string
Результат ConflictData

GetConflicts() публичный Метод

public GetConflicts ( string filename = "" ) : List
filename string
Результат List

GetCurrentChanges() публичный Метод

public GetCurrentChanges ( string fileName, string oldFileName, bool staged, string extraDiffArguments, Encoding encoding ) : PatchApply.Patch
fileName string
oldFileName string
staged bool
extraDiffArguments string
encoding System.Text.Encoding
Результат PatchApply.Patch

GetCurrentCheckout() публичный Метод

public GetCurrentCheckout ( ) : string
Результат string

GetCurrentRemote() публичный Метод

Gets the remote of the current branch; or "origin" if no remote is configured.
public GetCurrentRemote ( ) : string
Результат string

GetCurrentSubmoduleLocalPath() публичный Метод

public GetCurrentSubmoduleLocalPath ( ) : string
Результат string

GetDiffFiles() публичный Метод

public GetDiffFiles ( string from, string to, bool noCache = false ) : List
from string
to string
noCache bool
Результат List

GetDiffFilesText() публичный Метод

public GetDiffFilesText ( string from, string to ) : string
from string
to string
Результат string

GetDiffFilesText() публичный Метод

public GetDiffFilesText ( string from, string to, bool noCache ) : string
from string
to string
noCache bool
Результат string

GetDiffFilesWithSubmodulesStatus() публичный Метод

public GetDiffFilesWithSubmodulesStatus ( string from, string to ) : List
from string
to string
Результат List

GetEffectivePathSetting() публичный Метод

public GetEffectivePathSetting ( string setting ) : string
setting string
Результат string

GetEffectiveSetting() публичный Метод

public GetEffectiveSetting ( string setting ) : string
setting string
Результат string

GetEffectiveSettings() публичный Метод

public GetEffectiveSettings ( ) : ISettingsSource
Результат ISettingsSource

GetFileBlobHash() публичный Метод

public GetFileBlobHash ( string fileName, string revision ) : string
fileName string
revision string
Результат string

GetFileContents() публичный Метод

public GetFileContents ( GitCommands.GitItemStatus file ) : string
file GitCommands.GitItemStatus
Результат string

GetFileStream() публичный Метод

public GetFileStream ( string blob ) : Stream
blob string
Результат Stream

GetFileText() публичный Метод

public GetFileText ( string id, Encoding encoding ) : string
id string
encoding System.Text.Encoding
Результат string

GetFullTree() публичный Метод

public GetFullTree ( string id ) : string[]
id string
Результат string[]

GetGitDirectory() публичный Метод

Gets the ".git" directory path.
public GetGitDirectory ( ) : string
Результат string

GetGitDirectory() публичный статический Метод

public static GetGitDirectory ( string repositoryPath ) : string
repositoryPath string
Результат string

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetIgnoredFiles() публичный Метод

Returns list of filenames which would be ignored
public GetIgnoredFiles ( IEnumerable ignorePatterns ) : IList
ignorePatterns IEnumerable Patterns to ignore (.gitignore syntax)
Результат IList

GetInteractiveRebasePatchFiles() публичный Метод

public GetInteractiveRebasePatchFiles ( ) : IList
Результат IList

GetLocalTrackingBranchName() публичный Метод

public GetLocalTrackingBranchName ( string remoteName, string branch ) : string
remoteName string
branch string
Результат string

GetMergeBase() публичный Метод

public GetMergeBase ( string a, string b ) : string
a string
b string
Результат string

GetMergeMessage() публичный Метод

public GetMergeMessage ( ) : string
Результат string

GetMergedBranches() публичный Метод

public GetMergedBranches ( ) : ICollection
Результат ICollection

GetNextRebasePatch() публичный Метод

public GetNextRebasePatch ( ) : string
Результат string

GetParents() публичный Метод

public GetParents ( string commit ) : string[]
commit string
Результат string[]

GetParentsRevisions() публичный Метод

public GetParentsRevisions ( string commit ) : GitCommands.GitRevision[]
commit string
Результат GitCommands.GitRevision[]

GetPathSetting() публичный Метод

public GetPathSetting ( string setting ) : string
setting string
Результат string

GetPreviousCommitMessages() публичный Метод

public GetPreviousCommitMessages ( int count ) : IEnumerable
count int
Результат IEnumerable

GetPreviousCommitMessages() публичный Метод

public GetPreviousCommitMessages ( string revision, int count ) : IEnumerable
revision string
count int
Результат IEnumerable

GetPuttyKeyFileForRemote() публичный Метод

public GetPuttyKeyFileForRemote ( string remote ) : string
remote string
Результат string

GetRebaseDir() публичный Метод

public GetRebaseDir ( ) : string
Результат string

GetRebasePatchFiles() публичный Метод

public GetRebasePatchFiles ( ) : IList
Результат IList

GetRefs() публичный Метод

public GetRefs ( bool tags = true, bool branches = true ) : IList
tags bool
branches bool
Результат IList

GetRemoteBranch() публичный Метод

Gets the remote branch of the specified local branch; or "" if none is configured.
public GetRemoteBranch ( string branch ) : string
branch string
Результат string

GetRemoteBranches() публичный Метод

public GetRemoteBranches ( ) : IEnumerable
Результат IEnumerable

GetRemoteServerRefs() публичный Метод

public GetRemoteServerRefs ( string remote, bool tags, bool branches ) : RemoteActionResult>
remote string
tags bool
branches bool
Результат RemoteActionResult>

GetRemotes() публичный Метод

public GetRemotes ( bool allowEmpty = true ) : string[]
allowEmpty bool
Результат string[]

GetRevision() публичный Метод

public GetRevision ( string commit, bool shortFormat = false ) : GitRevision
commit string
shortFormat bool
Результат GitRevision

GetSelectedBranch() публичный Метод

Gets the current branch; or "(no branch)" if HEAD is detached.
public GetSelectedBranch ( ) : string
Результат string

GetSelectedBranch() публичный Метод

Gets the current branch; or "(no branch)" if HEAD is detached.
public GetSelectedBranch ( string repositoryPath ) : string
repositoryPath string
Результат string

GetSelectedBranchFast() публичный статический Метод

Dirty but fast. This sometimes fails.
public static GetSelectedBranchFast ( string repositoryPath ) : string
repositoryPath string
Результат string

GetSetting() публичный Метод

public GetSetting ( string setting ) : string
setting string
Результат string

GetSettings() публичный Метод

public GetSettings ( string setting ) : IEnumerable
setting string
Результат IEnumerable

GetSingleDiff() публичный Метод

public GetSingleDiff ( string @from, string to, string fileName, string oldFileName, string extraDiffArguments, Encoding encoding, bool cacheResult ) : PatchApply.Patch
@from string
to string
fileName string
oldFileName string
extraDiffArguments string
encoding System.Text.Encoding
cacheResult bool
Результат PatchApply.Patch

GetSortedRefs() публичный Метод

public GetSortedRefs ( ) : IList
Результат IList

GetStagedFiles() публичный Метод

public GetStagedFiles ( ) : IList
Результат IList

GetStagedFilesWithSubmodulesStatus() публичный Метод

public GetStagedFilesWithSubmodulesStatus ( ) : IList
Результат IList

GetStashDiffFiles() публичный Метод

public GetStashDiffFiles ( string stashName ) : IList
stashName string
Результат IList

GetStashes() публичный Метод

public GetStashes ( ) : IList
Результат IList

GetStatusText() публичный Метод

public GetStatusText ( bool untracked ) : string
untracked bool
Результат string

GetSubmodule() публичный Метод

public GetSubmodule ( string localPath ) : GitModule
localPath string
Результат GitModule

GetSubmoduleConfigFile() публичный Метод

public GetSubmoduleConfigFile ( ) : ConfigFile
Результат ConfigFile

GetSubmoduleFullPath() публичный Метод

public GetSubmoduleFullPath ( string localPath ) : string
localPath string
Результат string

GetSubmoduleItemsForEachRef() публичный Метод

public GetSubmoduleItemsForEachRef ( string filename, bool>.Func showRemoteRef ) : IGitItem>.Dictionary
filename string
showRemoteRef bool>.Func
Результат IGitItem>.Dictionary

GetSubmoduleNameByPath() публичный Метод

public GetSubmoduleNameByPath ( string localPath ) : string
localPath string
Результат string

GetSubmoduleRemotePath() публичный Метод

public GetSubmoduleRemotePath ( string name ) : string
name string
Результат string

GetSubmoduleSummary() публичный Метод

public GetSubmoduleSummary ( string submodule ) : string
submodule string
Результат string

GetSubmodulesInfo() публичный Метод

public GetSubmodulesInfo ( ) : IEnumerable
Результат IEnumerable

GetSubmodulesLocalPaths() публичный Метод

This is a faster function to get the names of all submodules then the GetSubmodules() function. The command @git submodule is very slow.
public GetSubmodulesLocalPaths ( bool recursive = true ) : IList
recursive bool
Результат IList

GetSuperprojectCurrentCheckout() публичный Метод

public GetSuperprojectCurrentCheckout ( ) : string>.KeyValuePair
Результат string>.KeyValuePair

GetTagMessage() публичный Метод

Returns tag's message. If the lightweight tag is passed, corresponding commit message is returned.
public GetTagMessage ( string tag ) : string
tag string
Результат string

GetTagRefs() публичный Метод

public GetTagRefs ( GetTagRefsSortOrder option ) : IList
option GetTagRefsSortOrder Ordery by date is slower.
Результат IList

GetTree() публичный Метод

public GetTree ( string id, bool full ) : IList
id string
full bool
Результат IList

GetTreeFiles() публичный Метод

public GetTreeFiles ( string treeGuid, bool full ) : IList
treeGuid string
full bool
Результат IList

GetTreeRefs() публичный Метод

public GetTreeRefs ( string tree ) : IList
tree string
Результат IList

GetUnstagedFiles() публичный Метод

public GetUnstagedFiles ( ) : IList
Результат IList

GetUnstagedFilesWithSubmodulesStatus() публичный Метод

public GetUnstagedFilesWithSubmodulesStatus ( ) : IList
Результат IList

GitModule() публичный Метод

public GitModule ( string workingdir ) : System
workingdir string
Результат System

GitStatus() публичный Метод

public GitStatus ( UntrackedFilesMode untrackedFilesMode, IgnoreSubmodulesMode ignoreSubmodulesMode ) : IList
untrackedFilesMode UntrackedFilesMode
ignoreSubmodulesMode IgnoreSubmodulesMode
Результат IList

HandleConflictSelectSide() публичный Метод

public HandleConflictSelectSide ( string fileName, string side ) : bool
fileName string
side string
Результат bool

HandleConflictsSaveSide() публичный Метод

public HandleConflictsSaveSide ( string fileName, string saveAsFileName, string side ) : bool
fileName string
saveAsFileName string
side string
Результат bool

HasSubmodules() публичный Метод

public HasSubmodules ( ) : bool
Результат bool

InTheMiddleOfAction() публичный Метод

public InTheMiddleOfAction ( ) : bool
Результат bool

InTheMiddleOfBisect() публичный Метод

public InTheMiddleOfBisect ( ) : bool
Результат bool

InTheMiddleOfConflictedMerge() публичный Метод

public InTheMiddleOfConflictedMerge ( ) : bool
Результат bool

InTheMiddleOfInteractiveRebase() публичный Метод

public InTheMiddleOfInteractiveRebase ( ) : bool
Результат bool

InTheMiddleOfPatch() публичный Метод

public InTheMiddleOfPatch ( ) : bool
Результат bool

InTheMiddleOfRebase() публичный Метод

public InTheMiddleOfRebase ( ) : bool
Результат bool

Init() публичный Метод

public Init ( bool bare, bool shared ) : string
bare bool
shared bool
Результат string

IsBareRepository() публичный Метод

public IsBareRepository ( ) : bool
Результат bool

IsBareRepository() публичный статический Метод

public static IsBareRepository ( string repositoryPath ) : bool
repositoryPath string
Результат bool

IsDetachedHead() публичный Метод

Indicates whether HEAD is not pointing to a branch.
public IsDetachedHead ( ) : bool
Результат bool

IsDetachedHead() публичный статический Метод

public static IsDetachedHead ( string branch ) : bool
branch string
Результат bool

IsDirtyDir() публичный Метод

Indicates whether there are any changes to the repository, including any untracked files or directories; excluding submodules.
public IsDirtyDir ( ) : bool
Результат bool

IsLockedIndex() публичный Метод

public IsLockedIndex ( ) : bool
Результат bool

IsLockedIndex() публичный статический Метод

public static IsLockedIndex ( string repositoryPath ) : bool
repositoryPath string
Результат bool

IsMerge() публичный Метод

public IsMerge ( string commit ) : bool
commit string
Результат bool

IsRunningGitProcess() публичный Метод

public IsRunningGitProcess ( ) : bool
Результат bool

IsSubmodule() публичный Метод

public IsSubmodule ( string submodulePath ) : bool
submodulePath string
Результат bool

IsValidGitWorkingDir() публичный Метод

Indicates whether the WorkingDir contains a git repository.
public IsValidGitWorkingDir ( ) : bool
Результат bool

IsValidGitWorkingDir() публичный статический Метод

Indicates whether the specified directory contains a git repository.
public static IsValidGitWorkingDir ( string dir ) : bool
dir string
Результат bool

LastPullActionToFormPullAction() публичный Метод

public LastPullActionToFormPullAction ( ) : void
Результат void

OpenWithDifftool() публичный Метод

public OpenWithDifftool ( string filename, string oldFileName = "", string revision1 = null, string revision2 = null, string extraDiffArguments = "" ) : string
filename string
oldFileName string
revision1 string
revision2 string
extraDiffArguments string
Результат string

PathIsUrl() публичный статический Метод

public static PathIsUrl ( string path ) : bool
path string
Результат bool

PullCmd() публичный Метод

public PullCmd ( string remote, string remoteBranch, string localBranch, bool rebase, bool fetchTags = false, bool isUnshallow = false ) : string
remote string
remoteBranch string
localBranch string
rebase bool
fetchTags bool
isUnshallow bool
Результат string

PushAllCmd() публичный Метод

Creates a 'git push' command using the specified parameters.
public PushAllCmd ( string remote, ForcePushOptions force, bool track, int recursiveSubmodules ) : string
remote string Remote repository that is the destination of the push operation.
force ForcePushOptions If a remote ref is not an ancestor of the local ref, overwrite it. /// This can cause the remote repository to lose commits; use it with care.
track bool For every branch that is up to date or successfully pushed, add upstream (tracking) reference.
recursiveSubmodules int If '1', check whether all submodule commits used by the revisions to be pushed are available on a remote tracking branch; otherwise, the push will be aborted.
Результат string

PushCmd() публичный Метод

Creates a 'git push' command using the specified parameters.
public PushCmd ( string remote, string fromBranch, string toBranch, ForcePushOptions force, bool track, int recursiveSubmodules ) : string
remote string Remote repository that is the destination of the push operation.
fromBranch string Name of the branch to push.
toBranch string Name of the ref on the remote side to update with the push.
force ForcePushOptions If a remote ref is not an ancestor of the local ref, overwrite it. /// This can cause the remote repository to lose commits; use it with care.
track bool For every branch that is up to date or successfully pushed, add upstream (tracking) reference.
recursiveSubmodules int If '1', check whether all submodule commits used by the revisions to be pushed are available on a remote tracking branch; otherwise, the push will be aborted.
Результат string

ReEncodeCommitMessage() публичный Метод

public ReEncodeCommitMessage ( string s, string toEncodingName ) : string
s string
toEncodingName string
Результат string

ReEncodeFileNameFromLossless() публичный статический Метод

public static ReEncodeFileNameFromLossless ( string fileName ) : string
fileName string
Результат string

ReEncodeShowString() публичный Метод

header part of show result is encoded in logoutputencoding (including reencoded commit message) diff part is raw data in file's original encoding s should be encoded in LosslessEncoding
public ReEncodeShowString ( string s ) : string
s string
Результат string

ReEncodeString() публичный статический Метод

public static ReEncodeString ( string s, Encoding fromEncoding, Encoding toEncoding ) : string
s string
fromEncoding Encoding
toEncoding Encoding
Результат string

ReEncodeStringFromLossless() публичный Метод

public ReEncodeStringFromLossless ( string s ) : string
s string
Результат string

ReEncodeStringFromLossless() публичный статический Метод

reencodes string from GitCommandHelpers.LosslessEncoding to toEncoding
public static ReEncodeStringFromLossless ( string s, Encoding toEncoding ) : string
s string
toEncoding Encoding
Результат string

ReadGitOutputLines() публичный Метод

Run git command, console window is hidden, wait for exit, redirect output
public ReadGitOutputLines ( string arguments ) : IEnumerable
arguments string
Результат IEnumerable

RemoveFiles() публичный Метод

public RemoveFiles ( IEnumerable fileList, bool force ) : string
fileList IEnumerable
force bool
Результат string

RemoveRemote() публичный Метод

public RemoveRemote ( string name ) : string
name string
Результат string

RenameBranch() публичный Метод

public RenameBranch ( string name, string newName ) : string
name string
newName string
Результат string

RenameRemote() публичный Метод

public RenameRemote ( string name, string newName ) : string
name string
newName string
Результат string

ResetFile() публичный Метод

public ResetFile ( string file ) : string
file string
Результат string

ResetHard() публичный Метод

public ResetHard ( string commit ) : string
commit string
Результат string

ResetHard() публичный Метод

public ResetHard ( string commit, string file ) : string
commit string
file string
Результат string

ResetMixed() публичный Метод

public ResetMixed ( string commit ) : string
commit string
Результат string

ResetMixed() публичный Метод

public ResetMixed ( string commit, string file ) : string
commit string
file string
Результат string

ResetSoft() публичный Метод

public ResetSoft ( string commit ) : string
commit string
Результат string

ResetSoft() публичный Метод

public ResetSoft ( string commit, string file ) : string
commit string
file string
Результат string

RevParse() публичный Метод

public RevParse ( string revisionExpression ) : string
revisionExpression string
Результат string

RunBash() публичный Метод

Runs a bash or shell command.
public RunBash ( string bashCommand = null ) : Process
bashCommand string
Результат Process

RunBatchFile() публичный Метод

Run batch file, console window is hidden, wait for exit, redirect output
public RunBatchFile ( string batchFile ) : string
batchFile string
Результат string

RunExternalCmdDetached() публичный Метод

Run command, console window is hidden
public RunExternalCmdDetached ( string cmd, string arguments ) : Process
cmd string
arguments string
Результат Process

RunExternalCmdDetached() публичный статический Метод

Run command, console window is hidden
public static RunExternalCmdDetached ( string fileName, string arguments, string workingDir ) : Process
fileName string
arguments string
workingDir string
Результат Process

RunExternalCmdDetachedShowConsole() публичный Метод

Run command, console window is visible
public RunExternalCmdDetachedShowConsole ( string cmd, string arguments ) : Process
cmd string
arguments string
Результат Process

RunExternalCmdShowConsole() публичный Метод

Run command, console window is visible, wait for exit
public RunExternalCmdShowConsole ( string cmd, string arguments ) : void
cmd string
arguments string
Результат void

RunGitCmd() публичный Метод

Run git command, console window is hidden, wait for exit, redirect output
public RunGitCmd ( string arguments, Encoding encoding = null, byte stdInput = null ) : string
arguments string
encoding Encoding
stdInput byte
Результат string

RunGitCmdDetached() публичный Метод

Run git command, console window is hidden, redirect output
public RunGitCmdDetached ( string arguments, Encoding encoding = null ) : Process
arguments string
encoding Encoding
Результат Process

RunGitCmdResult() публичный Метод

Run git command, console window is hidden, wait for exit, redirect output
public RunGitCmdResult ( string arguments, Encoding encoding = null, byte stdInput = null ) : CmdResult
arguments string
encoding Encoding
stdInput byte
Результат CmdResult

RunGitK() публичный Метод

public RunGitK ( ) : void
Результат void

RunGui() публичный Метод

public RunGui ( ) : void
Результат void

SaveBlobAs() публичный Метод

public SaveBlobAs ( string saveAs, string blob ) : void
saveAs string
blob string
Результат void

SetPathSetting() публичный Метод

public SetPathSetting ( string setting, string value ) : void
setting string
value string
Результат void

SetSetting() публичный Метод

public SetSetting ( string setting, string value ) : void
setting string
value string
Результат void

ShowSha1() публичный Метод

public ShowSha1 ( string sha1 ) : string
sha1 string
Результат string

StageFile() публичный Метод

public StageFile ( string file ) : string
file string
Результат string

StageFileToRemove() публичный Метод

public StageFileToRemove ( string file ) : string
file string
Результат string

StageFiles() публичный Метод

public StageFiles ( IList files, bool &wereErrors ) : string
files IList
wereErrors bool
Результат string

StartPageantForRemote() публичный Метод

Tries to start Pageant for the specified remote repo (using the remote's PuTTY key file).
public StartPageantForRemote ( string remote ) : bool
remote string
Результат bool

StartPageantWithKey() публичный статический Метод

public static StartPageantWithKey ( string sshKeyFile ) : void
sshKeyFile string
Результат void

StreamCopy() публичный статический Метод

public static StreamCopy ( Stream input, Stream output ) : void
input Stream
output Stream
Результат void

Tag() публичный Метод

public Tag ( string tagName, string revision, bool annotation, bool force ) : string
tagName string
revision string
annotation bool
force bool
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string

UnquoteFileName() публичный статический Метод

public static UnquoteFileName ( string fileName ) : string
fileName string
Результат string

UnsetSetting() публичный Метод

public UnsetSetting ( string setting ) : void
setting string
Результат void

UnstageFile() публичный Метод

public UnstageFile ( string file ) : string
file string
Результат string

UnstageFileToRemove() публичный Метод

public UnstageFileToRemove ( string file ) : string
file string
Результат string

UnstageFiles() публичный Метод

public UnstageFiles ( IList files ) : string
files IList
Результат string

Описание свойств

DetachedBranch публичное статическое свойство

"(no branch)"
public static string DetachedBranch
Результат string

LosslessEncoding публичное статическое свойство

public static Encoding LosslessEncoding
Результат Encoding