Module detector

Module detector 

Source
Expand description

Git context detection implementation.

StructsΒ§

GitContext
Git repository context information.

FunctionsΒ§

detect_branch πŸ”’
Detects the current branch name.
detect_project_id πŸ”’
Detects the project ID from a repository.
sanitize_git_url πŸ”’
Sanitizes a git remote URL by removing credentials and normalizing format.
sanitize_http_url πŸ”’
Sanitizes an HTTP/HTTPS/Git protocol URL.
sanitize_ssh_url πŸ”’
Sanitizes an SSH-format URL (after stripping β€œgit@” prefix).