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 OxideEngine Scanner calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  1cae26c5_384f_72e4_0a95_87c81170a354["gitconfig_home_contents()"]
  714a3a15_03d5_1e35_b535_53da70bce8eb["gitignore.rs"]
  1cae26c5_384f_72e4_0a95_87c81170a354 -->|defined in| 714a3a15_03d5_1e35_b535_53da70bce8eb
  662bbc12_76de_0efa_07ff_24954e9fa949["gitconfig_excludes_path()"]
  662bbc12_76de_0efa_07ff_24954e9fa949 -->|calls| 1cae26c5_384f_72e4_0a95_87c81170a354
  7b3912af_dde1_0fc2_6a49_16cac51e4370["home_dir()"]
  1cae26c5_384f_72e4_0a95_87c81170a354 -->|calls| 7b3912af_dde1_0fc2_6a49_16cac51e4370
  style 1cae26c5_384f_72e4_0a95_87c81170a354 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, defined in crates/ignore/src/gitignore.rs.
Where is gitconfig_home_contents() defined?
gitconfig_home_contents() is defined in crates/ignore/src/gitignore.rs at line 596.
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