add cmd exit status and git branch info