Function repo_workdir_name

Source
pub fn repo_workdir_name(repo: &Repository) -> Option<String>
Expand description

Returns the working-directory name of a Git repository.

This is the basename of the repository’s work tree (e.g. claude-src for a repo checked out at /home/user/src/claude-src). It is the stable identity used for the exclude list, independent of which subdirectory a commit is made from.

§Returns

  • Some(name) - The repository’s working-directory basename
  • None - The repository is bare (no work tree) or the path has no basename