Add pre/post commit flag semantics