pub fn analyze_git_diff(
repo_path: &Path,
last_commit_hash: Option<&str>,
) -> Result<GitDiffResult>Expand description
分析 Git diff,返回变更的文件列表
使用 git2 库分析 last_commit_hash(如有)与 HEAD 的差异。 无 Git 历史或 last_commit_hash 为 None 时退化为 HEAD^。 无父 commit 时返回空结果。