Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不检查分支的commit #75

Open
cgyFight opened this issue Jan 13, 2022 · 3 comments
Open

不检查分支的commit #75

cgyFight opened this issue Jan 13, 2022 · 3 comments

Comments

@cgyFight
Copy link

大佬,这个没有检查分支的commit诶,
我跟踪了一下代码,发现获取到的commit只有master分支的

看起来和使用下面的git命令得到的日志一样

git log --first-parent

是不是我的用法有问题呢?我到go-git提了一个问题

我使用的方式是

./whatchanged 
@axetroy
Copy link
Member

axetroy commented Jan 14, 2022

没错的,设计就是如此,取的就是某个分支的 commit

不然几个分支交叉一起,哪里还分得清

@hktkzyx
Copy link

hktkzyx commented May 3, 2022

大佬,还是希望能够加上检查分支的 commits。如果我们使用 gitflow 的分支管理的话,主要的 commits 不是在 main 分支上的。

@Shaun-Fong
Copy link

没错的,设计就是如此,取的就是某个分支的 commit

不然几个分支交叉一起,哪里还分得清

那能不能指定某个分支呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants