diff options
| author | tv <tv@krebsco.de> | 2026-12-02 01:35:46 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-02 16:33:24 +0100 |
| commit | c8fbbee154adfd7c312c7575c87fb25890168956 (patch) | |
| tree | 90ca3ff17d3501f28deb940adf7073a9fcb32da4 /tests/default.nix | |
| parent | 5874ad295e3ada5d6db880253c140c2107fdd655 (diff) | |
Looking for a .git below a work tree takes find walking all of it,
which takes longer than git status: for nixpkgs, 0.375 s and 0.275 s,
of 0.65 s per git source and run with nothing to do. Without
submodules, which the index tells, Git follows no .git below the work
tree, so the probe runs git status first. If it finds anything
untracked or ignored, the source gets delivered, and the git script
checks the work tree as before; else there's no .git below it, except
where Git doesn't list one, e.g. a .git file in a tracked directory,
which the next run with something to deliver refuses. With
submodules, the probe looks for nested .git first, as before.
git_problems is git_dir_problems and git_nested_problems now.
Diffstat (limited to 'tests/default.nix')
0 files changed, 0 insertions, 0 deletions
