Skip to main content

Module git

Module git 

Source
Expand description

Git 工具模块

提供 Git 状态检测、分支信息、安全检查等功能

Structs§

GitInfo
Git 完整信息
GitSafety
Git 安全检查工具类
GitStatus
Git 状态
GitUtils
Git 工具类
PushStatus
推送状态
SafetyCheckResult
安全检查结果
SensitiveFilesCheck
敏感文件检查结果

Functions§

get_current_branch
获取当前分支名
get_default_branch
获取默认分支名
get_git_info
获取完整的 Git 信息
get_git_status
获取 Git 状态
is_dangerous_command
检查是否是危险的 Git 命令(便捷函数)
is_git_repository
检查是否在 Git 仓库中