In Dulwich, how do I commit to a branch instead of to HEAD?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Magic Ocean Looping
--
Chapters
00:00 In Dulwich, How Do I Commit To A Branch Instead Of To Head?
00:35 Accepted Answer Score 1
00:51 Thank you
--
Full question
https://stackoverflow.com/questions/6904...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #git #dulwich
#avk47
    Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Magic Ocean Looping
--
Chapters
00:00 In Dulwich, How Do I Commit To A Branch Instead Of To Head?
00:35 Accepted Answer Score 1
00:51 Thank you
--
Full question
https://stackoverflow.com/questions/6904...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #git #dulwich
#avk47
ACCEPTED ANSWER
Score 1
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