Skip to main content

EPHEMERAL_REPO_PREFIXES

Constant EPHEMERAL_REPO_PREFIXES 

Source
pub const EPHEMERAL_REPO_PREFIXES: &[&str];
Expand description

Repository directory names that mean the same thing, wherever they are.

The ancestor list above only catches a throwaway clone that a tool was polite enough to put under a directory called cache. These prefixes catch the clone itself: temp_git_1787245534782 is a checkout some plugin manager made, named after the millisecond it made it, and it will be gone before the next prune pass. Registering one strands a dead entry in the registry the moment the tool cleans up after itself.

A prefix rather than a substring, and deliberately narrow: temporary-fixes and my-temp-git-notes are real repositories somebody named badly, and refusing to track a real workspace is the worse of the two errors.