mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 08:51:14 -03:00
As mentioned in the previous few commits and in #11535, running "set fish_complete_path ..." and "complete -C 'git ...'" may result in "share/completions/git.fish" being loaded multiple times. This is usually fine because fish internally erases all cached completions whenever fish_complete_path changes. Unfortunately there is at least global variable that grows each time git.fish is sourced. This doesn't make a functional difference but it does slow down completions. Fix that by resetting the variable at load time.