Functions§
- find_
repo_ root - Find the repository root from a given path
- get_
control_ repo_ root - Get the control repository root (main repo for worktrees, repo root otherwise) This is the authoritative location for .thoughts/config.json and .thoughts-data
- get_
current_ branch - Get the current branch name, or “detached” if in detached HEAD state
- get_
current_ control_ repo_ root - Get the control repository root for the current directory
- get_
current_ repo - Get the current repository path, starting from current directory
- get_
main_ repo_ for_ worktree - Get the main repository path for a worktree
- get_
remote_ url - Get the remote URL for a git repository
- init_
repo - Initialize a new git repository
- is_
git_ repo - Check if a path is a git repository
- is_
worktree - Check if a directory is a git worktree