workspaces_git_ahead_behind
Creates, updates, deletes, gets or lists a workspaces_git_ahead_behind
resource.
Overview
Name | workspaces_git_ahead_behind |
Type | Resource |
Id | google.dataform.workspaces_git_ahead_behind |
Fields
Name | Datatype | Description |
---|---|---|
commitsAhead | integer | The number of commits in the remote branch that are not in the workspace. |
commitsBehind | integer | The number of commits in the workspace that are not in the remote branch. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
fetch_git_ahead_behind | SELECT | locationsId, projectsId, repositoriesId, workspacesId | Fetches 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 }}';