瀏覽代碼

Allow to set target of DescribeCommand

Change-Id: I04805ce20cc203f5e491406c39b71e7017553b37
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v3.2.0.201311130903-m3
Matthias Sohn 10 年之前
父節點
當前提交
3c2c8b47ff
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java

+ 3
- 2
org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java 查看文件

@@ -107,7 +107,7 @@ public class DescribeCommand extends GitCommand<String> {
* @throws IOException
* a pack file or loose object could not be read.
*/
DescribeCommand setTarget(ObjectId target) throws IOException {
public DescribeCommand setTarget(ObjectId target) throws IOException {
this.target = w.parseCommit(target);
return this;
}
@@ -126,7 +126,8 @@ public class DescribeCommand extends GitCommand<String> {
* @throws IOException
* a pack file or loose object could not be read.
*/
DescribeCommand setTarget(String rev) throws IOException, RefNotFoundException {
public DescribeCommand setTarget(String rev) throws IOException,
RefNotFoundException {
ObjectId id = repo.resolve(rev);
if (id == null)
throw new RefNotFoundException(MessageFormat.format(JGitText.get().refNotResolved, rev));

Loading…
取消
儲存