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

Entity Profile

Dependency Diagram

graph TD
  755de5e1_846f_a08b_35fd_7170ec4a9a5e["gitconfig_home_contents()"]
  61377720_4557_3c63_7653_b6ed73e2face["gitignore.rs"]
  755de5e1_846f_a08b_35fd_7170ec4a9a5e -->|defined in| 61377720_4557_3c63_7653_b6ed73e2face
  2f610908_1425_7521_083b_1eab5c1ed5ad["gitconfig_excludes_path()"]
  2f610908_1425_7521_083b_1eab5c1ed5ad -->|calls| 755de5e1_846f_a08b_35fd_7170ec4a9a5e
  65945635_593e_254f_3619_dc8746a10a79["home_dir()"]
  755de5e1_846f_a08b_35fd_7170ec4a9a5e -->|calls| 65945635_593e_254f_3619_dc8746a10a79
  style 755de5e1_846f_a08b_35fd_7170ec4a9a5e 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