stops_at_git_dir() — tailwindcss Function Reference
Architecture documentation for the stops_at_git_dir() function in dir.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD d1236dfe_885b_ecab_237c_17b280158535["stops_at_git_dir()"] a558c8e1_3e7c_59d2_b113_bacec65ba188["dir.rs"] d1236dfe_885b_ecab_237c_17b280158535 -->|defined in| a558c8e1_3e7c_59d2_b113_bacec65ba188 676ae91e_26f7_45c2_da8a_606a73e1cfe1["tmpdir()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 676ae91e_26f7_45c2_da8a_606a73e1cfe1 9d41d3c4_3489_159c_a174_2df116fef35e["mkdirp()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 9d41d3c4_3489_159c_a174_2df116fef35e 1b1bc826_12bc_290a_5930_aa622cf5e9e9["path()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 1b1bc826_12bc_290a_5930_aa622cf5e9e9 60c43916_8d33_fa5f_02fb_07ed8b5cbe67["wfile()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 60c43916_8d33_fa5f_02fb_07ed8b5cbe67 767f0d1d_ed6b_2d39_ea17_d569e763e1dc["build()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 767f0d1d_ed6b_2d39_ea17_d569e763e1dc e98d4cd2_6820_4001_f485_b7bd568700a1["add_child()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| e98d4cd2_6820_4001_f485_b7bd568700a1 610d87f4_d454_8c17_656c_4616db7298c0["matched()"] d1236dfe_885b_ecab_237c_17b280158535 -->|calls| 610d87f4_d454_8c17_656c_4616db7298c0 style d1236dfe_885b_ecab_237c_17b280158535 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/dir.rs lines 1156–1176
fn stops_at_git_dir() {
// This tests that .gitignore files beyond a .git barrier aren't
// matched, but .ignore files are.
let td = tmpdir();
mkdirp(td.path().join(".git"));
mkdirp(td.path().join("foo/.git"));
wfile(td.path().join(".gitignore"), "foo");
wfile(td.path().join(".ignore"), "bar");
let ig0 = IgnoreBuilder::new().build();
let (ig1, err) = ig0.add_child(td.path());
assert!(err.is_none());
let (ig2, err) = ig1.add_child(ig1.path().join("foo"));
assert!(err.is_none());
assert!(ig1.matched("foo", false).is_ignore());
assert!(ig2.matched("foo", false).is_none());
assert!(ig1.matched("bar", false).is_ignore());
assert!(ig2.matched("bar", false).is_ignore());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does stops_at_git_dir() do?
stops_at_git_dir() is a function in the tailwindcss codebase, defined in crates/ignore/src/dir.rs.
Where is stops_at_git_dir() defined?
stops_at_git_dir() is defined in crates/ignore/src/dir.rs at line 1156.
What does stops_at_git_dir() call?
stops_at_git_dir() 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