Lines Matching +full:rev +full:- +full:parse
1 #!/bin/sh -e
3 root=$(git rev-parse --show-cdup 2>/dev/null) || \
6 [ -z "${root}" ] || \
9 src=util/git-hooks/ # relative to root
10 hooks=$(cd "${src}" && git ls-files -c | grep -Ev 'install.sh|wrapper.sh')
12 if [ "$(git rev-parse --git-path 2>/dev/null)" = "--git-path" ]; then
17 dst=$(git rev-parse --git-path hooks/)
18 rel=$(git rev-parse --prefix "${dst}" --show-cdup)
23 if [ ! "${dst}$h" -ef "${src}wrapper.sh" ]; then
25 if [ -e "${dst}$h" ]; then
28 ln -s "${rel}${src}wrapper.sh" "${dst}$h"