changed_templates: explain what has been done

This commit is contained in:
Đoàn Trần Công Danh 2022-09-16 09:18:27 +07:00 committed by Đoàn Trần Công Danh
parent 7510b96218
commit 28c485ecfc
1 changed files with 2 additions and 0 deletions

View File

@ -6,7 +6,9 @@ PATH="/usr/libexec/chroot-git:$PATH"
tip="$(git rev-list -1 --parents HEAD)"
case "$tip" in
# This is a merge commit, pick last parent
*" "*" "*) tip="${tip##* }" ;;
# This is a non-merge commit, pick itself
*) tip="${tip%% *}" ;;
esac