Ignore merges when collecting commits