Bug: BLE hangs when using git grep in large repo

ble version:


Bash version:

5.0.17(1)-release (x86_64-pc-linux-gnu)

I use git grep alot, and whenever I go on to type git grep "… it just freezes for a solid 15-20 seconds doing I don’t know what. I think this maybe an awk script related issue in ble but I am not sure. One can probably best reproduce this after cloning the linux kernel and try to git grep something.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 24 (15 by maintainers)

Commits related to this issue

Most upvoted comments

GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) [Linux Mint 20.3], version 0.4.0-devel3+a144ffa807b4 (noarch)
bash-completion, version 2.10 (hash:b6da7f7edfc1c3c5196c86c81fb05fce96f83c03, 74550 bytes) (noarch)
starship, version 1.9.1 (rustc 1.62.0 (a8314ef7d 2022-06-27),stable-x86_64-unknown-linux-gnu 2022-07-19 10:03:48 +05:30)
locale: LANG=en_US.UTF-8
terminal: TERM=screen-256color wcwidth=12.1-west/15.0-2+ri, tmux:0 (84;0;0), unknown:- (0;276;0)
git --version
git version 2.25.1

Thank you for this information. I’ll later try setting up the same environment and see if the problem reproduces there. If I cannot reproduce the problem, I’ll ask more questions then.

If it is too much of a hassle I might just have to add a bleopt complete_auto_complete= to my bashrc or somehow disable git autocomplete . I am content with autocompletion of path names and file names and history based auto complete.

For the time being, if you are fine with turning off the custom git completion, you can put the following line somewhere in bashrc or blerc:

complete -F _minimal git