tristate machine - working-dir/staging-area/last-commit