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.

Entity Profile

Dependency Diagram

graph TD
  d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23["gitconfig_home_contents()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3["gitconfig_excludes_path()"]
  ea89f6ab_7071_247b_d90f_40bcb846cbc3 -->|calls| d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23
  42991d00_48e0_a4e5_be1a_ddc6505d4057["home_dir()"]
  d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23 -->|calls| 42991d00_48e0_a4e5_be1a_ddc6505d4057
  style d72b72ec_4f12_8a48_cfb1_6b9a0f37ac23 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)
}

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