mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-21 23:11:17 -03:00
This uses `git ls-files`, which has a simpler format (just the filenames on separate lines), in order to print the untracked files. This allows us to skip them in the `git status` call, which reduces the output a lot and removes two `string match`. In a repository with over half a million files (my home directory, if I made it one), this improves time by a third (12s to 8s). In a smaller repo (fish-shell) it's barely measurable.