git-diff should not fire up $PAGER if there is no diff output. Just exit. The man page doesn't even mention $PAGER too. -- 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