Showing the changes to git-path/src (1 of 12 files). Show all
Unified · Split
| @@ -18,13 +18,13 @@ pub enum Error { · 17 unmodified lines | |||
| 18 | pub const MAX_SYMLINKS: u8 = 32; | 18 | pub const MAX_SYMLINKS: u8 = 32; |
| 19 | 19 | ||
| 20 | pub(crate) mod function { | 20 | pub(crate) mod function { |
| 21 | use crate::realpath::MAX_SYMLINKS; | ||
| 22 | use std::path::{ | 21 | use std::path::{ |
| 23 | Component::{CurDir, Normal, ParentDir, Prefix, RootDir}, | 22 | Component::{CurDir, Normal, ParentDir, Prefix, RootDir}, |
| 24 | Path, PathBuf, | 23 | Path, PathBuf, |
| 25 | }; | 24 | }; |
| 26 | 25 | ||
| 27 | use super::Error; | 26 | use super::Error; |
| 27 | use crate::realpath::MAX_SYMLINKS; | ||
| 28 | 28 | ||
| 29 | /// Check each component of `path` and see if it is a symlink. If so, resolve it. | 29 | /// Check each component of `path` and see if it is a symlink. If so, resolve it. |
| 30 | /// Do not fail for non-existing components, but assume these are as is. | 30 | /// Do not fail for non-existing components, but assume these are as is. |