Add generic commit "pretty print" function.