浏览代码

Allow version builtin to run without git repository

The version builtin should be able to run without a git directory to call
it from wherever you want.

Change-Id: I1a3bce662e6788b860a275ee50315af8d5cc094a
Signed-off-by: Benjamin Muskalla <bmuskalla@eclipsesource.com>
tags/v0.9.1
Benjamin Muskalla 14 年前
父节点
当前提交
d08be7aceb
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java

+ 5
- 0
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java 查看文件

@@ -55,4 +55,9 @@ class Version extends TextBuiltin {

out.println(MessageFormat.format(CLIText.get().jgitVersion, pkg.getImplementationVersion()));
}

@Override
protected final boolean requiresRepository() {
return false;
}
}

正在加载...
取消
保存