Method: Daddy::Git#show_previous
- Defined in:
- lib/daddy/git.rb
#show_previous(file, options = {}) ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/daddy/git.rb', line 53 def show_previous(file, = {}) remote = [:remote] commit = [:commit] if commit `git show #{commit}:#{file}` else `git show #{previous_branch(remote)}:#{file}` end end |