myshellconfig/.githooks/post-merge
Jakobus Schürz d2f0657629 transition from HOSTCONFIG to MYSHELLCONFIG
and use the same pathes for vim plugin repos on git.schuerz.at as on
github.com
2020-01-14 10:12:00 +01:00

24 lines
1.1 KiB
Bash
Executable file

#!/bin/bash
set -e
printf '\npost-checkout hook\n\n'
prevHEAD=$1
newHEAD=$2
checkoutType=$3
[[ $checkoutType == 1 ]] && checkoutType='branch' ||
checkoutType='file' ;
echo 'Checkout type: '$checkoutType
echo ' prev HEAD: '`git name-rev --name-only $prevHEAD`
echo ' new HEAD: '`git name-rev --name-only $newHEAD`
pwd
REPODIR=$(git rev-parse --show-toplevel)
. ./functions.sh
create_symlinks ${REPODIR}
# Check if local scripts exists and source it
[ -e .local_scripts/post-merge ] && . .local_scripts/post-merge