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
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b["gitignore()"]
  be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5["tmpdir()"]
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b -->|calls| be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5
  6be2bc5c_2422_2c09_8c7a_3e92060e5ad1["mkdirp()"]
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b -->|calls| 6be2bc5c_2422_2c09_8c7a_3e92060e5ad1
  e3491efe_c25e_6614_b6f7_1a3834b9d724["wfile()"]
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b -->|calls| e3491efe_c25e_6614_b6f7_1a3834b9d724
  03f45cf3_87f6_e91f_bef8_2f9380aab005["assert_paths()"]
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b -->|calls| 03f45cf3_87f6_e91f_bef8_2f9380aab005
  5a41a98a_774e_c950_dcbd_cc7fe1960b89["path()"]
  6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b -->|calls| 5a41a98a_774e_c950_dcbd_cc7fe1960b89
  style 6cd8e06e_ec3d_b7d4_7b6f_3e850b8f496b 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"],
        );
    }

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