turns out this is pretty fast, so unless your repo is ginormous, you dont really need to worry about it in git hooks