我正在尝试创建仅在从特定分支合并时运行的合并后挂钩脚本。如何确定特定提交的分支更改的名称?
例如
if $from_specific_branch == 1 then
git diff --name-status HEAD@{1} HEAD "some_folder" |
while read st file; do
#skip deleted
if [ "$st" == 'D' ]; then continue; fi
# .. do something with those files
end