__git_ps1 extremely slow in kernel tree

前端 未结 6 1174
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 03:59
$ time __git_ps1
((v2.6.33.4))
real    0m1.467s
user    0m0.864s
sys  0m0.564s

It\'s making my prompt unusable; on the other hand, though, it\'s too us

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 04:59

    how about updating git-completion.bash to the latest from http://git.kernel.org/?p=git/git.git;a=tree;f=contrib/completion;h=525eddf7e4c03acc7b3f01f09f45515cf63cd9b4;hb=master

    Is the problem local to this kernel repo or general?

    Does git fsck --full reveal anything?

提交回复
热议问题