gpt4 book ai didi

eclipse - 我如何查看 EGit 中单个分支的历史记录以用于 eclipse

转载 作者:太空狗 更新时间:2023-10-29 12:51:19 25 4
gpt4 key购买 nike

当使用 EGit 插件在 eclipse 中审查代码时,在将其 merge 到 develop 分支之前,您切换到该分支并查看哪些文件随着该分支上的提交而更改。为此,我希望只看到对当前 checkout 分支的提交。使用 Team -> Show in History 时,我获得了所有分支的完整历史记录。

我如何才能只查看对当前 checkout 分支的提交,而不必搜索完整的 GIT 历史记录来查找相关提交?

使用像 Gerrit 这样的审查工具不是一种选择。

最佳答案

您可以在 History View 中查看过滤器按钮:

All Branches

http://wiki.eclipse.org/images/3/3b/Egit-0.9-history-view-allbranches.png

This toggle activates the "All Branches" mode.
By default, only those commits are shown in the commit log that can be reached from the currently checked out commit, i.e. the Commit Graph ends with the currently checked out commit and newer commits are not shown.
If this button is down, all commits will be shown in the commit log.
This is illustrated in the following picture from our example. The branch "beforeSplit" is currently checked out; by activating the toggle, the newer branches will become visible:

http://wiki.eclipse.org/images/c/c7/Egit-0.9-history-view-allbranchesToggle.png

你需要将它与:

"Additional Refs" toggles the visibility of certain Refs created during actions like fetch, rebase, merge, for example FETCH_HEAD, ORIGIN_HEAD... This can be helpful to remove clutter from the history view.

http://wiki.eclipse.org/images/0/0e/Egit-3.1-HistoryViewSettings.png

关于eclipse - 我如何查看 EGit 中单个分支的历史记录以用于 eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24628522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com