Ignore .git
folder
This commit is contained in:
parent
19a2856780
commit
f3b663e375
1 changed files with 4 additions and 1 deletions
|
@ -306,7 +306,10 @@ impl Snapshot {
|
|||
}
|
||||
entry = parent_entry;
|
||||
}
|
||||
Ok(false)
|
||||
|
||||
relative_path.clear();
|
||||
relative_path.extend(components.iter().rev());
|
||||
Ok(relative_path.starts_with(".git"))
|
||||
}
|
||||
|
||||
pub fn path_for_inode(&self, mut inode: u64, include_root: bool) -> Result<PathBuf> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue