Skip to content

Instantly share code, notes, and snippets.

View SurpSG's full-sized avatar
🇺🇦

Sergii Gnatiuk SurpSG

🇺🇦
View GitHub Profile
fun main(args: Array<String>) {
val repository: Repository = FileRepositoryBuilder().setGitDir(
File("C:\\Users\\Crulio\\IdeaProjects\\test").resolve(".git")
).build()
Git(repository).use { git ->
DiffFormatter(System.out).apply {
setRepository(repository)
scan(
prepareTreeParser( git.getRepository(), Constants.HEAD ),