···11+#!/bin/sh
22+33+# An example hook script to verify what is about to be pushed. Called by "git
44+# push" after it has checked the remote status, but before anything has been
55+# pushed. If this script exits with a non-zero status nothing will be pushed.
66+#
77+# This hook is called with the following parameters:
88+#
99+# $1 -- Name of the remote to which the push is being done
1010+# $2 -- URL to which the push is being done
1111+#
1212+# If pushing without using a named remote those arguments will be equal.
1313+#
1414+# Information about the commits which are being pushed is supplied as lines to
1515+# the standard input in the form:
1616+#
1717+# <local ref> <local sha1> <remote ref> <remote sha1>
1818+#
1919+# This sample shows how to prevent push of commits where the log message starts
2020+# with "WIP" (work in progress).
2121+2222+2323+z40=0000000000000000000000000000000000000000
2424+2525+IFS=' '
2626+while read local_ref local_sha remote_ref remote_sha
2727+do
2828+ if [ "$local_sha" = $z40 ]
2929+ then
3030+ # Handle delete
3131+ :
3232+ else
3333+ if [ "$remote_sha" = $z40 ]
3434+ then
3535+ # New branch, examine all commits
3636+ range="$local_sha"
3737+ else
3838+ # Update to existing branch, examine new commits
3939+ range="$remote_sha..$local_sha"
4040+ fi
4141+4242+ # Check for WIP commit
4343+ commit=$(git rev-list -n 1 --grep -i '^WIP' "$range")
4444+ if [ -n "$commit" ]
4545+ then
4646+ echo "Found WIP commit in $local_ref, not pushing"
4747+ exit 1
4848+ fi
4949+ fi
5050+done
5151+5252+exit 0
-52
git/template/hooks/wip-check/pre-push
···11-#!/bin/sh
22-33-# An example hook script to verify what is about to be pushed. Called by "git
44-# push" after it has checked the remote status, but before anything has been
55-# pushed. If this script exits with a non-zero status nothing will be pushed.
66-#
77-# This hook is called with the following parameters:
88-#
99-# $1 -- Name of the remote to which the push is being done
1010-# $2 -- URL to which the push is being done
1111-#
1212-# If pushing without using a named remote those arguments will be equal.
1313-#
1414-# Information about the commits which are being pushed is supplied as lines to
1515-# the standard input in the form:
1616-#
1717-# <local ref> <local sha1> <remote ref> <remote sha1>
1818-#
1919-# This sample shows how to prevent push of commits where the log message starts
2020-# with "WIP" (work in progress).
2121-2222-2323-z40=0000000000000000000000000000000000000000
2424-2525-IFS=' '
2626-while read local_ref local_sha remote_ref remote_sha
2727-do
2828- if [ "$local_sha" = $z40 ]
2929- then
3030- # Handle delete
3131- :
3232- else
3333- if [ "$remote_sha" = $z40 ]
3434- then
3535- # New branch, examine all commits
3636- range="$local_sha"
3737- else
3838- # Update to existing branch, examine new commits
3939- range="$remote_sha..$local_sha"
4040- fi
4141-4242- # Check for WIP commit
4343- commit=$(git rev-list -n 1 --grep '^WIP' "$range")
4444- if [ -n "$commit" ]
4545- then
4646- echo "Found WIP commit in $local_ref, not pushing"
4747- exit 1
4848- fi
4949- fi
5050-done
5151-5252-exit 0
···11# A xterm-256color based TERMINFO that adds the escape sequences for italic.
22xterm-256color-italic|xterm with 256 colors and italic,
33 sitm=\E[3m, ritm=\E[23m,
44- use=xterm-256color,44+ use=xterm-256color,
55+ kbs=\177,
-12
nvim/after/ftplugin/eelixir.vim
···11-if !exists('b:surround_45')
22- let b:surround_45 = "<% \r %>"
33-endif
44-if !exists('b:surround_61')
55- let b:surround_61 = "<%= \r %>"
66-endif
77-if !exists('b:surround_35')
88- let b:surround_35 = "<%# \r %>"
99-endif
1010-if !exists('b:surround_5')
1111- let b:surround_5 = "<% \r %>\n<% end %>"
1212-endif