Home / Function/ gitignore_with_jj() — tailwindcss Function Reference

gitignore_with_jj() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6743beeb_06b1_7340_4d85_b02bb0ef3614["gitignore_with_jj()"]
  1d8e185d_2d17_16a2_e6da_31f5e5c71648["tmpdir()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| 1d8e185d_2d17_16a2_e6da_31f5e5c71648
  b23c536f_df64_0c16_7823_c6333e8bd192["mkdirp()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| b23c536f_df64_0c16_7823_c6333e8bd192
  a3791d58_6294_cb66_0418_5756e23761fd["path()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| a3791d58_6294_cb66_0418_5756e23761fd
  b531cfc0_8a2c_1d41_6f18_1d84e771a9ef["wfile()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| b531cfc0_8a2c_1d41_6f18_1d84e771a9ef
  386bbf62_59b6_b5e0_c202_c2ecee5729ec["build()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| 386bbf62_59b6_b5e0_c202_c2ecee5729ec
  7f3cd9fa_fc0e_11d8_c82c_d766c339923a["add_child()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| 7f3cd9fa_fc0e_11d8_c82c_d766c339923a
  22918057_f3e8_c59b_6372_a4375af46acd["matched()"]
  6743beeb_06b1_7340_4d85_b02bb0ef3614 -->|calls| 22918057_f3e8_c59b_6372_a4375af46acd
  style 6743beeb_06b1_7340_4d85_b02bb0ef3614 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 977–987

    fn gitignore_with_jj() {
        let td = tmpdir();
        mkdirp(td.path().join(".jj"));
        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());
    }

Subdomains

Frequently Asked Questions

What does gitignore_with_jj() do?
gitignore_with_jj() is a function in the tailwindcss codebase.
What does gitignore_with_jj() call?
gitignore_with_jj() calls 7 function(s): add_child, build, matched, mkdirp, path, tmpdir, wfile.

Analyze Your Own Codebase

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

Try Supermodel Free