lib/overcommit/hook_context/pre_push.rb in overcommit-0.38.0 vs lib/overcommit/hook_context/pre_push.rb in overcommit-0.39.0

- old
+ new

@@ -15,10 +15,10 @@ input_lines.map do |line| PushedRef.new(*line.split(' ')) end end - PushedRef = Struct.new(:local_ref, :local_sha1, :remote_ref, :remote_sha1) do # rubocop:disable Metrics/BlockLength, Metrics/LineLength + PushedRef = Struct.new(:local_ref, :local_sha1, :remote_ref, :remote_sha1) do def forced? !(created? || deleted? || overwritten_commits.empty?) end def created?