RJ4UL56TQT6LYME46FAI65RNX3T5AG3KGBJVLSK363JDYDZ5F4JAC
3SJ3DJNFDA665FS5RLD3HA5S2RKMB5GTA56MBF77YSOPCOHTFMYAC
4VWXL6KQGYGDUQRCVJCEVIV6CKJSEIYDX4YF33OX6EDNKJNEGD2AC
TPQHDDNCTXOCKCPI2ET24OKEVR4N27IMI3SUBII7YI7BEGRXGEMQC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
4OCC6D42GZYRDLH3NSKXMJTRKXP7UZ6Z3YNGCNUT7NT6WBDBCBIAC
3J6IK4W2BA4RJJQYXZOQFU4AQ3WJIM3TUXUNNBIQ6M6TS2JSHT6QC
}
/// Returns whether `path` is eligible to be tracked in the repository under `root`.
pub fn filter_path(
root: &CanonicalPath,
path: &CanonicalPath,
is_dir: bool,
use_ignore: bool,
) -> bool {
if !path.starts_with(root) {
return false;
}
if use_ignore && !filter_ignore(root, path, is_dir) {
return false;
}
true
if !force {
if !filter_ignore(
&repo_path.as_canonical_path(),
&full.as_canonical_path(),
meta.is_dir(),
) {
return Ok(Untracked {
join: None,
receiver,
});
}
if !filter_path(
&repo_path.as_canonical_path(),
&full.as_canonical_path(),
meta.is_dir(),
!force,
) {
return Ok(Untracked {
join: None,
receiver,
});