org.ajoberstar.grgit.Ref.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grgit-core Show documentation
Show all versions of grgit-core Show documentation
The Groovy way to use Git
package org.ajoberstar.grgit
import groovy.transform.Immutable
import org.eclipse.jgit.lib.Repository
/**
* A ref.
* @since 2.0.0
*/
@Immutable
class Ref {
/**
* The fully qualified name of this ref.
*/
String fullName
/**
* The simple name of the ref.
* @return the simple name
*/
String getName() {
return Repository.shortenRefName(fullName)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy