Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

pre-commit hook

From: bill lam <hidden>
Date: 2016-06-15 22:46:15

The pre-commit hooks as follows.

 10 # This is slightly modified from Andrew Morton's Perfect Patch.
 11 # Lines you introduce should not have trailing whitespace.
 12 # Also check for an indentation that has SP before a TAB.
 13 
 14 if git-rev-parse --verify HEAD 2>/dev/null
 15 then
 16   git-diff-index -p -M --cached HEAD --
 17 else
 18   # NEEDSWORK: we should produce a diff with an empty tree here
 19   # if we want to do the same verification for the initial import.
 20   :                                                                                                                        
 21 fi |
 22 perl -e '

Will it also include binary files and thus corrupt data? And
"git-rev-parse" should already deprecated.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩232 孟浩然  春曉
    春眠不覺曉  處處聞啼鳥  夜來風雨聲  花落知多少
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help