Expand description
Git 工具模块
提供 Git 状态检测、分支信息、安全检查等功能
Structs§
- GitInfo
- Git 完整信息
- GitSafety
- Git 安全检查工具类
- GitStatus
- Git 状态
- GitUtils
- Git 工具类
- Push
Status - 推送状态
- Safety
Check Result - 安全检查结果
- Sensitive
Files Check - 敏感文件检查结果
Functions§
- get_
current_ branch - 获取当前分支名
- get_
default_ branch - 获取默认分支名
- get_
git_ info - 获取完整的 Git 信息
- get_
git_ status - 获取 Git 状态
- is_
dangerous_ command - 检查是否是危险的 Git 命令(便捷函数)
- is_
git_ repository - 检查是否在 Git 仓库中