In Dulwich, how do I commit to a branch instead of to HEAD?

只愿长相守 提交于 2019-12-04 11:14:40

Creating a Commit object manually and then setting the tag is indeed the only way to commit to a non-HEAD branch in the last release.

do_commit() in trunk supports a "ref" argument that you can use to commit to other branches.

http://www.samba.org/~jelmer/dulwich/apidocs/dulwich.repo.BaseRepo.html#do_commit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!