org.eclipse.jgit.lib.Repository.writeRevertHead()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中org.eclipse.jgit.lib.Repository.writeRevertHead方法的一些代码示例,展示了Repository.writeRevertHead的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.writeRevertHead方法的具体详情如下:
包路径:org.eclipse.jgit.lib.Repository
类名称:Repository
方法名:writeRevertHead

Repository.writeRevertHead介绍

[英]Write revert commit into $GIT_DIR/REVERT_HEAD. This is used in case of conflicts to store the revert which was tried to be picked.
[中]将revert commit写入$GIT_DIR/revert_HEAD。在冲突的情况下使用此选项来存储尝试拾取的还原。

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

private void resetRevert() throws IOException {
  repo.writeRevertHead(null);
  repo.writeMergeCommitMsg(null);
}

代码示例来源:origin: berlam/github-bucket

private void resetRevert() throws IOException {
  repo.writeRevertHead(null);
  repo.writeMergeCommitMsg(null);
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

private void resetRevert() throws IOException {
  repo.writeRevertHead(null);
  repo.writeMergeCommitMsg(null);
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

} else if (state == RepositoryState.REVERTING_RESOLVED) {
  repo.writeMergeCommitMsg(null);
  repo.writeRevertHead(null);

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

.formatWithConflicts(newMessage,
    merger.getUnmergedPaths());
repo.writeRevertHead(srcCommit.getId());
repo.writeMergeCommitMsg(message);

代码示例来源:origin: berlam/github-bucket

} else if (state == RepositoryState.REVERTING_RESOLVED) {
  repo.writeMergeCommitMsg(null);
  repo.writeRevertHead(null);

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

} else if (state == RepositoryState.REVERTING_RESOLVED) {
  repo.writeMergeCommitMsg(null);
  repo.writeRevertHead(null);

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

.formatWithConflicts(newMessage,
    merger.getUnmergedPaths());
repo.writeRevertHead(srcCommit.getId());
repo.writeMergeCommitMsg(message);

代码示例来源:origin: berlam/github-bucket

.formatWithConflicts(newMessage,
    merger.getUnmergedPaths());
repo.writeRevertHead(srcCommit.getId());
repo.writeMergeCommitMsg(message);

相关文章

Repository类方法