class Git::Log

def last

Deprecated:
  • Use {#execute} and call the method on the result.
def last
  Git::Deprecation.warn(
    'Calling Git::Log#last is deprecated. Call #execute and then #last on the result object.'
  )
  run_log_if_dirty
  @commits&.last
end