简体   繁体   English

不重要的分支卡在我的tig视图的顶部

[英]Unimportant branches are stuck at the top of my tig view

I am using tig version 2.2.1, and for some reason tig decides to show me a couple of unimportant branches, in addition to the branch I am currently working on. 我正在使用tig版本2.2.1,出于某种原因,tig决定除我当前正在使用的分支外,还向我展示几个不重要的分支。

The two additional branches has nothing to do with my currently working branch, they were never merged to each other or anything like that. 另外两个分支与我当前正在工作的分支无关,它们从未相互合并或类似的事情。

When I use git log --graph everything seems perfectly fine, I can't understand what makes tig go haywire. 当我使用git log --graph一切似乎都很好,我不明白是什么使git log --graph

Tig's main view which shows commits uses the currently checked out branch, but will show other branch names if those branches are a subset of the current branch's history. Tig的显示提交的主视图使用当前已签出的分支,但如果这些分支是当前分支历史记录的子集,则将显示其他分支名称。 The associated git-log commit would be closer to: 相关的git-log提交将更接近:

git log --graph --decorate

It is possible to disabled the display of branch names by putting the following in ~/.tigrc : 通过将以下内容放入~/.tigrc可以禁用分支名称的显示:

set main-view-commit-title-refs = false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM