pub fn residue(&self, entry: &dyn Entry) -> Option<EntryResidue> {
        let candidate = CandidatePath::from(entry.root_relative_paths().1);
        self.program.residue(candidate)
    }
Gets the appropriate [`EntryResidue`] for the given [`Entry`].

Notably, this function returns [`EntryResidue::Tree`] if the [`Entry`]
matches an [exhaustive glob expression][`Program::is_exhaustive`],
such as `secret/**`.

[`Entry`]: crate::walk::Entry
[`EntryResidue`]: crate::walk::EntryResidue
[`EntryResidue::Tree`]: crate::walk::EntryResidue::Tree
[`Program::is_exhaustive`]: crate::Program::is_exhaustive
crates/turborepo-wax/src/walk/glob.rs