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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html