Command (or script) similar to git status to show all local commits since last git svn dcommit?

前端 未结 5 1340
梦如初夏
梦如初夏 2021-01-13 14:14

This python script is the best I have come up with so far. I just hacked it together and on a cursory first couple uses, seems to be acting correctly, but I can\'t help but

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 14:44

    I added this to my ~/.gitconfig file:

    svn-status = !"git log `git svn log --show-commit --oneline --limit=1 | awk '{print $3}'`..HEAD --oneline"
    

    which gives handy short messages if there are any changes that need dcommit, and shows nothing if you're up to date (assuming you've done a rebase or fetch). you could modify the params to the outer git-log if you like too.

提交回复
热议问题