build_global() — tailwindcss Function Reference
Architecture documentation for the build_global() function in gitignore.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD acc4becc_5fd3_4342_5416_06a04930a4c6["build_global()"] 714a3a15_03d5_1e35_b535_53da70bce8eb["gitignore.rs"] acc4becc_5fd3_4342_5416_06a04930a4c6 -->|defined in| 714a3a15_03d5_1e35_b535_53da70bce8eb d1a85fd9_7faa_1ee4_2e29_f80bbd82ea14["global()"] d1a85fd9_7faa_1ee4_2e29_f80bbd82ea14 -->|calls| acc4becc_5fd3_4342_5416_06a04930a4c6 aeb4abcb_3f26_f670_bc29_d72a919dc43b["add()"] acc4becc_5fd3_4342_5416_06a04930a4c6 -->|calls| aeb4abcb_3f26_f670_bc29_d72a919dc43b 088ec752_002a_6e18_595e_6a8f31aa2bc5["build()"] acc4becc_5fd3_4342_5416_06a04930a4c6 -->|calls| 088ec752_002a_6e18_595e_6a8f31aa2bc5 662bbc12_76de_0efa_07ff_24954e9fa949["gitconfig_excludes_path()"] acc4becc_5fd3_4342_5416_06a04930a4c6 -->|calls| 662bbc12_76de_0efa_07ff_24954e9fa949 1eb25184_8c39_1e77_3541_7b736d612342["empty()"] acc4becc_5fd3_4342_5416_06a04930a4c6 -->|calls| 1eb25184_8c39_1e77_3541_7b736d612342 style acc4becc_5fd3_4342_5416_06a04930a4c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/gitignore.rs lines 365–384
pub fn build_global(mut self) -> (Gitignore, Option<Error>) {
match gitconfig_excludes_path() {
None => (Gitignore::empty(), None),
Some(path) => {
if !path.is_file() {
(Gitignore::empty(), None)
} else {
let mut errs = PartialErrorBuilder::default();
errs.maybe_push_ignore_io(self.add(path));
match self.build() {
Ok(gi) => (gi, errs.into_error_option()),
Err(err) => {
errs.push(err);
(Gitignore::empty(), errs.into_error_option())
}
}
}
}
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does build_global() do?
build_global() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is build_global() defined?
build_global() is defined in crates/ignore/src/gitignore.rs at line 365.
What does build_global() call?
build_global() calls 4 function(s): add, build, empty, gitconfig_excludes_path.
What calls build_global()?
build_global() is called by 1 function(s): global.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free