commit: prepare repo_unuse_commit_buffer to handle any repo