View Source Dagger.GitRef (dagger v0.11.3)

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

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

Functions

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

The resolved commit id at this ref.

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

A unique identifier for this GitRef.

Link to this function

tree(git_ref, optional_args \\ [])

View Source
@spec tree(t(),
  ssh_known_hosts: String.t() | nil,
  ssh_auth_socket: Dagger.SocketID.t() | nil
) ::
  Dagger.Directory.t()

The filesystem tree at this ref.