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

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

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

Repository.writeCommitMsg介绍

暂无

代码示例

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

/**
 * Write new content to the file $GIT_DIR/MERGE_MSG. In this file operations
 * triggering a merge will store a template for the commit message of the
 * merge commit. If <code>null</code> is specified as message the file will
 * be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 * @throws java.io.IOException
 */
public void writeMergeCommitMsg(String msg) throws IOException {
  File mergeMsgFile = new File(gitDir, Constants.MERGE_MSG);
  writeCommitMsg(mergeMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/COMMIT_EDITMSG. In this file hooks
 * triggered by an operation may read or modify the current commit message.
 * If {@code null} is specified as message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or {@code null} to delete
 *            the file
 * @throws java.io.IOException
 * @since 4.0
 */
public void writeCommitEditMsg(String msg) throws IOException {
  File commiEditMsgFile = new File(gitDir, Constants.COMMIT_EDITMSG);
  writeCommitMsg(commiEditMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/SQUASH_MSG. In this file
 * operations triggering a squashed merge will store a template for the
 * commit message of the squash commit. If <code>null</code> is specified as
 * message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 * @throws java.io.IOException
 */
public void writeSquashCommitMsg(String msg) throws IOException {
  File squashMsgFile = new File(gitDir, Constants.SQUASH_MSG);
  writeCommitMsg(squashMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/MERGE_MSG. In this file operations
 * triggering a merge will store a template for the commit message of the
 * merge commit. If <code>null</code> is specified as message the file will
 * be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 *
 * @throws IOException
 */
public void writeMergeCommitMsg(String msg) throws IOException {
  File mergeMsgFile = new File(gitDir, Constants.MERGE_MSG);
  writeCommitMsg(mergeMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/SQUASH_MSG. In this file
 * operations triggering a squashed merge will store a template for the
 * commit message of the squash commit. If <code>null</code> is specified as
 * message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 * @throws java.io.IOException
 */
public void writeSquashCommitMsg(String msg) throws IOException {
  File squashMsgFile = new File(gitDir, Constants.SQUASH_MSG);
  writeCommitMsg(squashMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/MERGE_MSG. In this file operations
 * triggering a merge will store a template for the commit message of the
 * merge commit. If <code>null</code> is specified as message the file will
 * be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 * @throws java.io.IOException
 */
public void writeMergeCommitMsg(String msg) throws IOException {
  File mergeMsgFile = new File(gitDir, Constants.MERGE_MSG);
  writeCommitMsg(mergeMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/COMMIT_EDITMSG. In this file hooks
 * triggered by an operation may read or modify the current commit message.
 * If {@code null} is specified as message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or {@code null} to delete
 *            the file
 * @throws java.io.IOException
 * @since 4.0
 */
public void writeCommitEditMsg(String msg) throws IOException {
  File commiEditMsgFile = new File(gitDir, Constants.COMMIT_EDITMSG);
  writeCommitMsg(commiEditMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/COMMIT_EDITMSG. In this file hooks
 * triggered by an operation may read or modify the current commit message.
 * If {@code null} is specified as message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or {@code null} to delete
 *            the file
 *
 * @throws IOException
 * @since 4.0
 */
public void writeCommitEditMsg(String msg) throws IOException {
  File commiEditMsgFile = new File(gitDir, Constants.COMMIT_EDITMSG);
  writeCommitMsg(commiEditMsgFile, msg);
}

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

/**
 * Write new content to the file $GIT_DIR/SQUASH_MSG. In this file
 * operations triggering a squashed merge will store a template for the
 * commit message of the squash commit. If <code>null</code> is specified as
 * message the file will be deleted.
 *
 * @param msg
 *            the message which should be written or <code>null</code> to
 *            delete the file
 *
 * @throws IOException
 */
public void writeSquashCommitMsg(String msg) throws IOException {
  File squashMsgFile = new File(gitDir, Constants.SQUASH_MSG);
  writeCommitMsg(squashMsgFile, msg);
}

相关文章

Repository类方法