Class eclipse.GitService
Provides operations on Git.
Defined in: </shared/eclipse/e4/orion/I201106200200/plugins/org.eclipse.orion.client.git/web/orion/git/gitClient.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
addBranch(gitBranchParentURI, branchName, startPoint)
|
|
addCloneConfigurationProperty(location, newKey, newValue, onLoad, onError)
|
|
addRemote(gitRemoteParentURI, remoteName, remoteURI)
|
|
checkoutBranch(gitCloneURI, branchName)
|
|
checkoutPath(gitCloneURI, paths, onLoad, onError)
|
|
cloneGitRepository(gitName, gitRepoUrl, targetPath, repoLocation, gitSshUsername, gitSshPassword, gitSshKnownHost, privateKey, passphrase)
|
|
commitAll(location, message, body, onLoad, onError)
|
|
deleteCloneConfigurationProperty(location, onLoad, onError)
|
|
doAddTag(gitCommitURI, tagName, onLoad)
|
|
doFetch(gitRemoteBranchURI, onLoad, gitSshUsername, gitSshPassword, gitSshKnownHost, gitPrivateKey, gitPassphrase)
|
|
doGitLog(gitLogURI, onLoad)
|
|
doMerge(gitHeadURI, commitName)
|
|
doPush(gitBranchURI, srcRef, onLoad, gitSshUsername, gitSshPassword, gitSshKnownHost, gitPrivateKey, gitPassphrase)
|
|
editCloneConfigurationProperty(location, newValue, onLoad, onError)
|
|
getDefaultRemoteBranch(gitRemoteURI, onLoad)
|
|
getDiff(gitDiffURI, commitName, onLoad)
|
|
getDiffContent(diffURI, onLoad, onError)
|
|
getDiffFileURI(diffURI, onLoad, onError)
|
|
getGitBranch(gitBranchURI)
|
|
getGitClone(gitCloneURI, onLoad)
|
|
getGitCloneConfig(gitCloneConfigURI)
|
|
getGitRemote(gitRemoteURI)
|
|
getGitStatus(url, onLoad, onError)
|
|
getLog(gitCommitURI, commitName, onLoad)
|
|
<inner> |
GitService(serviceRegistry)
|
initGitRepository(targetLocation)
|
|
removeBranch(gitBranchURI)
|
|
removeGitRepository(repositoryLocation)
|
|
removeRemote(gitRemoteURI)
|
|
resetIndex(gitIndexURI, refId)
|
|
stage(location, onLoad, onError)
|
|
unstage(location, paths, onLoad, onError)
|
|
unstageAll(location, resetParam, onLoad, onError)
|
Method Detail
addBranch(gitBranchParentURI, branchName, startPoint)
- Parameters:
- gitBranchParentURI
- branchName
- startPoint
addCloneConfigurationProperty(location, newKey, newValue, onLoad, onError)
- Parameters:
- location
- newKey
- newValue
- onLoad
- onError
addRemote(gitRemoteParentURI, remoteName, remoteURI)
- Parameters:
- gitRemoteParentURI
- remoteName
- remoteURI
checkGitService()
checkoutBranch(gitCloneURI, branchName)
- Parameters:
- gitCloneURI
- branchName
checkoutPath(gitCloneURI, paths, onLoad, onError)
- Parameters:
- gitCloneURI
- paths
- onLoad
- onError
cloneGitRepository(gitName, gitRepoUrl, targetPath, repoLocation, gitSshUsername, gitSshPassword, gitSshKnownHost, privateKey, passphrase)
- Parameters:
- gitName
- gitRepoUrl
- targetPath
- repoLocation
- gitSshUsername
- gitSshPassword
- gitSshKnownHost
- privateKey
- passphrase
commitAll(location, message, body, onLoad, onError)
- Parameters:
- location
- message
- body
- onLoad
- onError
deleteCloneConfigurationProperty(location, onLoad, onError)
- Parameters:
- location
- onLoad
- onError
doAddTag(gitCommitURI, tagName, onLoad)
- Parameters:
- gitCommitURI
- tagName
- onLoad
doFetch(gitRemoteBranchURI, onLoad, gitSshUsername, gitSshPassword, gitSshKnownHost, gitPrivateKey, gitPassphrase)
- Parameters:
- gitRemoteBranchURI
- onLoad
- gitSshUsername
- gitSshPassword
- gitSshKnownHost
- gitPrivateKey
- gitPassphrase
doGitLog(gitLogURI, onLoad)
- Parameters:
- gitLogURI
- onLoad
doMerge(gitHeadURI, commitName)
- Parameters:
- gitHeadURI
- commitName
doPush(gitBranchURI, srcRef, onLoad, gitSshUsername, gitSshPassword, gitSshKnownHost, gitPrivateKey, gitPassphrase)
- Parameters:
- gitBranchURI
- srcRef
- onLoad
- gitSshUsername
- gitSshPassword
- gitSshKnownHost
- gitPrivateKey
- gitPassphrase
editCloneConfigurationProperty(location, newValue, onLoad, onError)
- Parameters:
- location
- newValue
- onLoad
- onError
getDefaultRemoteBranch(gitRemoteURI, onLoad)
- Parameters:
- gitRemoteURI
- onLoad
getDiff(gitDiffURI, commitName, onLoad)
- Parameters:
- gitDiffURI
- commitName
- onLoad
getDiffContent(diffURI, onLoad, onError)
- Parameters:
- diffURI
- onLoad
- onError
getDiffFileURI(diffURI, onLoad, onError)
- Parameters:
- diffURI
- onLoad
- onError
getGitBranch(gitBranchURI)
- Parameters:
- gitBranchURI
getGitClone(gitCloneURI, onLoad)
- Parameters:
- gitCloneURI
- onLoad
getGitCloneConfig(gitCloneConfigURI)
- Parameters:
- gitCloneConfigURI
getGitRemote(gitRemoteURI)
- Parameters:
- gitRemoteURI
getGitStatus(url, onLoad, onError)
- Parameters:
- url
- onLoad
- onError
getLog(gitCommitURI, commitName, onLoad)
- Parameters:
- gitCommitURI
- commitName
- onLoad
<inner>
GitService(serviceRegistry)
- Parameters:
- serviceRegistry
initGitRepository(targetLocation)
- Parameters:
- targetLocation
removeBranch(gitBranchURI)
- Parameters:
- gitBranchURI
removeGitRepository(repositoryLocation)
- Parameters:
- repositoryLocation
removeRemote(gitRemoteURI)
- Parameters:
- gitRemoteURI
resetIndex(gitIndexURI, refId)
- Parameters:
- gitIndexURI
- refId
stage(location, onLoad, onError)
- Parameters:
- location
- onLoad
- onError
unstage(location, paths, onLoad, onError)
- Parameters:
- location
- paths
- onLoad
- onError
unstageAll(location, resetParam, onLoad, onError)
- Parameters:
- location
- resetParam
- onLoad
- onError