|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGitAPI
Encapsulates Git operations on a particular directory through git(1).
| Method Summary | |
|---|---|
void |
add(String filePattern)
|
void |
branch(String name)
|
void |
changelog(String revFrom,
String revTo,
OutputStream fos)
|
void |
checkout(String commitish)
Short for checkoutBranch(null, commitish) |
void |
checkoutBranch(String branch,
String commitish)
Checks out the specified commit/ref into the workspace. |
void |
clean()
|
void |
clone(org.spearce.jgit.transport.RemoteConfig source)
|
void |
commit(File f)
|
void |
deleteBranch(String name)
|
void |
deleteTag(String tagName)
|
String |
describe(String commitIsh)
|
void |
fetch()
|
void |
fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)
|
void |
fetch(String repository,
String refspec)
|
void |
fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
|
String |
getAllLogEntries(String branch)
|
List<Branch> |
getBranches()
|
List<Branch> |
getBranchesContaining(String revspec)
|
String |
getDefaultRemote(String _default_)
|
hudson.EnvVars |
getEnvironment()
|
String |
getGitExe()
|
List<Branch> |
getRemoteBranches()
|
String |
getRemoteUrl(String name)
|
String |
getRemoteUrl(String name,
String GIT_DIR)
|
List<IndexEntry> |
getSubmodules(String treeIsh)
|
String |
getSubmoduleUrl(String name)
|
Set<String> |
getTagNames(String tagPattern)
|
List<org.spearce.jgit.lib.Tag> |
getTagsOnCommit(String revName)
|
boolean |
hasGitModules()
|
boolean |
hasGitModules(String treeIsh)
|
boolean |
hasGitRepo()
Returns true if the encapsulated directory has ".git" directory |
void |
init()
|
boolean |
isBareRepository()
|
boolean |
isBareRepository(String GIT_DIR)
|
boolean |
isCommitInRepo(String sha1)
|
List<IndexEntry> |
lsTree(String treeIsh)
|
void |
merge(String revSpec)
|
org.spearce.jgit.lib.ObjectId |
mergeBase(org.spearce.jgit.lib.ObjectId sha1,
org.spearce.jgit.lib.ObjectId sha12)
|
void |
prune(org.spearce.jgit.transport.RemoteConfig repository)
|
void |
push(org.spearce.jgit.transport.RemoteConfig repository,
String revspec)
|
List<org.spearce.jgit.lib.ObjectId> |
revListAll()
|
List<org.spearce.jgit.lib.ObjectId> |
revListBranch(String branchId)
|
org.spearce.jgit.lib.ObjectId |
revParse(String revName)
|
void |
setRemoteUrl(String name,
String url)
|
void |
setRemoteUrl(String name,
String url,
String GIT_DIR)
|
void |
setSubmoduleUrl(String name,
String url)
|
void |
setupSubmoduleUrls(Revision rev,
hudson.model.TaskListener listener)
|
void |
setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
|
List<String> |
showRevision(Revision r)
|
void |
submoduleClean(boolean recursive)
|
void |
submoduleInit()
|
void |
submoduleSync()
|
void |
submoduleUpdate(boolean recursive)
|
void |
tag(String tagName,
String comment)
|
boolean |
tagExists(String tagName)
|
| Method Detail |
|---|
String getGitExe()
hudson.EnvVars getEnvironment()
void init()
throws GitException
GitException
boolean hasGitRepo()
throws GitException
GitExceptionboolean isCommitInRepo(String sha1)
boolean hasGitModules()
throws GitException
GitException
boolean hasGitModules(String treeIsh)
throws GitException
GitException
List<IndexEntry> getSubmodules(String treeIsh)
throws GitException
GitException
String getRemoteUrl(String name)
throws GitException
GitException
void setRemoteUrl(String name,
String url)
throws GitException
GitException
String getRemoteUrl(String name,
String GIT_DIR)
throws GitException
GitException
void setRemoteUrl(String name,
String url,
String GIT_DIR)
throws GitException
GitException
String getDefaultRemote(String _default_)
throws GitException
GitException
boolean isBareRepository()
throws GitException
GitException
boolean isBareRepository(String GIT_DIR)
throws GitException
GitException
void submoduleInit()
throws GitException
GitException
void submoduleUpdate(boolean recursive)
throws GitException
GitException
void submoduleClean(boolean recursive)
throws GitException
GitException
void submoduleSync()
throws GitException
GitException
String getSubmoduleUrl(String name)
throws GitException
GitException
void setSubmoduleUrl(String name,
String url)
throws GitException
GitException
void fixSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
throws GitException
GitException
void setupSubmoduleUrls(Revision rev,
hudson.model.TaskListener listener)
throws GitException
GitException
void setupSubmoduleUrls(String remote,
hudson.model.TaskListener listener)
throws GitException
GitException
void fetch(String repository,
String refspec)
throws GitException
GitExceptionvoid fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)
void fetch()
throws GitException
GitException
void push(org.spearce.jgit.transport.RemoteConfig repository,
String revspec)
throws GitException
GitException
void merge(String revSpec)
throws GitException
GitException
void clone(org.spearce.jgit.transport.RemoteConfig source)
throws GitException
GitException
void clean()
throws GitException
GitException
void prune(org.spearce.jgit.transport.RemoteConfig repository)
throws GitException
GitException
org.spearce.jgit.lib.ObjectId revParse(String revName)
throws GitException
GitException
List<Branch> getBranches()
throws GitException
GitException
List<Branch> getRemoteBranches()
throws GitException,
IOException
GitException
IOException
List<Branch> getBranchesContaining(String revspec)
throws GitException
GitException
List<IndexEntry> lsTree(String treeIsh)
throws GitException
GitException
List<org.spearce.jgit.lib.ObjectId> revListBranch(String branchId)
throws GitException
GitException
List<org.spearce.jgit.lib.ObjectId> revListAll()
throws GitException
GitException
String describe(String commitIsh)
throws GitException
GitException
List<org.spearce.jgit.lib.Tag> getTagsOnCommit(String revName)
throws GitException,
IOException
GitException
IOException
void tag(String tagName,
String comment)
throws GitException
GitException
boolean tagExists(String tagName)
throws GitException
GitException
void deleteTag(String tagName)
throws GitException
GitException
Set<String> getTagNames(String tagPattern)
throws GitException
GitException
void changelog(String revFrom,
String revTo,
OutputStream fos)
throws GitException
GitException
void checkout(String commitish)
throws GitException
checkoutBranch(null, commitish)
GitException
void checkoutBranch(String branch,
String commitish)
throws GitException
branch - If non-null, move/create the branch in this name at the specified commit-ish and check out that branch.
GitException
void add(String filePattern)
throws GitException
GitException
void branch(String name)
throws GitException
GitException
void deleteBranch(String name)
throws GitException
GitException
void commit(File f)
throws GitException
GitException
org.spearce.jgit.lib.ObjectId mergeBase(org.spearce.jgit.lib.ObjectId sha1,
org.spearce.jgit.lib.ObjectId sha12)
String getAllLogEntries(String branch)
List<String> showRevision(Revision r)
throws GitException
GitException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||