In Dulwich, how do I commit to a branch instead of to HEAD?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Track title: CC M Beethoven - Piano Sonata No 3 in C 3
--
Chapters
00:00 Question
00:49 Accepted answer (Score 1)
01:13 Thank you
--
Full question
https://stackoverflow.com/questions/6904...
Accepted answer links:
http://www.samba.org/~jelmer/dulwich/api...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #git #dulwich
#avk47
--
Track title: CC M Beethoven - Piano Sonata No 3 in C 3
--
Chapters
00:00 Question
00:49 Accepted answer (Score 1)
01:13 Thank you
--
Full question
https://stackoverflow.com/questions/6904...
Accepted answer links:
http://www.samba.org/~jelmer/dulwich/api...
--
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