Home / Function/ gitignore() — tailwindcss Function Reference

gitignore() — tailwindcss Function Reference

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

Function rust RustCore FileScanner calls 8 called by 1

Entity Profile

Dependency Diagram

graph TD
  fbdeb509_eba4_bae9_2ce8_5c766d404493["gitignore()"]
  b9524cee_1c72_2941_5c1e_b0cdee3aa44a["gitignore()"]
  b9524cee_1c72_2941_5c1e_b0cdee3aa44a -->|calls| fbdeb509_eba4_bae9_2ce8_5c766d404493
  b9524cee_1c72_2941_5c1e_b0cdee3aa44a["gitignore()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| b9524cee_1c72_2941_5c1e_b0cdee3aa44a
  c17be58e_dd6a_a37a_33c2_a24a331f4c38["tmpdir()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| c17be58e_dd6a_a37a_33c2_a24a331f4c38
  fc6f623a_c04e_5aba_7a76_90a8283e782b["mkdirp()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| fc6f623a_c04e_5aba_7a76_90a8283e782b
  0a625c2b_b1dd_2da6_7dda_34ff725be14b["path()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| 0a625c2b_b1dd_2da6_7dda_34ff725be14b
  88df5ea7_731b_9e65_ef42_3f4f769562ec["wfile()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| 88df5ea7_731b_9e65_ef42_3f4f769562ec
  f9057141_74ef_29d7_b851_a214bdc6bfa9["build()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| f9057141_74ef_29d7_b851_a214bdc6bfa9
  7d9549d0_d5cc_b7c3_b367_0249f8430d02["add_child()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| 7d9549d0_d5cc_b7c3_b367_0249f8430d02
  3d475977_d06e_4912_978d_07df5c71fed8["matched()"]
  fbdeb509_eba4_bae9_2ce8_5c766d404493 -->|calls| 3d475977_d06e_4912_978d_07df5c71fed8
  style fbdeb509_eba4_bae9_2ce8_5c766d404493 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 964–974

    fn gitignore() {
        let td = tmpdir();
        mkdirp(td.path().join(".git"));
        wfile(td.path().join(".gitignore"), "foo\n!bar");

        let (ig, err) = IgnoreBuilder::new().build().add_child(td.path());
        assert!(err.is_none());
        assert!(ig.matched("foo", false).is_ignore());
        assert!(ig.matched("bar", false).is_whitelist());
        assert!(ig.matched("baz", false).is_none());
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does gitignore() do?
gitignore() is a function in the tailwindcss codebase.
What does gitignore() call?
gitignore() calls 8 function(s): add_child, build, gitignore, matched, mkdirp, path, tmpdir, wfile.
What calls gitignore()?
gitignore() is called by 1 function(s): gitignore.

Analyze Your Own Codebase

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

Try Supermodel Free