{"thread":{"id":"8751","subject":"post-apply hook or something like that","startedAt":"2007-06-27T18:17:26Z","lastAt":"2007-06-27T18:17:26Z","messageCount":1,"participants":["Nicolas Vilz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"45933","messageId":"20070627181726.GH17855@hermes.lan.home.vilz.de","threadId":"8751","inReplyTo":null,"subject":"post-apply hook or something like that","fromName":"Nicolas Vilz","fromEmail":"niv@iaglans.de","sentAt":"2007-06-27T18:17:26Z","receivedAt":"2007-06-27T18:17:26Z","isPatch":false,"sender":{"key":"niv@iaglans.de","avatar":"https://gravatar.com/avatar/e4d43a32d721241212d4edb1d2210327e28423c913071b4bfeeaa0ce15296110?d=mp&s=160"},"body":"Hello fellow gits,\n\nI try to insert metastore into my workflow and i wonder if i could get\nthe following scenario working:\n\n(1) cd /etc/ && git-init-db # start gittify etc-directory\n(2) git commit -a # fire up first commit\n(3) metastore -s # save current state of permissions and ownerships\n(4) git commit -a # commit the changes\n(5) chown nobody bash/<somefile> # change ownership\n(6) git commit -a # with the pre-commit shipped with metastore this is tracked\n(7) git reset --hard HEAD^1 # go back one step\n(8) git reset --hard <former-sha1-sum> # go forward again\n(9) metastore -a # apply the changes from last commit\n\nwhat i was wondering, is it possible, to get a metastore -a\nautomatically after checking out something?\n\nGreetings\nNicolas\n"}]}