Using git plumbing for prompt checking