Module git

Module git 

Source
Expand description

Git branch tracking utilities for mi6.

This module provides functionality to:

  • Capture the current git branch from a working directory
  • Parse branch names to extract PR/issue numbers
  • Detect git branch-changing commands in shell commands

Structs§

GitBranchInfo
Result of parsing a git branch name for PR/issue numbers.

Functions§

get_branch_info
Get git branch info for a directory.
get_current_branch
Get the current git branch for a directory.
is_branch_changing_command
Check if a shell command might change the git branch.
parse_branch_info
Parse a branch name to extract PR and issue numbers.