lib/rugged/commit.rb in rugged-0.24.0b12 vs lib/rugged/commit.rb in rugged-0.24.0b13

- old
+ new

@@ -7,9 +7,13 @@ def inspect "#<Rugged::Commit:#{object_id} {message: #{message.inspect}, tree: #{tree.inspect}, parents: #{parent_oids}}>" end + def header_field?(field) + !!header_field(field) + end + # Return a diff between this commit and its first parent or another commit or tree. # # See Rugged::Tree#diff for more details. def diff(*args) args.unshift(parents.first) if args.size == 1 && args.first.is_a?(Hash)