Add mimetype support to compare() so diff/patches can be fetched