Method: Garlic::Repo.tree_ish

Defined in:
lib/garlic/repo.rb

.tree_ish(options) ⇒ Object



25
26
27
28
29
30
# File 'lib/garlic/repo.rb', line 25

def tree_ish(options)
  [:tree_ish, :tree, :branch, :tag, :commit, :sha].each do |key|
    return options[key] if options[key]
  end
  nil
end