View Source Dagger.GitRepository (dagger v0.10.0)

A git repository.

Link to this section Summary

Functions

Returns details of a branch.

Returns details of a commit.

A unique identifier for this GitRepository.

Returns details of a ref.

Returns details of a tag.

Link to this section Types

@type t() :: %Dagger.GitRepository{client: term(), selection: term()}

Link to this section Functions

Link to this function

branch(git_repository, name)

View Source
@spec branch(t(), Dagger.String.t()) :: Dagger.GitRef.t()

Returns details of a branch.

required-arguments

Required Arguments

  • name - Branch's name (e.g., "main").
Link to this function

commit(git_repository, id)

View Source
@spec commit(t(), Dagger.String.t()) :: Dagger.GitRef.t()

Returns details of a commit.

required-arguments

Required Arguments

  • id - Identifier of the commit (e.g., "b6315d8f2810962c601af73f86831f6866ea798b").
@spec id(t()) :: {:ok, Dagger.GitRepositoryID.t()} | {:error, term()}

A unique identifier for this GitRepository.

Link to this function

ref(git_repository, name)

View Source
@spec ref(t(), Dagger.String.t()) :: Dagger.GitRef.t()

Returns details of a ref.

required-arguments

Required Arguments

  • name - Ref's name (can be a commit identifier, a tag name, a branch name, or a fully-qualified ref).
Link to this function

tag(git_repository, name)

View Source
@spec tag(t(), Dagger.String.t()) :: Dagger.GitRef.t()

Returns details of a tag.

required-arguments

Required Arguments

  • name - Tag's name (e.g., "v0.3.9").