On 2009.05.25 11:31:42 +0400, Constantine Plotnikov wrote:
BTW git-diff won't work in situation when the directory was just
initialized and there were no commit. In that case added file = staged
file and it is possible to use git-ls-files.
You can use the object name of the empty tree with diff-* in that case,
that's what the pre-commit.sample hook does.
Björn