Kotlin library for generating Git object content.
Note: To be used as actual object- and packfiles, the generated content has to be compressed.
<dependency>
<groupId>com.thizzer.kt-git-repository</groupId>
<artifactId>kt-git-repository</artifactId>
<version>1.2.0</version>
</dependency>
implementation group: 'com.thizzer.kt-git-repository', name: 'kt-git-repository', version: '1.2.0'
implementation("com.thizzer.kt-git-repository:kt-git-repository:1.2.0")
val repository = gitRepository {
branch("main") {
commit("Initial commit.") {
file("README.md", "New and shiny README.md file.")
}
}
}