public class org.eclipse.jgit.api.InitCommand implements java.util.concurrent.Callable<org.eclipse.jgit.api.Git>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jgit.api.InitCommand
super_class: java.lang.Object
{
private java.io.File directory;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private java.io.File gitDir;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private boolean bare;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.eclipse.jgit.util.FS fs;
descriptor: Lorg/eclipse/jgit/util/FS;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/api/InitCommand;
public org.eclipse.jgit.api.Git call();
descriptor: ()Lorg/eclipse/jgit/api/Git;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new org.eclipse.jgit.lib.RepositoryBuilder
dup
invokespecial org.eclipse.jgit.lib.RepositoryBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
ifeq 3
2: aload 1
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setBare:()Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
3: StackMap locals: org.eclipse.jgit.lib.RepositoryBuilder
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.InitCommand.fs:Lorg/eclipse/jgit/util/FS;
ifnull 5
4: aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.fs:Lorg/eclipse/jgit/util/FS;
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setFS:(Lorg/eclipse/jgit/util/FS;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.readEnvironment:()Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
6: aload 0
getfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
ifnull 8
7: aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setGitDir:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
goto 9
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.getGitDir:()Ljava/io/File;
putfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
9: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
ifnull 16
10: aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
ifeq 12
11: aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setGitDir:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
goto 34
12: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setWorkTree:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
13: aload 0
getfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
ifnonnull 34
14: aload 1
new java.io.File
dup
aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
ldc ".git"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setGitDir:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
15: goto 34
StackMap locals:
StackMap stack:
16: aload 1
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.getGitDir:()Ljava/io/File;
ifnonnull 27
17: invokestatic org.eclipse.jgit.util.SystemReader.getInstance:()Lorg/eclipse/jgit/util/SystemReader;
18: ldc "user.dir"
invokevirtual org.eclipse.jgit.util.SystemReader.getProperty:(Ljava/lang/String;)Ljava/lang/String;
19: astore 2
start local 2 20: aload 2
ifnonnull 22
21: ldc "."
astore 2
22: StackMap locals: java.lang.String
StackMap stack:
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 3
start local 3 23: aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
ifne 25
24: new java.io.File
dup
aload 3
ldc ".git"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 3
25: StackMap locals: java.io.File
StackMap stack:
aload 1
aload 3
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setGitDir:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
end local 3 end local 2 26: goto 34
27: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
ifne 34
28: invokestatic org.eclipse.jgit.util.SystemReader.getInstance:()Lorg/eclipse/jgit/util/SystemReader;
29: ldc "user.dir"
30: invokevirtual org.eclipse.jgit.util.SystemReader.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 31: aload 2
ifnonnull 33
32: ldc "."
astore 2
33: StackMap locals: java.lang.String
StackMap stack:
aload 1
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.setWorkTree:(Ljava/io/File;)Lorg/eclipse/jgit/lib/BaseRepositoryBuilder;
pop
end local 2 34: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.eclipse.jgit.lib.RepositoryBuilder.build:()Lorg/eclipse/jgit/lib/Repository;
astore 2
start local 2 35: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.getObjectDatabase:()Lorg/eclipse/jgit/lib/ObjectDatabase;
invokevirtual org.eclipse.jgit.lib.ObjectDatabase.exists:()Z
ifne 37
36: aload 2
aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
invokevirtual org.eclipse.jgit.lib.Repository.create:(Z)V
37: StackMap locals: org.eclipse.jgit.lib.Repository
StackMap stack:
new org.eclipse.jgit.api.Git
dup
aload 2
iconst_1
invokespecial org.eclipse.jgit.api.Git.<init>:(Lorg/eclipse/jgit/lib/Repository;Z)V
38: areturn
end local 2 end local 1 39: StackMap locals: org.eclipse.jgit.api.InitCommand
StackMap stack: java.io.IOException
astore 1
start local 1 40: new org.eclipse.jgit.api.errors.JGitInternalException
dup
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 1
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lorg/eclipse/jgit/api/InitCommand;
1 39 1 builder Lorg/eclipse/jgit/lib/RepositoryBuilder;
20 26 2 dStr Ljava/lang/String;
23 26 3 d Ljava/io/File;
31 34 2 dStr Ljava/lang/String;
35 39 2 repository Lorg/eclipse/jgit/lib/Repository;
40 41 1 e Ljava/io/IOException;
Exception table:
from to target type
0 38 39 Class java.io.IOException
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
public org.eclipse.jgit.api.InitCommand setDirectory(java.io.File);
descriptor: (Ljava/io/File;)Lorg/eclipse/jgit/api/InitCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
invokestatic org.eclipse.jgit.api.InitCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/InitCommand;
0 3 1 directory Ljava/io/File;
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
directory
public org.eclipse.jgit.api.InitCommand setGitDir(java.io.File);
descriptor: (Ljava/io/File;)Lorg/eclipse/jgit/api/InitCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
aload 1
aload 0
getfield org.eclipse.jgit.api.InitCommand.bare:Z
invokestatic org.eclipse.jgit.api.InitCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/InitCommand;
0 3 1 gitDir Ljava/io/File;
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
gitDir
private static void validateDirs(java.io.File, java.io.File, boolean);
descriptor: (Ljava/io/File;Ljava/io/File;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 12
1: iload 2
ifeq 7
2: aload 1
ifnull 12
aload 1
aload 0
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifne 12
3: new java.lang.IllegalStateException
dup
4: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.initFailedBareRepoDifferentDirs:Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: aload 1
aastore
dup
iconst_1
aload 0
aastore
6: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
ifnull 12
aload 1
aload 0
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifeq 12
8: new java.lang.IllegalStateException
dup
9: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.initFailedNonBareRepoSameDirs:Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
10: aload 1
aastore
dup
iconst_1
aload 0
aastore
11: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 directory Ljava/io/File;
0 13 1 gitDir Ljava/io/File;
0 13 2 bare Z
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
directory
gitDir
bare
public org.eclipse.jgit.api.InitCommand setBare(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/InitCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.InitCommand.directory:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.InitCommand.gitDir:Ljava/io/File;
iload 1
invokestatic org.eclipse.jgit.api.InitCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
iload 1
putfield org.eclipse.jgit.api.InitCommand.bare:Z
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/InitCommand;
0 3 1 bare Z
MethodParameters:
Name Flags
bare
public org.eclipse.jgit.api.InitCommand setFs(org.eclipse.jgit.util.FS);
descriptor: (Lorg/eclipse/jgit/util/FS;)Lorg/eclipse/jgit/api/InitCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.jgit.api.InitCommand.fs:Lorg/eclipse/jgit/util/FS;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/InitCommand;
0 2 1 fs Lorg/eclipse/jgit/util/FS;
MethodParameters:
Name Flags
fs
public java.lang.Object call();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.eclipse.jgit.api.InitCommand.call:()Lorg/eclipse/jgit/api/Git;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Callable<Lorg/eclipse/jgit/api/Git;>;
SourceFile: "InitCommand.java"