Dagger.DiffStat (dagger v0.20.8)

Copy Markdown View Source

Dagger.DiffStat

Summary

Functions

Number of added lines for this path.

A unique identifier for this DiffStat.

Type of change.

Previous path of the file, set only for renames.

Path of the changed file or directory.

Number of removed lines for this path.

Types

t()

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

Functions

added_lines(diff_stat)

@spec added_lines(t()) :: {:ok, integer()} | {:error, term()}

Number of added lines for this path.

id(diff_stat)

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

A unique identifier for this DiffStat.

kind(diff_stat)

@spec kind(t()) :: {:ok, Dagger.DiffStatKind.t()} | {:error, term()}

Type of change.

old_path(diff_stat)

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

Previous path of the file, set only for renames.

path(diff_stat)

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

Path of the changed file or directory.

removed_lines(diff_stat)

@spec removed_lines(t()) :: {:ok, integer()} | {:error, term()}

Number of removed lines for this path.