get_or_set_current_dir() — tailwindcss Function Reference
Architecture documentation for the get_or_set_current_dir() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 93d52820_2935_3539_0249_3548606f967a["get_or_set_current_dir()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048["build()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 93d52820_2935_3539_0249_3548606f967a 58d7e4fa_9d54_5bcd_7f67_efc560bdad7c["build_parallel()"] 58d7e4fa_9d54_5bcd_7f67_efc560bdad7c -->|calls| 93d52820_2935_3539_0249_3548606f967a f4964aa2_53a1_cae0_78b3_2ff3218faae7["add_ignore()"] f4964aa2_53a1_cae0_78b3_2ff3218faae7 -->|calls| 93d52820_2935_3539_0249_3548606f967a 62b2e6fc_c302_c042_c940_6296d99a4d41["current_dir()"] 93d52820_2935_3539_0249_3548606f967a -->|calls| 62b2e6fc_c302_c042_c940_6296d99a4d41 style 93d52820_2935_3539_0249_3548606f967a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1000–1018
fn get_or_set_current_dir(&self) -> Option<&Path> {
let result = self.global_gitignores_relative_to.get_or_init(|| {
let result = std::env::current_dir().map_err(Arc::new);
match result {
Ok(ref path) => {
log::trace!("automatically discovered CWD: {}", path.display());
}
Err(ref err) => {
log::debug!(
"failed to find CWD \
(global gitignores will be ignored): \
{err}"
);
}
}
result
});
result.as_ref().ok().map(|path| &**path)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does get_or_set_current_dir() do?
get_or_set_current_dir() is a function in the tailwindcss codebase.
What does get_or_set_current_dir() call?
get_or_set_current_dir() calls 1 function(s): current_dir.
What calls get_or_set_current_dir()?
get_or_set_current_dir() is called by 3 function(s): add_ignore, build, build_parallel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free