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
  51919a02_0852_3fd1_03df_8ad058402ab5["gitignore()"]
  a5cba1a8_a3c5_ad4e_86ce_19011ecc045b["ov()"]
  51919a02_0852_3fd1_03df_8ad058402ab5 -->|calls| a5cba1a8_a3c5_ad4e_86ce_19011ecc045b
  db737829_f91d_719c_4c7f_a4130e5a1912["matched()"]
  51919a02_0852_3fd1_03df_8ad058402ab5 -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  style 51919a02_0852_3fd1_03df_8ad058402ab5 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());
    }

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