Ah, but that's easy:
test -z "$(git-diff-index --name-only HEAD)" || exit 1
(This is just the idea; you should also output an error message.)
Hth,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html