Skip to main content

exclude_tracker_paths

Function exclude_tracker_paths 

Source
pub fn exclude_tracker_paths(
    workspace: &Utf8Path,
    paths: &[Utf8PathBuf],
) -> Result<()>
Expand description

Keep tracker-owned paths out of the workspace clone’s Git by writing them to .git/info/exclude.

newgit tracker track appends to the store’s .gitignore, but that edit is uncommitted until the user commits it — so a clone would not inherit the rule, and a lane’s content would sit in the workspace as ordinary untracked files that git add -A sweeps into source history. Audience only keeps content out of Git by construction if the construction reaches every workspace.

info/exclude rather than the workspace’s .gitignore: the latter is tracked content owned by source, and newgit does not rewrite the user’s committed files. This is Git’s own per-clone local-ignore mechanism, and there is no plumbing command that writes it.