Home / Function/ gitignore() — tailwindcss Function Reference

gitignore() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8885fe7c_78bc_54cc_2fcf_afed5bd9d184["gitignore()"]
  98e117cc_30c1_84b6_f476_d3e9f85392b3["ov()"]
  8885fe7c_78bc_54cc_2fcf_afed5bd9d184 -->|calls| 98e117cc_30c1_84b6_f476_d3e9f85392b3
  3069e9ad_d841_5501_8b27_affdb3992c7b["matched()"]
  8885fe7c_78bc_54cc_2fcf_afed5bd9d184 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  style 8885fe7c_78bc_54cc_2fcf_afed5bd9d184 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/overrides.rs lines 230–240

    fn gitignore() {
        let ov = ov(&["/foo", "bar/*.rs", "baz/**"]);
        assert!(ov.matched("bar/lib.rs", false).is_whitelist());
        assert!(ov.matched("bar/wat/lib.rs", false).is_ignore());
        assert!(ov.matched("wat/bar/lib.rs", false).is_ignore());
        assert!(ov.matched("foo", false).is_whitelist());
        assert!(ov.matched("wat/foo", false).is_ignore());
        assert!(ov.matched("baz", false).is_ignore());
        assert!(ov.matched("baz/a", false).is_whitelist());
        assert!(ov.matched("baz/a/b", false).is_whitelist());
    }

Domain

Subdomains

Frequently Asked Questions

What does gitignore() do?
gitignore() is a function in the tailwindcss codebase.
What does gitignore() call?
gitignore() calls 2 function(s): matched, ov.

Analyze Your Own Codebase

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

Try Supermodel Free