How to see what has been checked into git, but hasn't been committed to svn via dcommit?

后端 未结 4 368
孤街浪徒
孤街浪徒 2020-12-31 08:42

I\'m using git-svn. How can I get a list of what I\'ve committed into git, but haven\'t yet committed to the SVN repository since the last git svn dcommit? That

4条回答
  •  被撕碎了的回忆
    2020-12-31 09:05

    To just see the list of commits, here's my magic:

    git svn dcommit -n  | sed 1d | cut -d" " -f3 | xargs -I{} git log --oneline --no-walk {}
    

    output:

    c2e1eff changed a thing
    a889dbf changed a second thing
    18a4653 undid the second thing-- oops
    

提交回复
热议问题