module Git
Public Class Methods
checkout(destination)
click to toggle source
# File lib/farfugl/git.rb, line 18 def self.checkout(destination) `git checkout -f -q #{destination}` end
current_branch()
click to toggle source
# File lib/farfugl/git.rb, line 14 def self.current_branch `git rev-parse --abbrev-ref HEAD` end
hash(file)
click to toggle source
# File lib/farfugl/git.rb, line 2 def self.hash(file) `git log -n 1 -- #{file}`.split[1] end
stash()
click to toggle source
# File lib/farfugl/git.rb, line 6 def self.stash `git stash -u -q` end
unstash()
click to toggle source
# File lib/farfugl/git.rb, line 10 def self.unstash `git stash pop -q` end