hudson.plugins.git
Class GitAPI

java.lang.Object
  extended by hudson.plugins.git.GitAPI
All Implemented Interfaces:
IGitAPI

public class GitAPI
extends java.lang.Object
implements IGitAPI


Constructor Summary
GitAPI(java.lang.String gitExe, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
 
Method Summary
 void clone(java.lang.String source)
          Start from scratch and clone the whole repository.
protected  java.util.Map<java.lang.String,java.lang.String> createEnvVarMap()
           
 void diff(java.io.OutputStream baos)
           
 void fetch()
           
 java.lang.String getGitExe()
           
 boolean hasGitModules()
           
 boolean hasGitRepo()
           
 void log(java.io.OutputStream fos)
           
 void merge()
          Merge any changes into the head.
 void submoduleInit()
          Init submodules.
 void submoduleUpdate()
          Update submodules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitAPI

public GitAPI(java.lang.String gitExe,
              hudson.Launcher launcher,
              hudson.FilePath workspace,
              hudson.model.TaskListener listener)
Method Detail

getGitExe

public java.lang.String getGitExe()

hasGitRepo

public boolean hasGitRepo()
                   throws GitException
Specified by:
hasGitRepo in interface IGitAPI
Throws:
GitException

hasGitModules

public boolean hasGitModules()
                      throws GitException
Specified by:
hasGitModules in interface IGitAPI
Throws:
GitException

fetch

public void fetch()
           throws GitException
Specified by:
fetch in interface IGitAPI
Throws:
GitException

clone

public void clone(java.lang.String source)
           throws GitException
Start from scratch and clone the whole repository.

Specified by:
clone in interface IGitAPI
Throws:
GitException

diff

public void diff(java.io.OutputStream baos)
          throws GitException
Specified by:
diff in interface IGitAPI
Throws:
GitException

log

public void log(java.io.OutputStream fos)
         throws GitException
Specified by:
log in interface IGitAPI
Throws:
GitException

merge

public void merge()
           throws GitException
Merge any changes into the head.

Specified by:
merge in interface IGitAPI
Throws:
GitException

submoduleInit

public void submoduleInit()
                   throws GitException
Init submodules.

Specified by:
submoduleInit in interface IGitAPI
Throws:
GitException

submoduleUpdate

public void submoduleUpdate()
                     throws GitException
Update submodules.

Specified by:
submoduleUpdate in interface IGitAPI
Throws:
GitException

createEnvVarMap

protected final java.util.Map<java.lang.String,java.lang.String> createEnvVarMap()


Copyright © 2008. All Rights Reserved.