git

fun ScriptScope.git(condition: ScopeActivationCondition = always, body: GitScope.() -> Unit)(source)

A scoping function to execute a code block within the context of an GitScope instance, which provides functionality to interact with Git source repositories.

Parameters

condition

An optional activation condition for this scope. This can be used to declaratively specify under what conditions the scope should be evaluated. If the passed ScopeActivationCondition object evaluates to false, the entire scope will be ignored. The default value for this parameter is always.

body

The function body that will be executed in the context of the GitScope instance.