[英]Is there a way to check all merged commits that come from a specific branch?
If I have master branch and merge in commits from branch foo multiple times, is there a command to find all those commits?如果我有 master 分支并多次合并来自分支 foo 的提交,是否有命令可以找到所有这些提交?
Finding the oldest merge base of two first-parent histories is an easy enough request,找到两个第一亲历史的最旧合并基础是一个很容易的请求,
oldestbase=$(
(git rev-list --first-parent mainline; git rev-list --first-parent feature) \
| awk 'seen[$0]++ {print;exit}'
)
and then your list of feature
commits to check is然后您要检查的feature
提交列表是
git rev-list --first-parent --no-merges $oldestbase..feature
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.