Method |
Description |
|
__construct ( ProcessHelper $processHelper, GitConfigHelper $gitConfigHelper, FilesystemHelper $filesystemHelper ) |
|
|
add ( $path ) |
|
|
addNotes ( $notes, $commitHash, $ref ) |
|
|
branchExists ( string $branch ) : boolean |
|
|
checkout ( $branchName, $createBranch = false ) |
|
|
clearTempBranches ( ) |
|
|
commit ( $message, array $options = [] ) |
|
|
createRemoteMergeOperation ( ) : Gush\Operation\RemoteMergeOperation |
|
|
createRemotePatchOperation ( ) : Gush\Operation\RemotePatchOperation |
|
|
createTempBranch ( $originalBranch ) |
|
|
getActiveBranchName ( string | null $defaultBranch = null ) : string |
|
|
getCommitCountBetweenLocalAndBase ( $org, $branch, $sourceBranch ) |
|
|
getFirstCommitTitle ( string $base, string $sourceBranch ) : string |
|
|
getGitDir ( ) : string |
|
|
getIssueNumber ( ) |
|
|
getLastTagOnBranch ( string $ref = 'HEAD' ) : string |
|
|
getLogBetweenCommits ( string $start, string $end ) : array[] | array |
Returns the log commits between two ranges (either commit or branch-name). |
|
getName ( ) |
|
|
guardWorkingTreeReady ( ) |
|
|
isGitDir ( boolean $requireRoot = true ) : boolean |
Returns whether the current working dir is a Git directory. |
|
isWorkingTreeReady ( ) |
|
|
listFiles ( array $options = [] ) : array |
|
|
mergeBranch ( string $base, string $sourceBranch, string $commitMessage, boolean $fastForward = false ) : null | string |
|
|
mergeBranchWithLog ( string $base, string $sourceBranch, string $commitMessage, string $sourceBranchLabel = null ) : string |
Same as mergeBranch() but appends a commits log to the merge message. |
|
pullRemote ( $remote, $ref = null ) |
|
|
pushToRemote ( $remote, $ref, $setUpstream = false, $force = false ) |
|
|
remoteBranchExists ( string $remote, string $branch ) : boolean |
|
|
remoteUpdate ( $remote = null ) |
|
|
reset ( $commit, $type = 'soft' ) |
|
|
restoreStashedBranch ( ) |
Tries to restore back to the original branch the user was
in (before executing any command). |
|
squashCommits ( string $base, string $branchName, boolean $ignoreMultipleAuthors = false ) |
|
|
stashBranchName ( ) |
Stashes the active branch-name. |
|
switchBranchBase ( $branchName, $currentBase, $newBase, $newBranchName = null ) |
|
|
syncWithRemote ( $remote, $branchName = null ) |
|
|
undefinedToDefault ( string $value, string | null $default = null ) : null | string |
|
|