How to find all unmerged commits in master grouped by the branches they were created in?

后端 未结 4 1113
一个人的身影
一个人的身影 2020-12-15 20:09

I have to create some code review from unmerged branches.

In finding solutions, let\'s not go to local-branch context problem as this will run on a server; there wil

4条回答
  •  被撕碎了的回忆
    2020-12-15 20:44

    If I grasp your problem space, think you can use --sha1-name

    git show-branch --topo-order --topics --sha1-name origin/master origin/branch1 origin/branch2

    to list what you are interested in, then run the commits through git-what-branch

    git-what-branch: Discover what branch a commit is on, or how it got to a named branch. This is a Perl script from Seth Robertson

    and format the report to suite your needs?

提交回复
热议问题