[英]git log for commits matching branch or tag glob
I want to get a log of all commits matching a branch glob in git. 我想获取与git中的分支glob匹配的所有提交的日志。
Consider the following history (lower case letters are commits, upper case commits are BRANCHES pointing there) 考虑以下历史记录(小写字母为提交,大写字母为BRANCHES指向此处)
/-b --XX, tag2
a--c --XY, tag1
\-d --ZZ, HEAD
I want all commits that match the branch glob abc*
(in this example none, but there may be some), merged with those that match the tag glob tag*
(in this example tag1 and tag2). 我希望所有与分支glob abc*
匹配的提交(在此示例中为无,但可能有一些提交)与与标签glob tag*
匹配(在此示例中为tag1和tag2)合并。 I would expect 我希望
git log --branches="abc*" --tags="tag*"
to return a, b and c, but instead it returns a and d. 返回a,b和c,但返回a和d。
I'll have to disagree with you. 我不得不不同意你的看法。 git log --branches="X*"
does not list the commits pointed to by only ZZ
or HEAD
. git log --branches="X*"
不会仅列出ZZ
或HEAD
指向的提交。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.