Method: Git::Lib#log_commits
- Defined in:
- lib/git/lib.rb
#log_commits(opts = {}) ⇒ Array<String>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return the commits that are within the given revision range
282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/git/lib.rb', line 282 def log_commits(opts = {}) ('between', opts[:between]&.first) ('object', opts[:object]) arr_opts = (opts) arr_opts << '--pretty=oneline' arr_opts += (opts) command_lines('log', *arr_opts).map { |l| l.split.first } end |