integrate the RevShare command with Commit & Object

add a Repository::isBare method

add tests