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 RustCore MachineExtractor calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  5331ff0c_3d47_bcab_69fd_d4c5653491ad["gitconfig_excludes_path()"]
  4a40236e_7852_7d42_0756_529c9da2f5ba["build_global()"]
  4a40236e_7852_7d42_0756_529c9da2f5ba -->|calls| 5331ff0c_3d47_bcab_69fd_d4c5653491ad
  9887cd9e_c842_94cc_49b5_6064dad646e4["gitconfig_home_contents()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad -->|calls| 9887cd9e_c842_94cc_49b5_6064dad646e4
  74b7aefc_45cf_a852_1f73_9331b584548c["parse_excludes_file()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad -->|calls| 74b7aefc_45cf_a852_1f73_9331b584548c
  28fb2f68_5dec_15a7_d49e_37ac627e2bd1["gitconfig_xdg_contents()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad -->|calls| 28fb2f68_5dec_15a7_d49e_37ac627e2bd1
  2efb2067_00b9_e5dd_1f84_d066ab6ff3a8["excludes_file_default()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad -->|calls| 2efb2067_00b9_e5dd_1f84_d066ab6ff3a8
  style 5331ff0c_3d47_bcab_69fd_d4c5653491ad 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.
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