Klasse AbstractGitRepository
java.lang.Object
com.github.koraktor.mavanagaiata.git.AbstractGitRepository
- Alle implementierten Schnittstellen:
GitRepository
,AutoCloseable
- Bekannte direkte Unterklassen:
JGitRepository
An abstract implementation of a Git repository that provides basic and
common functionality
- Autor:
- Sebastian Staudt
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the abbreviated commit SHA ID of the current Git commitReturns aMailMap
object that holds information from Git's.mailmap
filevoid
setHeadRef
(String headRef) Sets the Git ref to use as theHEAD
commit of the repositoryVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden com.github.koraktor.mavanagaiata.git.GitRepository
check, close, describe, getAbbreviatedCommitId, getBranch, getHeadCommit, getHeadRef, getTags, getWorkTree, isChecked, isDirty, isOnUnbornBranch, loadTag, walkCommits
-
Felddetails
-
headRef
-
mailMap
MailMap mailMap
-
-
Konstruktordetails
-
AbstractGitRepository
public AbstractGitRepository()
-
-
Methodendetails
-
getAbbreviatedCommitId
Beschreibung aus Schnittstelle kopiert:GitRepository
Returns the abbreviated commit SHA ID of the current Git commit- Angegeben von:
getAbbreviatedCommitId
in SchnittstelleGitRepository
- Gibt zurück:
- The abbreviated commit ID of the current
HEAD
commit - Löst aus:
GitRepositoryException
- if the abbreviated commit ID cannot be determined
-
getMailMap
Beschreibung aus Schnittstelle kopiert:GitRepository
Returns aMailMap
object that holds information from Git's.mailmap
file- Angegeben von:
getMailMap
in SchnittstelleGitRepository
- Gibt zurück:
- A
.mailmap
representation ornull
if none exits - Löst aus:
GitRepositoryException
- if the.mailmap
file cannot be read or parsed
-
setHeadRef
Beschreibung aus Schnittstelle kopiert:GitRepository
Sets the Git ref to use as theHEAD
commit of the repository- Angegeben von:
setHeadRef
in SchnittstelleGitRepository
- Parameter:
headRef
- The ref to use asHEAD
-