Home / Function/ gitconfig_excludes_path() — tailwindcss Function Reference

gitconfig_excludes_path() — tailwindcss Function Reference

Architecture documentation for the gitconfig_excludes_path() function in gitignore.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  ea89f6ab_7071_247b_d90f_40bcb846cbc3["gitconfig_excludes_path()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f["build_global()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| ea89f6ab_7071_247b_d90f_40bcb846cbc3
  d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23["gitconfig_home_contents()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3 -->|calls| d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23
  5f89b71b_214a_6d50_c5a8_016810afc389["parse_excludes_file()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3 -->|calls| 5f89b71b_214a_6d50_c5a8_016810afc389
  e0ba1c7d_27a6_033d_fe3d_4fb82fcc37b5["gitconfig_xdg_contents()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3 -->|calls| e0ba1c7d_27a6_033d_fe3d_4fb82fcc37b5
  99056532_5d84_6416_6078_f20916194b19["excludes_file_default()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3 -->|calls| 99056532_5d84_6416_6078_f20916194b19
  style ea89f6ab_7071_247b_d90f_40bcb846cbc3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 578–592

pub fn gitconfig_excludes_path() -> Option<PathBuf> {
    // git supports $HOME/.gitconfig and $XDG_CONFIG_HOME/git/config. Notably,
    // both can be active at the same time, where $HOME/.gitconfig takes
    // precedent. So if $HOME/.gitconfig defines a `core.excludesFile`, then
    // we're done.
    match gitconfig_home_contents().and_then(|x| parse_excludes_file(&x)) {
        Some(path) => return Some(path),
        None => {}
    }
    match gitconfig_xdg_contents().and_then(|x| parse_excludes_file(&x)) {
        Some(path) => return Some(path),
        None => {}
    }
    excludes_file_default()
}

Subdomains

Called By

Frequently Asked Questions

What does gitconfig_excludes_path() do?
gitconfig_excludes_path() is a function in the tailwindcss codebase.
What does gitconfig_excludes_path() call?
gitconfig_excludes_path() calls 4 function(s): excludes_file_default, gitconfig_home_contents, gitconfig_xdg_contents, parse_excludes_file.
What calls gitconfig_excludes_path()?
gitconfig_excludes_path() is called by 1 function(s): build_global.

Analyze Your Own Codebase

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

Try Supermodel Free