I have a post-rewrite git hook that exits with a nonzero exit code when the rebased branch fails to compile/pass a test suite. This hook gets run each time graphite rebases a branch, but graphite seems to ignore the error code and continues on. I think graphite should stop rebasing a stack when the post-rewrite git hook fails.