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§
- Named
Ref - 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