class Git::Ref
- Git::Ref
- Reference
- Object
Defined in:
lib/ref.crlib/ref/normalization.cr
Constant Summary
-
REFS_HEADS =
/^refs\/heads\/(.+)$/ -
REFS_REMOTES =
/^refs\/remotes\/(.+)$/ -
REFS_REMOTES_REMOTE =
/^refs\/remotes\/([^\/]+)\/(.+)$/ -
REFS_TAGS =
/^refs\/tags\/(.+)$/ -
REMOTES_REMOTE =
/^remotes\/(^\/]+)\/(.+)$/ -
SPECIAL_HEADS =
["HEAD", "ORIG_HEAD", "FETCH_HEAD", "MERGE_HEAD"] of ::String
Constructors
Class Method Summary
- .normalize(name : String, &block : -> String)
- .normalize(name : String)
- .shorten(name : String, &block : -> String)
- .shorten(name : String)
- .to_local(name : String, &block : -> String)
- .to_local(name : String)
- .to_remote(name : String, remote : String, &block : -> String)
- .to_remote(name : String, remote : String)
Instance Method Summary
- #branch?
- #delete
- #name
- #note?
- #peel
- #remote?
- #repo : Repo
- #safe : Safe::Reference::Type
- #set_head
- #tag?
- #to_annotated_commit
- #to_commit
- #to_commit?
- #to_oid
- #to_oid?