HfHub.Git.CommitInfo (HfHub v0.2.0)

Copy Markdown View Source

Information about a Git commit in a HuggingFace repository.

Summary

Functions

Creates a CommitInfo struct from an API response.

Types

author()

@type author() :: %{name: String.t(), email: String.t()}

t()

@type t() :: %HfHub.Git.CommitInfo{
  authors: [author()],
  date: DateTime.t() | nil,
  id: String.t(),
  message: String.t() | nil,
  title: String.t() | nil
}

Functions

from_response(response)

@spec from_response(map()) :: t()

Creates a CommitInfo struct from an API response.