org.eclipse.jgit.util.FS.findHook()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(150)

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

FS.findHook介绍

[英]Tries to find a hook matching the given one in the given repository.
[中]尝试在给定存储库中查找与给定钩子匹配的钩子。

代码示例

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

/**
 * Check whether a 'native' (i.e. script) hook is installed in the
 * repository.
 *
 * @return whether a native hook script is installed in the repository.
 * @since 4.11
 */
public boolean isNativeHookPresent() {
  return FS.DETECTED.findHook(getRepository(), getHookName()) != null;
}

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

PrintStream errRedirect, String stdinArgs)
  throws JGitInternalException {
final File hookFile = findHook(repository, hookName);
if (hookFile == null)
  return new ProcessResult(Status.NOT_PRESENT);

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

/**
 * Check whether a 'native' (i.e. script) hook is installed in the
 * repository.
 *
 * @return whether a native hook script is installed in the repository.
 * @since 4.11
 */
public boolean isNativeHookPresent() {
  return FS.DETECTED.findHook(getRepository(), getHookName()) != null;
}

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

PrintStream errRedirect, String stdinArgs)
  throws JGitInternalException {
final File hookFile = findHook(repository, hookName);
if (hookFile == null)
  return new ProcessResult(Status.NOT_PRESENT);

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

PrintStream errRedirect, String stdinArgs)
  throws JGitInternalException {
final File hookFile = findHook(repository, hookName);
if (hookFile == null)
  return new ProcessResult(Status.NOT_PRESENT);

相关文章