In Dulwich, how can I pass a branch instead of HEAD?

Apparently repo.do_commit (message = 'test commit', committer = 'Name') only commits refs / heads / master.

Is there a way to set the current ref commit to something other than refs / heads / master?

Or the only way to commit a branch by creating a Commit object (as shown in the tutorial in the documentation) and setting its parent as one of the feed commit identifiers?

Should this be true, and then it would use repo.do_commit, in addition to doing refs / heads / master links?

+4
source share
1 answer

Creating a Commit object manually and then setting the tag is the only way to commit a branch other than HEAD in the latest version.

do_commit() trunk "ref", .

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

+1

All Articles