added repo.update

I'm not 100% sure of whether repo.update needs a tree update as well, so feel free to recommend updates before this can land.