Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for currentGitBranchViaFileSystemQuery (0.22 sec)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

    fun Project.releasedVersionsFile() = repoRoot().file("released-versions.json")
    
    
    /**
     * We use command line Git instead of JGit, because JGit's `Repository.resolve` does not work with worktrees.
     */
    fun Project.currentGitBranchViaFileSystemQuery(): Provider<String> = getBuildEnvironmentExtensionOrNull()?.gitBranch ?: objects.property(String::class.java)
    
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 09 08:19:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

        .orElse(systemProperty(propertyName))
        .orElse(environmentVariable(propertyName))
    
    
    val Project.buildBranch: Provider<String>
        get() = environmentVariable(BUILD_BRANCH).orElse(currentGitBranchViaFileSystemQuery())
    
    
    /**
     * The logical branch.
     * For non-merge-queue branches this is the same as {@link #buildBranch}.
     * For merge-queue branches, this is the base branch.
     *
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 09 08:19:42 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top