mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-28 01:07:09 +00:00
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;
|
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> {
|
pub fn path_for_inode(&self, mut inode: u64, include_root: bool) -> Result<PathBuf> {
|
||||||
|
|
Loading…
Reference in a new issue