Module project

Module project 

Source
Expand description

Project discovery and management utilities

This module handles finding project roots, git directories, and managing project-related operations.

Structs§

Project
Represents a git worktree project with its root and git directory

Functions§

clean_branch_name
Clean a branch name by removing refs/heads/ prefix
find_existing_worktree
Find an existing git directory (worktree or main repository)
find_git_directory
Find the .git directory within a project
find_git_directory_from
Find the .git directory starting from a specific path
find_project_root
Find the project root containing git-worktree-config.jsonc
find_project_root_from
Find the project root starting from a specific path
find_valid_git_directory
Find a valid (non-orphaned) git directory in the project
is_orphaned_worktree
Check if a path is an orphaned worktree