Method: ConfCtl::GitRepoMirror#log
- Defined in:
- lib/confctl/git_repo_mirror.rb
#log(from_ref, to_ref, opts: []) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/confctl/git_repo_mirror.rb', line 32 def log(from_ref, to_ref, opts: []) ret = "git log for #{from_ref}..#{to_ref}\n" ret << git_repo( 'log', opts: ['--no-decorate', '--left-right', '--cherry-mark'] + opts, args: ["#{from_ref}..#{to_ref}"] ) ret end |