This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/reference/universe/git.md
Sam Alba 7054782547 docs: updated stdlib reference doc
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 10:48:54 +02:00

1.6 KiB

sidebar_label
git

dagger.io/git

Git operations

#CurrentBranch

Get the name of the current checked out branch or tag

#CurrentBranch Inputs

Name Type Description
repository dagger.#Artifact Git repository

#CurrentBranch Outputs

Name Type Description
name string Git branch name

#Repository

A git repository

#Repository Inputs

Name Type Description
remote string Git remote. Example: "https://github.com/dagger/dagger"
ref string Git ref: can be a commit, tag or branch. Example: "main"
subdir *null | string (optional) Subdirectory

#Repository Outputs

No output.

#Tags

List tags of a repository

#Tags Inputs

Name Type Description
repository dagger.#Artifact Git repository

#Tags Outputs

Name Type Description
tags [] Repository tags