aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/populate.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-14 02:07:26 +0000
committertv <tv@krebsco.de>2026-11-14 03:14:10 +0100
commit7dfacd6437fe361b59d142901cd8343266c50bd8 (patch)
tree6b46d874f37d798ed5a32aa22ecec49b22ab7920 /pkgs/populate/src/populate.rs
parentd926a367ba407859aa83f6ec69b39e10d3f0277e (diff)
populate: git sources reset the work tree only if it differs from the commit
Resetting a work tree that is at the commit already rewrites Git's index, after comparing each tracked file with it, which takes long for big work trees like nixpkgs, and comparing alone takes about a third of that. So git sources reset only if HEAD isn't the commit, or a tracked file differs from it, as git status tells, which also covers a lock file Nix created and staged. The git scenarios also change a tracked file, which redeploying resets.
Diffstat (limited to 'pkgs/populate/src/populate.rs')
0 files changed, 0 insertions, 0 deletions