Sha256: df1f81c59a694b2a3c40c66f5bc99c27fdb811eba9affc1f48b23dae666356b2
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
module GitWrapper module Commands class Revert < Git def commit(commit) @commit = commit @merge = false self end def merge(commit) @commit = commit @merge = true self end def command "revert#{@merge ? ' -m 1' : ''} --no-edit #{@commit}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_wrapper-1.0.2 | lib/git_wrapper/commands/revert.rb |
git_wrapper-1.0.1 | lib/git_wrapper/commands/revert.rb |
git_wrapper-1.0.0 | lib/git_wrapper/commands/revert.rb |