Skip to content
sya-riPublic

About

Kotlin Wrapper Library of JGit

Topics

Resources

Contributing

Stars

47 stars

Watchers

1 watching

Forks

Repository files navigation

KGit

GitHub release (latest by date) maven-central ktlint

KGit is Kotlin Wrapper Library of JGit.

  • Null Safety Methods
  • Command Settings Available Using Lambda Function (No Method Chain)
  • Support JGit features: 7.7.1.202607240634-r

Examples

Clone Repository

JGit

val git: Git = Git.cloneRepository()
                  .setURI("https://github.com/sya-ri/KGit")
                  .setTimeout(60)
                  .setProgressMonitor(TextProgressMonitor())
                  .call()

KGit

val git: KGit = KGit.cloneRepository {
    setURI("https://github.com/sya-ri/KGit")
    setTimeout(60)
    setProgressMonitor(TextProgressMonitor())
}

Installation

Tip

  • KGit bundles org.eclipse.jgit:org.eclipse.jgit.
  • Install the jgit extension library if necessary.

build.gradle

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.github.sya-ri:kgit:1.2.2'
}

build.gradle.kts

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.github.sya-ri:kgit:1.2.2")
}

Documentation and development

  • Releases: published versions and release notes.
  • Kotlin wrappers: available commands and their source.
  • Contributing: updating bundled JGit, validation, and commit conventions.

About

Kotlin Wrapper Library of JGit

Topics

Resources

Contributing

Stars

47 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages