Class GitReadOnlyCommandUtil

java.lang.Object
nebula.plugin.info.scm.GitReadOnlyCommandUtil
All Implemented Interfaces:
Serializable

public class GitReadOnlyCommandUtil extends Object implements 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 Details

    • create

      public static GitReadOnlyCommandUtil create(File rootDir, org.gradle.api.provider.ProviderFactory providerFactory)
    • currentBranch

      public org.gradle.api.provider.Provider<String> currentBranch()
      Get the current branch of the git repository
    • moduleSource

      public org.gradle.api.provider.Provider<String> moduleSource()
    • fullChange

      public org.gradle.api.provider.Provider<String> fullChange()
    • remoteOrigin

      public org.gradle.api.provider.Provider<String> remoteOrigin()
      Get the remote origin of the git repository