Sha256: f07a45bde0a6e9b3403580f3bb308a00a60dbe59a5946e5fc704d85e1733809a
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
module GitWrapper module Commands class Show < Git def file(file_name) @file = to_relative_path(file_name) self end def commit(commit) @version = "#{commit}:" self end def base @version = ':1:' self end def mine @version = ':2:' self end def theirs @version = ':3:' self end def command "show #{@version ? @version : 'HEAD:'}\"#{@file}\"" end def result output end end end end
Version data entries
4 entries across 4 versions & 1 rubygems