Module refs

Module refs 

Source
Expand description

Git references (branches, tags, HEAD)

Refs are named pointers to commits. They live in the refs namespace:

  • refs/heads/* - branches
  • refs/tags/* - tags
  • HEAD - symbolic ref or direct pointer

Structs§

NamedRef
Reference with its full name

Enums§

Ref
A git reference

Constants§

HEAD
Common ref constants
REFS_HEADS
REFS_TAGS

Functions§

branch_name
Extract branch name from full ref
branch_ref
Create a branch ref name
tag_name
Extract tag name from full ref
tag_ref
Create a tag ref name
validate_ref_name
Validate a ref name according to git rules