Skip to main content

GIT_DIR_NAME

Constant GIT_DIR_NAME 

Source
pub const GIT_DIR_NAME: &str = ".git";
Expand description

The directory-entry name that marks a git repository root — either an ordinary clone’s .git/ directory, or a linked worktree’s .git file (a gitdir: pointer, e.g. how this repository’s own .claude/worktrees/* are laid out). A single source of truth for that name (issue #1435): before this constant existed, IGNORED_DIR_NAMES below and brink-project-config’s find_config walk-up bound each hardcoded their own ".git" literal, free to drift apart.