发表文章

[C#] "git_commit_amend" 不可用。 `git_commit_amend` not available.[pygit2]

Parakleta 2017-10-9 39

此外, 如果第一个父级不是要更新的分支的提示, 则 Repository.create_commit 失败, 因此不能通过对 tip 的父项进行新提交来捏造行为。

原文:

Additionally Repository.create_commit fails if the first parent is not the tip of the branch being updated, so the behaviour cannot be fudged by making a new commit with the tip's parent.

相关推荐
最新评论 (2)
carlosmn 2017-10-9
1

传递分支名称是为了追加历史记录, 这就是为什么它的检查是为了防止比赛条件。您可以创建提交并将引用更新为相同的提交, 这是下行方法本身所做的全部工作。

原文:

Passing in the branch name is for appending history, which is why it has the check as a guard against race conditions. You can create a commit and update the reference to your commit just the same, which is all that an ammend method does itself.

tmr232 2017-10-9
2

可能添加一个 commit_amend 函数, 或者将用例添加到文档中?

原文:

Maybe add a commit_amend function, or add the use-case to the docs?

返回
发表文章
Parakleta
文章数
2
评论数
1
注册排名
31927