Report when the repository has changed

Report when the repository has changed by adding the suffix '-dirty' to the revision.

The PR #127 and #128 together allows to ensure the repository is exactly on the provided revision.
That means if you request the repository to be on revision `f58357f`, it reset all changes even if the repository is already on `f58357f`.