Gitility.Fetch.Result (Gitility v0.4.0)

Copy Markdown View Source

The normalized outcome of a native smart-HTTP fetch.

Summary

Types

rejected_ref()

@type rejected_ref() :: %{name: String.t(), reason: atom()}

t()

@type t() :: %Gitility.Fetch.Result{
  pack_received: boolean(),
  pruned_refs: [String.t()],
  rejected_refs: [rejected_ref()],
  remote_ref_count: non_neg_integer(),
  updated_refs: [updated_ref()]
}

updated_ref()

@type updated_ref() :: %{
  name: String.t(),
  action: :created | :fast_forward | :forced,
  old_oid: String.t() | nil,
  new_oid: String.t()
}