org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitTransportUpdate

java.lang.Object
  extended by org.netbeans.libs.git.GitTransportUpdate

public final class GitTransportUpdate
extends Object

Represents a result of transport and update of a git reference between a local and remote repository. Instance of this class is usually returned by inter-repository commands (as fetch or push).


Nested Class Summary
static class GitTransportUpdate.Type
          Git object kind.
 
Method Summary
 String getLocalName()
          Returns the name of the reference in a local repository without the prefix.
 String getNewObjectId()
           
 String getOldObjectId()
           
 String getRemoteName()
          Returns the name of the reference in a remote repository without the prefix.
 String getRemoteUri()
           
 GitRefUpdateResult getResult()
          Returns information about the result of the local/remote reference update.
 GitTransportUpdate.Type getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRemoteUri

public String getRemoteUri()
Returns:
URI of a remote repository

getLocalName

public String getLocalName()
Returns the name of the reference in a local repository without the prefix. Instead of refs/heads/master master is returned.

Returns:
name of the reference in a local repository without the reference prefix.

getRemoteName

public String getRemoteName()
Returns the name of the reference in a remote repository without the prefix. Instead of refs/heads/master master is returned.

Returns:
name of the reference in a remote repository without the reference prefix.

getOldObjectId

public String getOldObjectId()
Returns:
object id the reference pointed to before it was updated.

getNewObjectId

public String getNewObjectId()
Returns:
object id the reference points to now, after the update.

getResult

public GitRefUpdateResult getResult()
Returns information about the result of the local/remote reference update.

Returns:
result of the reference update

getType

public GitTransportUpdate.Type getType()
Returns:
kind of a git object this update refers to.

org.netbeans.libs.git/1 1.1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.