Could pygit2 expose libgit2's reference transactions - for updating multiple refs atomically? https://libgit2.org/docs/reference/main/transaction/index.html