Copied!

Representation of a branch reference.

CloneableInstantiable
Methods
public Gitonomy\Git\Reference::__construct(Gitonomy\Git\Repository $repository, $revision, $commitHash = NULL)
public Gitonomy\Git\Reference::delete()
 
  • return void
public Gitonomy\Git\Reference::getCommit()
 
  • return \Commit Commit associated to the reference.
public Gitonomy\Git\Reference::getCommitHash()
 
  • return string
public Gitonomy\Git\Reference::getFullname()
 
  • return string
public Gitonomy\Git\Reference::getLastModification( $path = NULL)
 
  • return \Commit
public Gitonomy\Git\Revision::getLog( $paths = NULL, $offset = NULL, $limit = NULL)
 
  • return \Log
public getName()
public Gitonomy\Git\Revision::getRepository()
 
  • return \Repository
public Gitonomy\Git\Revision::getRevision()
 
  • return string
public isLocal()
public isMergedTo( $destinationBranchName = 'master', $compareOnlyWithRemote = false)
 

Check if this branch is merged to a destination branch
Optionally, check only with remote branches.

  • param string $destinationBranchName
  • param bool $compareOnlyWithRemote
  • return null|bool
public isRemote()
Properties
protected Gitonomy\Git\Reference::$commitHash = NULL
protected Gitonomy\Git\Revision::$repository = NULL
 
  • var \Repository
protected Gitonomy\Git\Revision::$revision = NULL
 
  • var string
Properties
private $local = NULL
Methods
private detectBranchType()
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration