Home / Function/ gitignore() — tailwindcss Function Reference

gitignore() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2199989e_5c88_1720_696b_819ea86aecd8["gitignore()"]
  e8c725dd_a885_9529_0af1_4e4171753fc6["tmpdir()"]
  2199989e_5c88_1720_696b_819ea86aecd8 -->|calls| e8c725dd_a885_9529_0af1_4e4171753fc6
  a870695d_932a_bfd4_fe92_a94ee09973bb["mkdirp()"]
  2199989e_5c88_1720_696b_819ea86aecd8 -->|calls| a870695d_932a_bfd4_fe92_a94ee09973bb
  65b715d0_a042_86f6_24a2_ee2f89075c41["wfile()"]
  2199989e_5c88_1720_696b_819ea86aecd8 -->|calls| 65b715d0_a042_86f6_24a2_ee2f89075c41
  5fe9aa4d_d793_b1a2_d187_4991d92c8d6e["assert_paths()"]
  2199989e_5c88_1720_696b_819ea86aecd8 -->|calls| 5fe9aa4d_d793_b1a2_d187_4991d92c8d6e
  006bb599_d40b_f53b_44c7_57dfd4237729["path()"]
  2199989e_5c88_1720_696b_819ea86aecd8 -->|calls| 006bb599_d40b_f53b_44c7_57dfd4237729
  style 2199989e_5c88_1720_696b_819ea86aecd8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 2190–2205

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

        assert_paths(
            td.path(),
            &WalkBuilder::new(td.path()),
            &["bar", "a", "a/bar"],
        );
    }

Domain

Subdomains

Frequently Asked Questions

What does gitignore() do?
gitignore() is a function in the tailwindcss codebase.
What does gitignore() call?
gitignore() calls 5 function(s): assert_paths, mkdirp, path, tmpdir, wfile.

Analyze Your Own Codebase

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

Try Supermodel Free