View Source Dagger.GitRef (dagger v0.15.1)

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

Summary

Functions

The resolved commit id at this ref.

A unique identifier for this GitRef.

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.

tree(git_ref, optional_args \\ [])

@spec tree(t(), [{:discard_git_dir, boolean() | nil}]) :: Dagger.Directory.t()

The filesystem tree at this ref.