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.

Function rust OxideEngine PreProcessors calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  662bbc12_76de_0efa_07ff_24954e9fa949["gitconfig_excludes_path()"]
  714a3a15_03d5_1e35_b535_53da70bce8eb["gitignore.rs"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|defined in| 714a3a15_03d5_1e35_b535_53da70bce8eb
  acc4becc_5fd3_4342_5416_06a04930a4c6["build_global()"]
  acc4becc_5fd3_4342_5416_06a04930a4c6 -->|calls| 662bbc12_76de_0efa_07ff_24954e9fa949
  1cae26c5_384f_72e4_0a95_87c81170a354["gitconfig_home_contents()"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|calls| 1cae26c5_384f_72e4_0a95_87c81170a354
  886269fe_559e_e467_669c_c33df5d322e7["parse_excludes_file()"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|calls| 886269fe_559e_e467_669c_c33df5d322e7
  358988a8_7a22_799d_ab92_59ffe64c07e6["gitconfig_xdg_contents()"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|calls| 358988a8_7a22_799d_ab92_59ffe64c07e6
  b44c6989_7044_4745_21e0_9d945b9cde19["excludes_file_default()"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|calls| b44c6989_7044_4745_21e0_9d945b9cde19
  style 662bbc12_76de_0efa_07ff_24954e9fa949 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()
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does gitconfig_excludes_path() do?
gitconfig_excludes_path() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is gitconfig_excludes_path() defined?
gitconfig_excludes_path() is defined in crates/ignore/src/gitignore.rs at line 578.
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