Skip to content

branch

A git branch.

MetadataValue
Pluralbranches
Subtitle fieldcommit
FieldType
commitstring
upstreamstring
aheadinteger
behindinteger
isCurrentboolean
isRemoteboolean
RelationTarget
repositoryrepository

External standards this shape draws from or aligns with. See Shape design principles for how prior art informs shape design.

  • Git Internals — Branches — A branch is a movable pointer to a commit. Our commit field is the HEAD sha; ahead/behind mirror git rev-list --count.
  • GitHub REST — branches — Practical API surface. Our upstream ≈ the remote tracking ref; we flatten protection/commit metadata that GitHub nests.
  • gitlist_branches, get_branch