Skip to main content

workspaces_git_ahead_behind

Creates, updates, deletes, gets or lists a workspaces_git_ahead_behind resource.

Overview

Nameworkspaces_git_ahead_behind
TypeResource
Idgoogle.dataform.workspaces_git_ahead_behind

Fields

NameDatatypeDescription
commitsAheadintegerThe number of commits in the remote branch that are not in the workspace.
commitsBehindintegerThe number of commits in the workspace that are not in the remote branch.

Methods

NameAccessible byRequired ParamsDescription
fetch_git_ahead_behindSELECTlocationsId, projectsId, repositoriesId, workspacesIdFetches Git ahead/behind against a remote branch.

SELECT examples

Fetches Git ahead/behind against a remote branch.

SELECT
commitsAhead,
commitsBehind
FROM google.dataform.workspaces_git_ahead_behind
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}'
AND workspacesId = '{{ workspacesId }}';