GitUtils

class GitUtils(localPath: String? = null, remotePath: String? = null)

Constructors

Link copied to clipboard
constructor(localPath: String? = null, remotePath: String? = null)

Properties

Link copied to clipboard
val git: Git
Link copied to clipboard
var repo: Repository

Functions

Link copied to clipboard
fun add(filePattern: String? = ".")
Link copied to clipboard
fun cloneRepository(writer: Writer? = null)
Link copied to clipboard
fun commit(message: String)
Link copied to clipboard
fun getChangedFiles(commit: RevCommit): List<String>
Link copied to clipboard
fun getChangesOfCommit(commit: RevCommit): List<DiffEntry>?
Link copied to clipboard
fun getChangesTypeOfCommit(commit: RevCommit): List<DiffEntry.ChangeType>
Link copied to clipboard
fun getCommitList(): List<RevCommit>
Link copied to clipboard
fun getDiffContent(commit: RevCommit, filePath: String, withHeader: Boolean = false): String?
Link copied to clipboard
fun getFileContent(commit: RevCommit, filePath: String): String?
Link copied to clipboard
fun getFirstChangeTypeOfCommit(commit: RevCommit): DiffEntry.ChangeType?
Link copied to clipboard