Home / Function/ global() — tailwindcss Function Reference

global() — tailwindcss Function Reference

Architecture documentation for the global() function in gitignore.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  cce314a9_6cbb_c198_0249_7aa77a6cb089["global()"]
  61377720_4557_3c63_7653_b6ed73e2face["gitignore.rs"]
  cce314a9_6cbb_c198_0249_7aa77a6cb089 -->|defined in| 61377720_4557_3c63_7653_b6ed73e2face
  754854aa_e099_3833_b439_120751057d45["build_global()"]
  cce314a9_6cbb_c198_0249_7aa77a6cb089 -->|calls| 754854aa_e099_3833_b439_120751057d45
  7fb7392f_63e5_8cf1_5936_83492336182d["empty()"]
  cce314a9_6cbb_c198_0249_7aa77a6cb089 -->|calls| 7fb7392f_63e5_8cf1_5936_83492336182d
  style cce314a9_6cbb_c198_0249_7aa77a6cb089 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 130–135

    pub fn global() -> (Gitignore, Option<Error>) {
        match std::env::current_dir() {
            Ok(cwd) => GitignoreBuilder::new(cwd).build_global(),
            Err(err) => (Gitignore::empty(), Some(err.into())),
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does global() do?
global() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is global() defined?
global() is defined in crates/ignore/src/gitignore.rs at line 130.
What does global() call?
global() calls 2 function(s): build_global, empty.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free