Skip to main content

get_head_commit_hash_at

Function get_head_commit_hash_at 

Source
pub fn get_head_commit_hash_at(root: &ProjectRoot) -> Result<String>
Expand description

在指定项目根下获取当前 HEAD commit hash

git 仓库定位基准显式注入:不再依赖进程 cwd(watch 常驻进程的 cwd 漂移不再改变仓库解析目标)。