changed_templates: explain what has been done
This commit is contained in:
parent
7510b96218
commit
28c485ecfc
1 changed files with 2 additions and 0 deletions
|
@ -6,7 +6,9 @@ PATH="/usr/libexec/chroot-git:$PATH"
|
||||||
|
|
||||||
tip="$(git rev-list -1 --parents HEAD)"
|
tip="$(git rev-list -1 --parents HEAD)"
|
||||||
case "$tip" in
|
case "$tip" in
|
||||||
|
# This is a merge commit, pick last parent
|
||||||
*" "*" "*) tip="${tip##* }" ;;
|
*" "*" "*) tip="${tip##* }" ;;
|
||||||
|
# This is a non-merge commit, pick itself
|
||||||
*) tip="${tip%% *}" ;;
|
*) tip="${tip%% *}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue