Home / Function/ gitignore_allowed_no_git() — tailwindcss Function Reference

gitignore_allowed_no_git() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6cc3368c_e460_b250_467f_0edb5a1eea01["gitignore_allowed_no_git()"]
  510a4ebc_9a2a_672a_2d6d_a56dabd1134b["dir.rs"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|defined in| 510a4ebc_9a2a_672a_2d6d_a56dabd1134b
  0b6611f3_9e1d_0a3b_157b_ef9bb2bc3d89["tmpdir()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| 0b6611f3_9e1d_0a3b_157b_ef9bb2bc3d89
  fe4c91f2_5b95_b103_1edb_19b3ea6da080["wfile()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| fe4c91f2_5b95_b103_1edb_19b3ea6da080
  195d465d_cb01_6c11_b964_d3f792d97f6f["path()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| 195d465d_cb01_6c11_b964_d3f792d97f6f
  5a0cfc2b_1230_c706_8ddc_114bd84ae456["require_git()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| 5a0cfc2b_1230_c706_8ddc_114bd84ae456
  ea4007ac_a311_c454_45f6_4e3ba7192b1a["build()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| ea4007ac_a311_c454_45f6_4e3ba7192b1a
  5f1e446c_b1a6_cd2c_2707_77480f9eaad4["add_child()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| 5f1e446c_b1a6_cd2c_2707_77480f9eaad4
  df4238ce_ff67_ee56_17ce_54ac1d2fa297["matched()"]
  6cc3368c_e460_b250_467f_0edb5a1eea01 -->|calls| df4238ce_ff67_ee56_17ce_54ac1d2fa297
  style 6cc3368c_e460_b250_467f_0edb5a1eea01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 1002–1014

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

        let (ig, err) = IgnoreBuilder::new()
            .require_git(false)
            .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

Frequently Asked Questions

What does gitignore_allowed_no_git() do?
gitignore_allowed_no_git() is a function in the tailwindcss codebase, defined in crates/ignore/src/dir.rs.
Where is gitignore_allowed_no_git() defined?
gitignore_allowed_no_git() is defined in crates/ignore/src/dir.rs at line 1002.
What does gitignore_allowed_no_git() call?
gitignore_allowed_no_git() calls 7 function(s): add_child, build, matched, path, require_git, tmpdir, wfile.

Analyze Your Own Codebase

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

Try Supermodel Free