author | Junio C Hamano <junkio@cox.net> | |
Sun, 29 Jan 2006 22:52:16 +0000 (14:52 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 29 Jan 2006 22:52:16 +0000 (14:52 -0800) | ||
commit | d37fd03222ad6b38aa6e237f5f191238c0544850 | |
tree | 12188d86cc5cf5f7f7bb9bded98715967bd03c3f | tree | snapshot |
parent | 181dc776956b4d265891ac70514ed214e4b7564a | commit | diff |
[PATCH] pre-commit sample hook: do not barf on the initial import
The example hook barfs on the initial import. Ideally it should
produce a diff from an empty tree, but for now let's stop at
squelching the bogus error message. Often an initial import
involves tons of badly formatted files from foreign SCM, so not
complaining about them like this patch does might actually be a
better idea than enforcing the "Perfect Patch" format on them.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The example hook barfs on the initial import. Ideally it should
produce a diff from an empty tree, but for now let's stop at
squelching the bogus error message. Often an initial import
involves tons of badly formatted files from foreign SCM, so not
complaining about them like this patch does might actually be a
better idea than enforcing the "Perfect Patch" format on them.
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--pre-commit | diff | blob | history |