New :== method for commits, trees and blobs