Git commit information.
Summary
Constructors
Visibility | Signature |
---|---|
public |
Commit() |
public |
Commit(int repoId, String repoDisplayName, String author, String commitId, String date, String message, Map < String , String > notes, List <ShortFileInfo> files, Collection < String > branches) |
Methods
Type and modifiers | Method signature |
---|---|
public String |
getAuthor() |
public Collection < String > |
getBranches() |
public String |
getCommitId() |
public String |
getDate() |
public List <ShortFileInfo> |
getFiles() |
public String |
getMessage() |
public Map < String , String > |
getNotes() |
public com.bigbrassband.jira.git.rest.publicmodels.Commit.Repository |
getRepository() |
public void |
setAuthor( String author) |
public void |
setBranches( Collection < String > branches) |
public void |
setCommitId( String commitId) |
public void |
setDate( String date) |
public void |
setFiles( List <ShortFileInfo> files) |
public void |
setMessage( String message) |
public void |
setNotes( Map < String , String > notes) |
Constructors
Commit()
Commit(int, String, String, String, String, String, Map<String, String>, List, Collection)
Methods
getAuthor()
Returns commit author, e.g. "John Smith"
getBranches()
Returns list of branches the git commit belongs to.
getCommitId()
Returns git commit id, e.g. "34efa20372f0e2f0c9b705aacc57d7ad82e01426"
getDate()
Returns git commit date in ISO format using timezone of the current user, e.g. "2022-07-15T00:20:58+0000"
getFiles()
Returns files changed in the git commit.
getMessage()
Returns git commit message.
getNotes()
Returns notes of the git commit, where a map key is a note namespace, a map value is a note message.
getRepository()
Returns a repository which the git commit belongs to.