hudson.plugins.git
Interface IGitAPI

All Known Implementing Classes:
GitAPI

public interface IGitAPI


Method Summary
 void add(java.lang.String filePattern)
           
 void branch(java.lang.String name)
           
 void changelog(java.lang.String revFrom, java.lang.String revTo, java.io.OutputStream fos)
           
 void checkout(java.lang.String revToBuild)
           
 void checkoutBranch(java.lang.String branch, java.lang.String revToBuild)
           
 void clean()
           
 void clone(org.spearce.jgit.transport.RemoteConfig source)
           
 void commit(java.io.File f)
           
 void deleteBranch(java.lang.String name)
           
 void deleteTag(java.lang.String tagName)
           
 java.lang.String describe(java.lang.String commitIsh)
           
 void fetch()
           
 void fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)
           
 void fetch(java.lang.String repository, java.lang.String refspec)
           
 java.lang.String getAllLogEntries(java.lang.String branch)
           
 java.util.List<Branch> getBranches()
           
 java.util.List<Branch> getBranchesContaining(java.lang.String revspec)
           
 hudson.EnvVars getEnvironment()
           
 java.lang.String getGitExe()
           
 java.util.List<Branch> getRemoteBranches()
           
 java.util.Set<java.lang.String> getTagNames(java.lang.String tagPattern)
           
 java.util.List<org.spearce.jgit.lib.Tag> getTagsOnCommit(java.lang.String revName)
           
 boolean hasGitModules()
           
 boolean hasGitRepo()
           
 void init()
           
 java.util.List<IndexEntry> lsTree(java.lang.String treeIsh)
           
 void merge(java.lang.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, java.lang.String revspec)
           
 java.util.List<org.spearce.jgit.lib.ObjectId> revListAll()
           
 java.util.List<org.spearce.jgit.lib.ObjectId> revListBranch(java.lang.String branchId)
           
 org.spearce.jgit.lib.ObjectId revParse(java.lang.String revName)
           
 java.util.List<java.lang.String> showRevision(Revision r)
           
 void submoduleClean(boolean recursive)
           
 void submoduleInit()
           
 void submoduleSync()
           
 void submoduleUpdate(boolean recursive)
           
 void tag(java.lang.String tagName, java.lang.String comment)
           
 boolean tagExists(java.lang.String tagName)
           
 

Method Detail

getGitExe

java.lang.String getGitExe()

getEnvironment

hudson.EnvVars getEnvironment()

init

void init()
          throws GitException
Throws:
GitException

hasGitRepo

boolean hasGitRepo()
                   throws GitException
Throws:
GitException

hasGitModules

boolean hasGitModules()
                      throws GitException
Throws:
GitException

submoduleInit

void submoduleInit()
                   throws GitException
Throws:
GitException

submoduleUpdate

void submoduleUpdate(boolean recursive)
                     throws GitException
Throws:
GitException

submoduleClean

void submoduleClean(boolean recursive)
                    throws GitException
Throws:
GitException

submoduleSync

void submoduleSync()
                   throws GitException
Throws:
GitException

fetch

void fetch(java.lang.String repository,
           java.lang.String refspec)
           throws GitException
Throws:
GitException

fetch

void fetch(org.spearce.jgit.transport.RemoteConfig remoteRepository)

fetch

void fetch()
           throws GitException
Throws:
GitException

push

void push(org.spearce.jgit.transport.RemoteConfig repository,
          java.lang.String revspec)
          throws GitException
Throws:
GitException

merge

void merge(java.lang.String revSpec)
           throws GitException
Throws:
GitException

clone

void clone(org.spearce.jgit.transport.RemoteConfig source)
           throws GitException
Throws:
GitException

clean

void clean()
           throws GitException
Throws:
GitException

prune

void prune(org.spearce.jgit.transport.RemoteConfig repository)
           throws GitException
Throws:
GitException

revParse

org.spearce.jgit.lib.ObjectId revParse(java.lang.String revName)
                                       throws GitException
Throws:
GitException

getBranches

java.util.List<Branch> getBranches()
                                   throws GitException
Throws:
GitException

getRemoteBranches

java.util.List<Branch> getRemoteBranches()
                                         throws GitException,
                                                java.io.IOException
Throws:
GitException
java.io.IOException

getBranchesContaining

java.util.List<Branch> getBranchesContaining(java.lang.String revspec)
                                             throws GitException
Throws:
GitException

lsTree

java.util.List<IndexEntry> lsTree(java.lang.String treeIsh)
                                  throws GitException
Throws:
GitException

revListBranch

java.util.List<org.spearce.jgit.lib.ObjectId> revListBranch(java.lang.String branchId)
                                                            throws GitException
Throws:
GitException

revListAll

java.util.List<org.spearce.jgit.lib.ObjectId> revListAll()
                                                         throws GitException
Throws:
GitException

describe

java.lang.String describe(java.lang.String commitIsh)
                          throws GitException
Throws:
GitException

getTagsOnCommit

java.util.List<org.spearce.jgit.lib.Tag> getTagsOnCommit(java.lang.String revName)
                                                         throws GitException,
                                                                java.io.IOException
Throws:
GitException
java.io.IOException

tag

void tag(java.lang.String tagName,
         java.lang.String comment)
         throws GitException
Throws:
GitException

tagExists

boolean tagExists(java.lang.String tagName)
                  throws GitException
Throws:
GitException

deleteTag

void deleteTag(java.lang.String tagName)
               throws GitException
Throws:
GitException

getTagNames

java.util.Set<java.lang.String> getTagNames(java.lang.String tagPattern)
                                            throws GitException
Throws:
GitException

changelog

void changelog(java.lang.String revFrom,
               java.lang.String revTo,
               java.io.OutputStream fos)
               throws GitException
Throws:
GitException

checkout

void checkout(java.lang.String revToBuild)
              throws GitException
Throws:
GitException

checkoutBranch

void checkoutBranch(java.lang.String branch,
                    java.lang.String revToBuild)
                    throws GitException
Throws:
GitException

add

void add(java.lang.String filePattern)
         throws GitException
Throws:
GitException

branch

void branch(java.lang.String name)
            throws GitException
Throws:
GitException

deleteBranch

void deleteBranch(java.lang.String name)
                  throws GitException
Throws:
GitException

commit

void commit(java.io.File f)
            throws GitException
Throws:
GitException

mergeBase

org.spearce.jgit.lib.ObjectId mergeBase(org.spearce.jgit.lib.ObjectId sha1,
                                        org.spearce.jgit.lib.ObjectId sha12)

getAllLogEntries

java.lang.String getAllLogEntries(java.lang.String branch)

showRevision

java.util.List<java.lang.String> showRevision(Revision r)
                                              throws GitException
Throws:
GitException


Copyright © 2010. All Rights Reserved.