Package nebula.plugin.info.scm
Class GitReadOnlyCommandUtil
java.lang.Object
nebula.plugin.info.scm.GitReadOnlyCommandUtil
- All Implemented Interfaces:
Serializable
Utility class for executing read-only Git operations using Gradle's Provider API.
This class provides a safe, caching-friendly way to access Git repository information
during build execution without modifying the repository state.
The utility supports configuration cache by using Gradle's Provider system for executing Git commands. All Git operations are delegated to specialized command classes that implement proper parameter passing and caching behavior.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic GitReadOnlyCommandUtilorg.gradle.api.provider.Provider<String>Get the current branch of the git repositoryorg.gradle.api.provider.Provider<String>org.gradle.api.provider.Provider<String>org.gradle.api.provider.Provider<String>Get the remote origin of the git repository
-
Method Details
-
create
public static GitReadOnlyCommandUtil create(File rootDir, org.gradle.api.provider.ProviderFactory providerFactory) -
currentBranch
Get the current branch of the git repository -
moduleSource
-
fullChange
-
remoteOrigin
Get the remote origin of the git repository
-