Skip to main content

WORK_TREE_FLOOR

Constant WORK_TREE_FLOOR 

Source
pub const WORK_TREE_FLOOR: Duration;
Expand description

How long a linked work tree has to have been left alone before it is offered at all.

A floor rather than a flag, and it is not the same decision as --older-than. That one is off by default because a floor nobody asked for silently keeps directories they chose; this one is on always because nobody chooses a work tree — the walk offers it, and a work tree somebody used this morning is not a thing to put in front of them however clean it is.

The two compose rather than competing: the planner applies --older-than to every target including these, so the effective floor is whichever is stricter, and there is still one clock.