Home / Function/ gitconfig_home_contents() — tailwindcss Function Reference

gitconfig_home_contents() — tailwindcss Function Reference

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

Function rust RustCore PreProcessors calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9887cd9e_c842_94cc_49b5_6064dad646e4["gitconfig_home_contents()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad["gitconfig_excludes_path()"]
  5331ff0c_3d47_bcab_69fd_d4c5653491ad -->|calls| 9887cd9e_c842_94cc_49b5_6064dad646e4
  7a5da90e_5d46_3203_b841_466df8436759["home_dir()"]
  9887cd9e_c842_94cc_49b5_6064dad646e4 -->|calls| 7a5da90e_5d46_3203_b841_466df8436759
  style 9887cd9e_c842_94cc_49b5_6064dad646e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 596–607

fn gitconfig_home_contents() -> Option<Vec<u8>> {
    let home = match home_dir() {
        None => return None,
        Some(home) => home,
    };
    let mut file = match File::open(home.join(".gitconfig")) {
        Err(_) => return None,
        Ok(file) => BufReader::new(file),
    };
    let mut contents = vec![];
    file.read_to_end(&mut contents).ok().map(|_| contents)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does gitconfig_home_contents() do?
gitconfig_home_contents() is a function in the tailwindcss codebase.
What does gitconfig_home_contents() call?
gitconfig_home_contents() calls 1 function(s): home_dir.
What calls gitconfig_home_contents()?
gitconfig_home_contents() is called by 1 function(s): gitconfig_excludes_path.

Analyze Your Own Codebase

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

Try Supermodel Free