HfHub.Git.GitRefs (HfHub v0.2.0)

Copy Markdown View Source

Collection of Git refs (branches, tags, converts, pull requests) in a repository.

Summary

Functions

Creates a GitRefs struct from an API response.

Types

t()

@type t() :: %HfHub.Git.GitRefs{
  branches: [HfHub.Git.BranchInfo.t()],
  converts: [map()],
  pull_requests: [map()],
  tags: [HfHub.Git.TagInfo.t()]
}

Functions

from_response(response)

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

Creates a GitRefs struct from an API response.