git_exclude() — tailwindcss Function Reference
Architecture documentation for the git_exclude() function in dir.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 81e66cc6_ada0_e6b7_1128_6229de35f490["git_exclude()"] e6623208_8be9_134f_6cbf_88ffa79c3444["git_exclude()"] e6623208_8be9_134f_6cbf_88ffa79c3444 -->|calls| 81e66cc6_ada0_e6b7_1128_6229de35f490 e6623208_8be9_134f_6cbf_88ffa79c3444["git_exclude()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| e6623208_8be9_134f_6cbf_88ffa79c3444 1d8e185d_2d17_16a2_e6da_31f5e5c71648["tmpdir()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| 1d8e185d_2d17_16a2_e6da_31f5e5c71648 b23c536f_df64_0c16_7823_c6333e8bd192["mkdirp()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| b23c536f_df64_0c16_7823_c6333e8bd192 a3791d58_6294_cb66_0418_5756e23761fd["path()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| a3791d58_6294_cb66_0418_5756e23761fd b531cfc0_8a2c_1d41_6f18_1d84e771a9ef["wfile()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| b531cfc0_8a2c_1d41_6f18_1d84e771a9ef 386bbf62_59b6_b5e0_c202_c2ecee5729ec["build()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| 386bbf62_59b6_b5e0_c202_c2ecee5729ec 7f3cd9fa_fc0e_11d8_c82c_d766c339923a["add_child()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| 7f3cd9fa_fc0e_11d8_c82c_d766c339923a 22918057_f3e8_c59b_6372_a4375af46acd["matched()"] 81e66cc6_ada0_e6b7_1128_6229de35f490 -->|calls| 22918057_f3e8_c59b_6372_a4375af46acd style 81e66cc6_ada0_e6b7_1128_6229de35f490 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/dir.rs lines 951–961
fn git_exclude() {
let td = tmpdir();
mkdirp(td.path().join(".git/info"));
wfile(td.path().join(".git/info/exclude"), "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
Source
Frequently Asked Questions
What does git_exclude() do?
git_exclude() is a function in the tailwindcss codebase.
What does git_exclude() call?
git_exclude() calls 8 function(s): add_child, build, git_exclude, matched, mkdirp, path, tmpdir, wfile.
What calls git_exclude()?
git_exclude() is called by 1 function(s): git_exclude.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free