Features/repository hash

Implement `hash` on repository which hashes content without actually writing anything.