Support for other commits than HEAD.