Add ref shorthand function
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
defrecord Geef.Reference, Record.extract(:geef_reference, from: "src/geef_records.hrl") do
|
||||
alias Geef.Repository
|
||||
alias Geef.Reference
|
||||
|
||||
def lookup(repo, name) do
|
||||
case :geef_ref.lookup(repo, name) do
|
||||
@@ -53,4 +54,11 @@ defrecord Geef.Reference, Record.extract(:geef_reference, from: "src/geef_record
|
||||
end
|
||||
end
|
||||
|
||||
def shorthand(Reference[name: name]) do
|
||||
:geef_ref.shorthand(name)
|
||||
end
|
||||
def shorthane(name) do
|
||||
:geef_ref.shorthand(name)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user