Dagger.GitRef (dagger v0.18.12)

View Source

A git ref (tag, branch, or commit).

Summary

Functions

The resolved commit id at this ref.

A unique identifier for this GitRef.

The resolved ref name at this ref.

The filesystem tree at this ref.

Types

t()

@type t() :: %Dagger.GitRef{client: term(), query_builder: term()}

Functions

commit(git_ref)

@spec commit(t()) :: {:ok, String.t()} | {:error, term()}

The resolved commit id at this ref.

id(git_ref)

@spec id(t()) :: {:ok, Dagger.GitRefID.t()} | {:error, term()}

A unique identifier for this GitRef.

ref(git_ref)

@spec ref(t()) :: {:ok, String.t()} | {:error, term()}

The resolved ref name at this ref.

tree(git_ref, optional_args \\ [])

@spec tree(t(), discard_git_dir: boolean() | nil, depth: integer() | nil) ::
  Dagger.Directory.t()

The filesystem tree at this ref.