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

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

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

Repository.readCommitMsgFile介绍

暂无

代码示例

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the SQUASH_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readSquashCommitMsg() throws IOException {
  return readCommitMsgFile(Constants.SQUASH_MSG);
}

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the MERGE_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws org.eclipse.jgit.errors.NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readMergeCommitMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.MERGE_MSG);
}

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

/**
 * Return the information stored in the file $GIT_DIR/COMMIT_EDITMSG. In
 * this file hooks triggered by an operation may read or modify the current
 * commit message.
 *
 * @return a String containing the content of the COMMIT_EDITMSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws org.eclipse.jgit.errors.NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 * @since 4.0
 */
@Nullable
public String readCommitEditMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.COMMIT_EDITMSG);
}

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the SQUASH_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readSquashCommitMsg() throws IOException {
  return readCommitMsgFile(Constants.SQUASH_MSG);
}

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the MERGE_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws IOException
 * @throws NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readMergeCommitMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.MERGE_MSG);
}

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the SQUASH_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws IOException
 * @throws NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readSquashCommitMsg() throws IOException {
  return readCommitMsgFile(Constants.SQUASH_MSG);
}

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

/**
 * Return the information stored in 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.
 *
 * @return a String containing the content of the MERGE_MSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws org.eclipse.jgit.errors.NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 */
@Nullable
public String readMergeCommitMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.MERGE_MSG);
}

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

/**
 * Return the information stored in the file $GIT_DIR/COMMIT_EDITMSG. In
 * this file hooks triggered by an operation may read or modify the current
 * commit message.
 *
 * @return a String containing the content of the COMMIT_EDITMSG file or
 *         {@code null} if this file doesn't exist
 * @throws java.io.IOException
 * @throws org.eclipse.jgit.errors.NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 * @since 4.0
 */
@Nullable
public String readCommitEditMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.COMMIT_EDITMSG);
}

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

/**
 * Return the information stored in the file $GIT_DIR/COMMIT_EDITMSG. In
 * this file hooks triggered by an operation may read or modify the current
 * commit message.
 *
 * @return a String containing the content of the COMMIT_EDITMSG file or
 *         {@code null} if this file doesn't exist
 * @throws IOException
 * @throws NoWorkTreeException
 *             if this is bare, which implies it has no working directory.
 *             See {@link #isBare()}.
 * @since 4.0
 */
@Nullable
public String readCommitEditMsg() throws IOException, NoWorkTreeException {
  return readCommitMsgFile(Constants.COMMIT_EDITMSG);
}

相关文章

微信公众号

最新文章

更多

Repository类方法