public class org.eclipse.jgit.api.CloneCommand extends org.eclipse.jgit.api.TransportCommand<org.eclipse.jgit.api.CloneCommand, org.eclipse.jgit.api.Git>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jgit.api.CloneCommand
super_class: org.eclipse.jgit.api.TransportCommand
{
private java.lang.String uri;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
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
private java.lang.String remote;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String branch;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.eclipse.jgit.lib.ProgressMonitor monitor;
descriptor: Lorg/eclipse/jgit/lib/ProgressMonitor;
flags: (0x0002) ACC_PRIVATE
private boolean cloneAllBranches;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean cloneSubmodules;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean noCheckout;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Collection<java.lang.String> branchesToClone;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private org.eclipse.jgit.api.CloneCommand$Callback callback;
descriptor: Lorg/eclipse/jgit/api/CloneCommand$Callback;
flags: (0x0002) ACC_PRIVATE
private boolean directoryExistsInitially;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean gitDirExistsInitially;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokespecial org.eclipse.jgit.api.TransportCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
1: aload 0
ldc "origin"
putfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
2: aload 0
ldc "HEAD"
putfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
3: aload 0
getstatic org.eclipse.jgit.lib.NullProgressMonitor.INSTANCE:Lorg/eclipse/jgit/lib/NullProgressMonitor;
putfield org.eclipse.jgit.api.CloneCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jgit/api/CloneCommand;
java.io.File getDirectory();
descriptor: ()Ljava/io/File;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/api/CloneCommand;
RuntimeVisibleAnnotations:
org.eclipse.jgit.annotations.Nullable()
public org.eclipse.jgit.api.Git call();
descriptor: ()Lorg/eclipse/jgit/api/Git;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new org.eclipse.jgit.transport.URIish
dup
aload 0
getfield org.eclipse.jgit.api.CloneCommand.uri:Ljava/lang/String;
invokespecial org.eclipse.jgit.transport.URIish.<init>:(Ljava/lang/String;)V
astore 1
2: aload 0
aload 1
invokevirtual org.eclipse.jgit.api.CloneCommand.verifyDirectories:(Lorg/eclipse/jgit/transport/URIish;)V
3: goto 8
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish
StackMap stack: java.net.URISyntaxException
4: pop
5: new org.eclipse.jgit.api.errors.InvalidRemoteException
dup
6: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.invalidURL:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.uri:Ljava/lang/String;
aastore
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
7: invokespecial org.eclipse.jgit.api.errors.InvalidRemoteException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.jgit.api.CloneCommand.init:()Lorg/eclipse/jgit/lib/Repository;
astore 2
start local 2 9: aconst_null
astore 3
start local 3 10: new java.lang.Thread
dup
aload 0
invokedynamic run(Lorg/eclipse/jgit/api/CloneCommand;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/eclipse/jgit/api/CloneCommand.lambda$0()V (7)
()V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 4
start local 4 11: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
12: aload 0
aload 2
aload 1
invokevirtual org.eclipse.jgit.api.CloneCommand.fetch:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/transport/URIish;)Lorg/eclipse/jgit/transport/FetchResult;
astore 3
13: goto 34
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.FetchResult java.lang.Thread
StackMap stack: java.io.IOException
14: astore 5
start local 5 15: aload 2
ifnull 17
16: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
17: StackMap locals: java.io.IOException
StackMap stack:
aload 0
invokevirtual org.eclipse.jgit.api.CloneCommand.cleanup:()V
18: new org.eclipse.jgit.api.errors.JGitInternalException
dup
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 5
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 19: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.FetchResult java.lang.Thread
StackMap stack: java.net.URISyntaxException
pop
20: aload 2
ifnull 22
21: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
22: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.jgit.api.CloneCommand.cleanup:()V
23: new org.eclipse.jgit.api.errors.InvalidRemoteException
dup
24: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.invalidRemote:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
aastore
25: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.eclipse.jgit.api.errors.InvalidRemoteException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 27: aload 2
ifnull 29
28: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
29: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
invokevirtual org.eclipse.jgit.api.CloneCommand.cleanup:()V
30: aload 5
athrow
end local 5 31: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.FetchResult java.lang.Thread
StackMap stack: java.lang.Throwable
astore 6
32: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
pop
33: aload 6
athrow
34: StackMap locals:
StackMap stack:
invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
pop
35: aload 0
getfield org.eclipse.jgit.api.CloneCommand.noCheckout:Z
ifne 44
36: aload 0
aload 2
aload 3
invokevirtual org.eclipse.jgit.api.CloneCommand.checkout:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/transport/FetchResult;)V
37: goto 44
StackMap locals:
StackMap stack: java.io.IOException
38: astore 5
start local 5 39: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
40: new org.eclipse.jgit.api.errors.JGitInternalException
dup
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 5
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 41: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 42: aload 2
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
43: aload 5
athrow
end local 5 44: StackMap locals:
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
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lorg/eclipse/jgit/api/CloneCommand;
1 45 1 u Lorg/eclipse/jgit/transport/URIish;
9 45 2 repository Lorg/eclipse/jgit/lib/Repository;
10 45 3 fetchResult Lorg/eclipse/jgit/transport/FetchResult;
11 45 4 cleanupHook Ljava/lang/Thread;
15 19 5 ioe Ljava/io/IOException;
27 31 5 e Ljava/lang/Exception;
39 41 5 ioe Ljava/io/IOException;
42 44 5 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.net.URISyntaxException
12 13 14 Class java.io.IOException
12 13 19 Class java.net.URISyntaxException
12 13 26 Class org.eclipse.jgit.api.errors.GitAPIException
12 13 26 Class java.lang.RuntimeException
12 31 31 any
36 37 38 Class java.io.IOException
36 37 41 Class org.eclipse.jgit.api.errors.GitAPIException
36 37 41 Class java.lang.RuntimeException
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException
private static boolean isNonEmptyDirectory(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
ifnull 4
aload 0
invokevirtual java.io.File.exists:()Z
ifeq 4
1: aload 0
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
arraylength
ifeq 3
iconst_1
ireturn
StackMap locals: java.io.File[]
StackMap stack:
3: iconst_0
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 dir Ljava/io/File;
2 4 1 files [Ljava/io/File;
MethodParameters:
Name Flags
dir
void verifyDirectories(org.eclipse.jgit.transport.URIish);
descriptor: (Lorg/eclipse/jgit/transport/URIish;)V
flags: (0x0000)
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
ifnonnull 5
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
ifnonnull 5
1: aload 0
2: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 1
invokevirtual org.eclipse.jgit.transport.URIish.getHumanishName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
ifeq 3
ldc ".git"
goto 4
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish
StackMap stack: org.eclipse.jgit.api.CloneCommand new 2 new 2 java.lang.StringBuilder
3: ldc ""
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish
StackMap stack: org.eclipse.jgit.api.CloneCommand new 2 new 2 java.lang.StringBuilder java.lang.String
4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
ifnull 6
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 6
iconst_1
goto 7
StackMap locals:
StackMap stack: org.eclipse.jgit.api.CloneCommand
6: iconst_0
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish
StackMap stack: org.eclipse.jgit.api.CloneCommand int
7: putfield org.eclipse.jgit.api.CloneCommand.directoryExistsInitially:Z
8: aload 0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
ifnull 9
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 9
iconst_1
goto 10
StackMap locals:
StackMap stack: org.eclipse.jgit.api.CloneCommand
9: iconst_0
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.URIish
StackMap stack: org.eclipse.jgit.api.CloneCommand int
10: putfield org.eclipse.jgit.api.CloneCommand.gitDirExistsInitially:Z
11: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
invokestatic org.eclipse.jgit.api.CloneCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
12: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
invokestatic org.eclipse.jgit.api.CloneCommand.isNonEmptyDirectory:(Ljava/io/File;)Z
ifeq 16
13: new org.eclipse.jgit.api.errors.JGitInternalException
dup
14: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.cloneNonEmptyDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
15: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
invokestatic org.eclipse.jgit.api.CloneCommand.isNonEmptyDirectory:(Ljava/io/File;)Z
ifeq 20
17: new org.eclipse.jgit.api.errors.JGitInternalException
dup
18: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.cloneNonEmptyDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
19: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 21 1 u Lorg/eclipse/jgit/transport/URIish;
MethodParameters:
Name Flags
u
private org.eclipse.jgit.lib.Repository init();
descriptor: ()Lorg/eclipse/jgit/lib/Repository;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic org.eclipse.jgit.api.Git.init:()Lorg/eclipse/jgit/api/InitCommand;
astore 1
start local 1 1: aload 1
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
invokevirtual org.eclipse.jgit.api.InitCommand.setBare:(Z)Lorg/eclipse/jgit/api/InitCommand;
pop
2: aload 0
getfield org.eclipse.jgit.api.CloneCommand.fs:Lorg/eclipse/jgit/util/FS;
ifnull 4
3: aload 1
aload 0
getfield org.eclipse.jgit.api.CloneCommand.fs:Lorg/eclipse/jgit/util/FS;
invokevirtual org.eclipse.jgit.api.InitCommand.setFs:(Lorg/eclipse/jgit/util/FS;)Lorg/eclipse/jgit/api/InitCommand;
pop
4: StackMap locals: org.eclipse.jgit.api.InitCommand
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
ifnull 6
5: aload 1
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
invokevirtual org.eclipse.jgit.api.InitCommand.setDirectory:(Ljava/io/File;)Lorg/eclipse/jgit/api/InitCommand;
pop
6: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
ifnull 8
7: aload 1
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
invokevirtual org.eclipse.jgit.api.InitCommand.setGitDir:(Ljava/io/File;)Lorg/eclipse/jgit/api/InitCommand;
pop
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.eclipse.jgit.api.InitCommand.call:()Lorg/eclipse/jgit/api/Git;
invokevirtual org.eclipse.jgit.api.Git.getRepository:()Lorg/eclipse/jgit/lib/Repository;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jgit/api/CloneCommand;
1 9 1 command Lorg/eclipse/jgit/api/InitCommand;
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
private org.eclipse.jgit.transport.FetchResult fetch(org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.URIish);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/transport/URIish;)Lorg/eclipse/jgit/transport/FetchResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new org.eclipse.jgit.transport.RemoteConfig
dup
aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
aload 0
getfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
invokespecial org.eclipse.jgit.transport.RemoteConfig.<init>:(Lorg/eclipse/jgit/lib/Config;Ljava/lang/String;)V
astore 3
start local 3 1: aload 3
aload 2
invokevirtual org.eclipse.jgit.transport.RemoteConfig.addURI:(Lorg/eclipse/jgit/transport/URIish;)Z
pop
2: new java.lang.StringBuilder
dup
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
ifeq 3
ldc "refs/heads/"
goto 5
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.URIish org.eclipse.jgit.transport.RemoteConfig
StackMap stack: new 2 new 2
3: new java.lang.StringBuilder
dup
ldc "refs/remotes/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 3
invokevirtual org.eclipse.jgit.transport.RemoteConfig.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.URIish org.eclipse.jgit.transport.RemoteConfig
StackMap stack: new 2 new 2 java.lang.String
5: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 42
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 7: aload 0
getfield org.eclipse.jgit.api.CloneCommand.cloneAllBranches:Z
ifne 10
aload 0
getfield org.eclipse.jgit.api.CloneCommand.branchesToClone:Ljava/util/Collection;
ifnull 10
8: aload 0
getfield org.eclipse.jgit.api.CloneCommand.branchesToClone:Ljava/util/Collection;
invokeinterface java.util.Collection.isEmpty:()Z
ifne 10
9: iconst_0
goto 11
StackMap locals: java.lang.String
StackMap stack:
10: iconst_1
StackMap locals:
StackMap stack: int
11: istore 5
start local 5 12: aload 3
aload 0
iload 5
aload 4
invokevirtual org.eclipse.jgit.api.CloneCommand.calculateRefSpecs:(ZLjava/lang/String;)Ljava/util/List;
invokevirtual org.eclipse.jgit.transport.RemoteConfig.setFetchRefSpecs:(Ljava/util/List;)V
13: aload 3
aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
invokevirtual org.eclipse.jgit.transport.RemoteConfig.update:(Lorg/eclipse/jgit/lib/Config;)V
14: aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
invokevirtual org.eclipse.jgit.lib.StoredConfig.save:()V
15: new org.eclipse.jgit.api.FetchCommand
dup
aload 1
invokespecial org.eclipse.jgit.api.FetchCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 6
start local 6 16: aload 6
aload 0
getfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
invokevirtual org.eclipse.jgit.api.FetchCommand.setRemote:(Ljava/lang/String;)Lorg/eclipse/jgit/api/FetchCommand;
pop
17: aload 6
aload 0
getfield org.eclipse.jgit.api.CloneCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
invokevirtual org.eclipse.jgit.api.FetchCommand.setProgressMonitor:(Lorg/eclipse/jgit/lib/ProgressMonitor;)Lorg/eclipse/jgit/api/FetchCommand;
pop
18: aload 6
iload 5
ifeq 19
getstatic org.eclipse.jgit.transport.TagOpt.FETCH_TAGS:Lorg/eclipse/jgit/transport/TagOpt;
goto 20
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.URIish org.eclipse.jgit.transport.RemoteConfig java.lang.String int org.eclipse.jgit.api.FetchCommand
StackMap stack: org.eclipse.jgit.api.FetchCommand
19: getstatic org.eclipse.jgit.transport.TagOpt.AUTO_FOLLOW:Lorg/eclipse/jgit/transport/TagOpt;
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.transport.URIish org.eclipse.jgit.transport.RemoteConfig java.lang.String int org.eclipse.jgit.api.FetchCommand
StackMap stack: org.eclipse.jgit.api.FetchCommand org.eclipse.jgit.transport.TagOpt
20: invokevirtual org.eclipse.jgit.api.FetchCommand.setTagOpt:(Lorg/eclipse/jgit/transport/TagOpt;)Lorg/eclipse/jgit/api/FetchCommand;
pop
21: aload 0
aload 6
invokevirtual org.eclipse.jgit.api.CloneCommand.configure:(Lorg/eclipse/jgit/api/TransportCommand;)Lorg/eclipse/jgit/api/GitCommand;
pop
22: aload 6
invokevirtual org.eclipse.jgit.api.FetchCommand.call:()Lorg/eclipse/jgit/transport/FetchResult;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 23 1 clonedRepo Lorg/eclipse/jgit/lib/Repository;
0 23 2 u Lorg/eclipse/jgit/transport/URIish;
1 23 3 config Lorg/eclipse/jgit/transport/RemoteConfig;
7 23 4 dst Ljava/lang/String;
12 23 5 fetchAll Z
16 23 6 command Lorg/eclipse/jgit/api/FetchCommand;
Exceptions:
throws java.net.URISyntaxException, org.eclipse.jgit.api.errors.TransportException, java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException
MethodParameters:
Name Flags
clonedRepo
u
private java.util.List<org.eclipse.jgit.transport.RefSpec> calculateRefSpecs(boolean, java.lang.String);
descriptor: (ZLjava/lang/String;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new org.eclipse.jgit.transport.RefSpec
dup
invokespecial org.eclipse.jgit.transport.RefSpec.<init>:()V
astore 3
start local 3 1: aload 3
iconst_1
invokevirtual org.eclipse.jgit.transport.RefSpec.setForceUpdate:(Z)Lorg/eclipse/jgit/transport/RefSpec;
astore 3
2: aload 3
ldc "refs/heads/*"
aload 2
invokevirtual org.eclipse.jgit.transport.RefSpec.setSourceDestination:(Ljava/lang/String;Ljava/lang/String;)Lorg/eclipse/jgit/transport/RefSpec;
astore 3
3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 4: iload 1
ifne 19
5: new org.eclipse.jgit.transport.RefSpec
dup
invokespecial org.eclipse.jgit.transport.RefSpec.<init>:()V
astore 5
start local 5 6: aload 5
iconst_1
invokevirtual org.eclipse.jgit.transport.RefSpec.setForceUpdate:(Z)Lorg/eclipse/jgit/transport/RefSpec;
astore 5
7: aload 5
ldc "refs/tags/*"
8: ldc "refs/tags/*"
9: invokevirtual org.eclipse.jgit.transport.RefSpec.setSourceDestination:(Ljava/lang/String;Ljava/lang/String;)Lorg/eclipse/jgit/transport/RefSpec;
astore 5
10: aload 0
getfield org.eclipse.jgit.api.CloneCommand.branchesToClone:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 17
StackMap locals: org.eclipse.jgit.api.CloneCommand int java.lang.String org.eclipse.jgit.transport.RefSpec java.util.List org.eclipse.jgit.transport.RefSpec top java.util.Iterator
StackMap stack:
11: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 12: aload 3
aload 6
invokevirtual org.eclipse.jgit.transport.RefSpec.matchSource:(Ljava/lang/String;)Z
ifeq 15
13: aload 4
aload 3
aload 6
invokevirtual org.eclipse.jgit.transport.RefSpec.expandFromSource:(Ljava/lang/String;)Lorg/eclipse/jgit/transport/RefSpec;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: goto 17
StackMap locals: org.eclipse.jgit.api.CloneCommand int java.lang.String org.eclipse.jgit.transport.RefSpec java.util.List org.eclipse.jgit.transport.RefSpec java.lang.String java.util.Iterator
StackMap stack:
15: aload 5
aload 6
invokevirtual org.eclipse.jgit.transport.RefSpec.matchSource:(Ljava/lang/String;)Z
ifeq 17
16: aload 4
aload 5
aload 6
invokevirtual org.eclipse.jgit.transport.RefSpec.expandFromSource:(Ljava/lang/String;)Lorg/eclipse/jgit/transport/RefSpec;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 17: StackMap locals: org.eclipse.jgit.api.CloneCommand int java.lang.String org.eclipse.jgit.transport.RefSpec java.util.List org.eclipse.jgit.transport.RefSpec top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
end local 5 18: goto 20
19: StackMap locals: org.eclipse.jgit.api.CloneCommand int java.lang.String org.eclipse.jgit.transport.RefSpec java.util.List
StackMap stack:
aload 4
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 21 1 fetchAll Z
0 21 2 dst Ljava/lang/String;
1 21 3 heads Lorg/eclipse/jgit/transport/RefSpec;
4 21 4 specs Ljava/util/List<Lorg/eclipse/jgit/transport/RefSpec;>;
6 18 5 tags Lorg/eclipse/jgit/transport/RefSpec;
12 17 6 selectedRef Ljava/lang/String;
Signature: (ZLjava/lang/String;)Ljava/util/List<Lorg/eclipse/jgit/transport/RefSpec;>;
MethodParameters:
Name Flags
fetchAll
dst
private void checkout(org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.FetchResult);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/transport/FetchResult;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
ldc "HEAD"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 0
aload 2
invokevirtual org.eclipse.jgit.api.CloneCommand.findBranchToCheckout:(Lorg/eclipse/jgit/transport/FetchResult;)Lorg/eclipse/jgit/lib/Ref;
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 4
astore 3
end local 4 5: StackMap locals: org.eclipse.jgit.lib.Ref
StackMap stack:
aload 3
ifnonnull 11
6: aload 2
aload 0
getfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 3
7: aload 3
ifnonnull 9
8: aload 2
new java.lang.StringBuilder
dup
ldc "refs/heads/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 3
9: StackMap locals:
StackMap stack:
aload 3
ifnonnull 11
10: aload 2
new java.lang.StringBuilder
dup
ldc "refs/tags/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 3
11: StackMap locals:
StackMap stack:
aload 3
ifnull 12
aload 3
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
ifnonnull 13
12: StackMap locals:
StackMap stack:
return
13: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
ldc "refs/heads/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 18
14: aload 1
ldc "HEAD"
invokevirtual org.eclipse.jgit.lib.Repository.updateRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/RefUpdate;
astore 4
start local 4 15: aload 4
invokevirtual org.eclipse.jgit.lib.RefUpdate.disableRefLog:()V
16: aload 4
aload 3
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
invokevirtual org.eclipse.jgit.lib.RefUpdate.link:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/RefUpdate$Result;
pop
17: aload 0
aload 1
aload 3
invokevirtual org.eclipse.jgit.api.CloneCommand.addMergeConfig:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/lib/Ref;)V
end local 4 18: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual org.eclipse.jgit.api.CloneCommand.parseCommit:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/lib/Ref;)Lorg/eclipse/jgit/revwalk/RevCommit;
astore 4
start local 4 19: aload 3
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
ldc "refs/heads/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 20
iconst_0
goto 21
StackMap locals: org.eclipse.jgit.revwalk.RevCommit
StackMap stack:
20: iconst_1
StackMap locals:
StackMap stack: int
21: istore 5
start local 5 22: aload 1
ldc "HEAD"
iload 5
invokevirtual org.eclipse.jgit.lib.Repository.updateRef:(Ljava/lang/String;Z)Lorg/eclipse/jgit/lib/RefUpdate;
astore 6
start local 6 23: aload 6
aload 4
invokevirtual org.eclipse.jgit.revwalk.RevCommit.getId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.lib.RefUpdate.setNewObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
24: aload 6
invokevirtual org.eclipse.jgit.lib.RefUpdate.forceUpdate:()Lorg/eclipse/jgit/lib/RefUpdate$Result;
pop
25: aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
ifne 34
26: aload 1
invokevirtual org.eclipse.jgit.lib.Repository.lockDirCache:()Lorg/eclipse/jgit/dircache/DirCache;
astore 7
start local 7 27: new org.eclipse.jgit.dircache.DirCacheCheckout
dup
aload 1
aload 7
28: aload 4
invokevirtual org.eclipse.jgit.revwalk.RevCommit.getTree:()Lorg/eclipse/jgit/revwalk/RevTree;
29: invokespecial org.eclipse.jgit.dircache.DirCacheCheckout.<init>:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/dircache/DirCache;Lorg/eclipse/jgit/lib/ObjectId;)V
astore 8
start local 8 30: aload 8
aload 0
getfield org.eclipse.jgit.api.CloneCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.setProgressMonitor:(Lorg/eclipse/jgit/lib/ProgressMonitor;)V
31: aload 8
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.checkout:()Z
pop
32: aload 0
getfield org.eclipse.jgit.api.CloneCommand.cloneSubmodules:Z
ifeq 34
33: aload 0
aload 1
invokevirtual org.eclipse.jgit.api.CloneCommand.cloneSubmodules:(Lorg/eclipse/jgit/lib/Repository;)V
end local 8 end local 7 34: StackMap locals: int org.eclipse.jgit.lib.RefUpdate
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 35 1 clonedRepo Lorg/eclipse/jgit/lib/Repository;
0 35 2 result Lorg/eclipse/jgit/transport/FetchResult;
1 35 3 head Lorg/eclipse/jgit/lib/Ref;
3 5 4 foundBranch Lorg/eclipse/jgit/lib/Ref;
15 18 4 newHead Lorg/eclipse/jgit/lib/RefUpdate;
19 35 4 commit Lorg/eclipse/jgit/revwalk/RevCommit;
22 35 5 detached Z
23 35 6 u Lorg/eclipse/jgit/lib/RefUpdate;
27 34 7 dc Lorg/eclipse/jgit/dircache/DirCache;
30 34 8 co Lorg/eclipse/jgit/dircache/DirCacheCheckout;
Exceptions:
throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException
MethodParameters:
Name Flags
clonedRepo
result
private void cloneSubmodules(org.eclipse.jgit.lib.Repository);
descriptor: (Lorg/eclipse/jgit/lib/Repository;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: new org.eclipse.jgit.api.SubmoduleInitCommand
dup
aload 1
invokespecial org.eclipse.jgit.api.SubmoduleInitCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 2
start local 2 1: aload 2
invokevirtual org.eclipse.jgit.api.SubmoduleInitCommand.call:()Ljava/util/Collection;
astore 3
start local 3 2: aload 3
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 4
3: return
4: StackMap locals: org.eclipse.jgit.api.SubmoduleInitCommand java.util.Collection
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.CloneCommand.callback:Lorg/eclipse/jgit/api/CloneCommand$Callback;
ifnull 6
5: aload 0
getfield org.eclipse.jgit.api.CloneCommand.callback:Lorg/eclipse/jgit/api/CloneCommand$Callback;
aload 3
invokeinterface org.eclipse.jgit.api.CloneCommand$Callback.initializedSubmodules:(Ljava/util/Collection;)V
6: StackMap locals:
StackMap stack:
new org.eclipse.jgit.api.SubmoduleUpdateCommand
dup
aload 1
invokespecial org.eclipse.jgit.api.SubmoduleUpdateCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 4
start local 4 7: aload 0
aload 4
invokevirtual org.eclipse.jgit.api.CloneCommand.configure:(Lorg/eclipse/jgit/api/TransportCommand;)Lorg/eclipse/jgit/api/GitCommand;
pop
8: aload 4
aload 0
getfield org.eclipse.jgit.api.CloneCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
invokevirtual org.eclipse.jgit.api.SubmoduleUpdateCommand.setProgressMonitor:(Lorg/eclipse/jgit/lib/ProgressMonitor;)Lorg/eclipse/jgit/api/SubmoduleUpdateCommand;
pop
9: aload 4
aload 0
getfield org.eclipse.jgit.api.CloneCommand.callback:Lorg/eclipse/jgit/api/CloneCommand$Callback;
invokevirtual org.eclipse.jgit.api.SubmoduleUpdateCommand.setCallback:(Lorg/eclipse/jgit/api/CloneCommand$Callback;)Lorg/eclipse/jgit/api/SubmoduleUpdateCommand;
pop
10: aload 4
invokevirtual org.eclipse.jgit.api.SubmoduleUpdateCommand.call:()Ljava/util/Collection;
invokeinterface java.util.Collection.isEmpty:()Z
ifne 24
11: aload 1
invokestatic org.eclipse.jgit.submodule.SubmoduleWalk.forIndex:(Lorg/eclipse/jgit/lib/Repository;)Lorg/eclipse/jgit/submodule/SubmoduleWalk;
astore 5
start local 5 12: goto 23
13: StackMap locals: org.eclipse.jgit.api.SubmoduleUpdateCommand org.eclipse.jgit.submodule.SubmoduleWalk
StackMap stack:
aconst_null
astore 6
aconst_null
astore 7
14: aload 5
invokevirtual org.eclipse.jgit.submodule.SubmoduleWalk.getRepository:()Lorg/eclipse/jgit/lib/Repository;
astore 8
start local 8 15: aload 8
ifnull 17
16: aload 0
aload 8
invokevirtual org.eclipse.jgit.api.CloneCommand.cloneSubmodules:(Lorg/eclipse/jgit/lib/Repository;)V
17: StackMap locals: java.lang.Throwable java.lang.Throwable org.eclipse.jgit.lib.Repository
StackMap stack:
aload 8
ifnull 23
aload 8
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 6
aload 8
ifnull 19
aload 8
invokevirtual org.eclipse.jgit.lib.Repository.close:()V
end local 8 StackMap locals:
StackMap stack:
19: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 7
aload 6
ifnonnull 21
aload 7
astore 6
goto 22
StackMap locals:
StackMap stack:
21: aload 6
aload 7
if_acmpeq 22
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 6
athrow
23: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.eclipse.jgit.submodule.SubmoduleWalk.next:()Z
ifne 13
end local 5 24: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 25 1 clonedRepo Lorg/eclipse/jgit/lib/Repository;
1 25 2 init Lorg/eclipse/jgit/api/SubmoduleInitCommand;
2 25 3 submodules Ljava/util/Collection<Ljava/lang/String;>;
7 25 4 update Lorg/eclipse/jgit/api/SubmoduleUpdateCommand;
12 24 5 walk Lorg/eclipse/jgit/submodule/SubmoduleWalk;
15 19 8 subRepo Lorg/eclipse/jgit/lib/Repository;
Exception table:
from to target type
15 17 18 any
14 20 20 any
Exceptions:
throws java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException
MethodParameters:
Name Flags
clonedRepo
private org.eclipse.jgit.lib.Ref findBranchToCheckout(org.eclipse.jgit.transport.FetchResult);
descriptor: (Lorg/eclipse/jgit/transport/FetchResult;)Lorg/eclipse/jgit/lib/Ref;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=10, args_size=2
start local 0 start local 1 0: aload 1
ldc "HEAD"
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
goto 3
StackMap locals: org.eclipse.jgit.lib.Ref
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: org.eclipse.jgit.lib.ObjectId
3: astore 3
start local 3 4: aload 3
ifnonnull 6
5: aconst_null
areturn
6: StackMap locals: org.eclipse.jgit.lib.ObjectId
StackMap stack:
aload 1
ldc "refs/heads/master"
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 4
start local 4 7: aload 4
ifnull 8
aload 4
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
goto 9
StackMap locals: org.eclipse.jgit.lib.Ref
StackMap stack:
8: aconst_null
StackMap locals:
StackMap stack: org.eclipse.jgit.lib.ObjectId
9: astore 5
start local 5 10: aload 3
aload 5
invokevirtual org.eclipse.jgit.lib.ObjectId.equals:(Lorg/eclipse/jgit/lib/AnyObjectId;)Z
ifeq 12
11: aload 4
areturn
12: StackMap locals: org.eclipse.jgit.lib.ObjectId
StackMap stack:
aconst_null
astore 6
start local 6 13: aload 1
invokevirtual org.eclipse.jgit.transport.FetchResult.getAdvertisedRefs:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 8
goto 21
StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.FetchResult org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref top java.util.Iterator
StackMap stack:
14: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.eclipse.jgit.lib.Ref
astore 7
start local 7 15: aload 7
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
astore 9
start local 9 16: aload 9
ldc "refs/heads/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 18
17: goto 21
18: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.FetchResult org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.Ref java.util.Iterator java.lang.String
StackMap stack:
aload 3
aload 7
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.lib.ObjectId.equals:(Lorg/eclipse/jgit/lib/AnyObjectId;)Z
ifeq 21
19: aload 7
astore 6
20: goto 22
end local 9 end local 7 21: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.FetchResult org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
22: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.transport.FetchResult org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.Ref
StackMap stack:
aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 23 1 result Lorg/eclipse/jgit/transport/FetchResult;
1 23 2 idHEAD Lorg/eclipse/jgit/lib/Ref;
4 23 3 headId Lorg/eclipse/jgit/lib/ObjectId;
7 23 4 master Lorg/eclipse/jgit/lib/Ref;
10 23 5 objectId Lorg/eclipse/jgit/lib/ObjectId;
13 23 6 foundBranch Lorg/eclipse/jgit/lib/Ref;
15 21 7 r Lorg/eclipse/jgit/lib/Ref;
16 21 9 n Ljava/lang/String;
MethodParameters:
Name Flags
result
private void addMergeConfig(org.eclipse.jgit.lib.Repository, org.eclipse.jgit.lib.Ref);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/lib/Ref;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
invokestatic org.eclipse.jgit.lib.Repository.shortenRefName:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
ldc "branch"
2: aload 3
ldc "remote"
aload 0
getfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
3: invokevirtual org.eclipse.jgit.lib.StoredConfig.setString:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
4: aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
ldc "branch"
5: aload 3
ldc "merge"
aload 2
invokeinterface org.eclipse.jgit.lib.Ref.getName:()Ljava/lang/String;
6: invokevirtual org.eclipse.jgit.lib.StoredConfig.setString:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
7: aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
8: ldc "branch"
aconst_null
9: ldc "autosetuprebase"
10: invokevirtual org.eclipse.jgit.lib.StoredConfig.getString:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 11: ldc "always"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
12: ldc "remote"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
13: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
14: ldc "branch"
aload 3
15: ldc "rebase"
getstatic org.eclipse.jgit.lib.BranchConfig$BranchRebaseMode.REBASE:Lorg/eclipse/jgit/lib/BranchConfig$BranchRebaseMode;
16: invokevirtual org.eclipse.jgit.lib.StoredConfig.setEnum:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Enum;)V
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.eclipse.jgit.lib.Repository.getConfig:()Lorg/eclipse/jgit/lib/StoredConfig;
invokevirtual org.eclipse.jgit.lib.StoredConfig.save:()V
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 19 1 clonedRepo Lorg/eclipse/jgit/lib/Repository;
0 19 2 head Lorg/eclipse/jgit/lib/Ref;
1 19 3 branchName Ljava/lang/String;
11 19 4 autosetupRebase Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
clonedRepo
head
private org.eclipse.jgit.revwalk.RevCommit parseCommit(org.eclipse.jgit.lib.Repository, org.eclipse.jgit.lib.Ref);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/lib/Ref;)Lorg/eclipse/jgit/revwalk/RevCommit;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 4
aconst_null
astore 5
1: new org.eclipse.jgit.revwalk.RevWalk
dup
aload 1
invokespecial org.eclipse.jgit.revwalk.RevWalk.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 6
start local 6 2: aload 6
aload 2
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.revwalk.RevWalk.parseCommit:(Lorg/eclipse/jgit/lib/AnyObjectId;)Lorg/eclipse/jgit/revwalk/RevCommit;
astore 3
start local 3 3: aload 6
ifnull 9
aload 6
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
goto 9
end local 3 StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.lib.Ref top java.lang.Throwable java.lang.Throwable org.eclipse.jgit.revwalk.RevWalk
StackMap stack: java.lang.Throwable
4: astore 4
aload 6
ifnull 5
aload 6
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
end local 6 StackMap locals:
StackMap stack:
5: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 5
aload 4
ifnonnull 7
aload 5
astore 4
goto 8
StackMap locals:
StackMap stack:
7: aload 4
aload 5
if_acmpeq 8
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
8: aload 4
athrow
start local 3 9: StackMap locals: org.eclipse.jgit.api.CloneCommand org.eclipse.jgit.lib.Repository org.eclipse.jgit.lib.Ref org.eclipse.jgit.revwalk.RevCommit
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 10 1 clonedRepo Lorg/eclipse/jgit/lib/Repository;
0 10 2 ref Lorg/eclipse/jgit/lib/Ref;
3 4 3 commit Lorg/eclipse/jgit/revwalk/RevCommit;
9 10 3 commit Lorg/eclipse/jgit/revwalk/RevCommit;
2 5 6 rw Lorg/eclipse/jgit/revwalk/RevWalk;
Exception table:
from to target type
2 3 4 any
1 6 6 any
Exceptions:
throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, java.io.IOException
MethodParameters:
Name Flags
clonedRepo
ref
public org.eclipse.jgit.api.CloneCommand setURI(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.uri:Ljava/lang/String;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 uri Ljava/lang/String;
MethodParameters:
Name Flags
uri
public org.eclipse.jgit.api.CloneCommand setDirectory(java.io.File);
descriptor: (Ljava/io/File;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.gitDir:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
invokestatic org.eclipse.jgit.api.CloneCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.CloneCommand.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/CloneCommand;
0 3 1 directory Ljava/io/File;
MethodParameters:
Name Flags
directory
public org.eclipse.jgit.api.CloneCommand setGitDir(java.io.File);
descriptor: (Ljava/io/File;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.directory:Ljava/io/File;
aload 1
aload 0
getfield org.eclipse.jgit.api.CloneCommand.bare:Z
invokestatic org.eclipse.jgit.api.CloneCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.CloneCommand.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/CloneCommand;
0 3 1 gitDir Ljava/io/File;
MethodParameters:
Name Flags
gitDir
public org.eclipse.jgit.api.CloneCommand setBare(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.directory:Ljava/io/File;
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
iload 1
invokestatic org.eclipse.jgit.api.CloneCommand.validateDirs:(Ljava/io/File;Ljava/io/File;Z)V
1: aload 0
iload 1
putfield org.eclipse.jgit.api.CloneCommand.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/CloneCommand;
0 3 1 bare Z
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
bare
public org.eclipse.jgit.api.CloneCommand setFs(org.eclipse.jgit.util.FS);
descriptor: (Lorg/eclipse/jgit/util/FS;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.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/CloneCommand;
0 2 1 fs Lorg/eclipse/jgit/util/FS;
MethodParameters:
Name Flags
fs
public org.eclipse.jgit.api.CloneCommand setRemote(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc "origin"
astore 1
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jgit.api.CloneCommand.remote:Ljava/lang/String;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 4 1 remote Ljava/lang/String;
MethodParameters:
Name Flags
remote
public org.eclipse.jgit.api.CloneCommand setBranch(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc "HEAD"
astore 1
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jgit.api.CloneCommand.branch:Ljava/lang/String;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 4 1 branch Ljava/lang/String;
MethodParameters:
Name Flags
branch
public org.eclipse.jgit.api.CloneCommand setProgressMonitor(org.eclipse.jgit.lib.ProgressMonitor);
descriptor: (Lorg/eclipse/jgit/lib/ProgressMonitor;)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: getstatic org.eclipse.jgit.lib.NullProgressMonitor.INSTANCE:Lorg/eclipse/jgit/lib/NullProgressMonitor;
astore 1
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jgit.api.CloneCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 4 1 monitor Lorg/eclipse/jgit/lib/ProgressMonitor;
MethodParameters:
Name Flags
monitor
public org.eclipse.jgit.api.CloneCommand setCloneAllBranches(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jgit.api.CloneCommand.cloneAllBranches:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 cloneAllBranches Z
MethodParameters:
Name Flags
cloneAllBranches
public org.eclipse.jgit.api.CloneCommand setCloneSubmodules(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jgit.api.CloneCommand.cloneSubmodules:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 cloneSubmodules Z
MethodParameters:
Name Flags
cloneSubmodules
public org.eclipse.jgit.api.CloneCommand setBranchesToClone(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.branchesToClone:Ljava/util/Collection;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 branchesToClone Ljava/util/Collection<Ljava/lang/String;>;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)Lorg/eclipse/jgit/api/CloneCommand;
MethodParameters:
Name Flags
branchesToClone
public org.eclipse.jgit.api.CloneCommand setNoCheckout(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/CloneCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jgit.api.CloneCommand.noCheckout:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 noCheckout Z
MethodParameters:
Name Flags
noCheckout
public org.eclipse.jgit.api.CloneCommand setCallback(org.eclipse.jgit.api.CloneCommand$Callback);
descriptor: (Lorg/eclipse/jgit/api/CloneCommand$Callback;)Lorg/eclipse/jgit/api/CloneCommand;
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.CloneCommand.callback:Lorg/eclipse/jgit/api/CloneCommand$Callback;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 2 1 callback Lorg/eclipse/jgit/api/CloneCommand$Callback;
MethodParameters:
Name Flags
callback
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 21
1: aload 0
invokevirtual java.io.File.exists:()Z
ifeq 5
aload 0
invokevirtual java.io.File.isDirectory:()Z
ifne 5
2: new java.lang.IllegalStateException
dup
3: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.initFailedDirIsNoDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
4: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
ifnull 10
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 10
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 10
6: new java.lang.IllegalStateException
dup
7: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.initFailedGitDirIsNoDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
8: aload 1
aastore
9: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 2
ifeq 16
11: aload 1
ifnull 21
aload 1
aload 0
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifne 21
12: new java.lang.IllegalStateException
dup
13: 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
14: aload 1
aastore
dup
iconst_1
aload 0
aastore
15: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
ifnull 21
aload 1
aload 0
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifeq 21
17: new java.lang.IllegalStateException
dup
18: 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
19: aload 1
aastore
dup
iconst_1
aload 0
aastore
20: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 directory Ljava/io/File;
0 22 1 gitDir Ljava/io/File;
0 22 2 bare Z
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
directory
gitDir
bare
private void cleanup();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
ifnull 5
1: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directoryExistsInitially:Z
ifne 4
2: aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
bipush 13
invokestatic org.eclipse.jgit.util.FileUtils.delete:(Ljava/io/File;I)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.directory:Ljava/io/File;
invokevirtual org.eclipse.jgit.api.CloneCommand.deleteChildren:(Ljava/io/File;)V
5: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
ifnull 12
6: aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDirExistsInitially:Z
ifne 9
7: aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
bipush 13
invokestatic org.eclipse.jgit.util.FileUtils.delete:(Ljava/io/File;I)V
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.eclipse.jgit.api.CloneCommand.gitDir:Ljava/io/File;
invokevirtual org.eclipse.jgit.api.CloneCommand.deleteChildren:(Ljava/io/File;)V
10: goto 12
StackMap locals:
StackMap stack: java.io.IOException
11: pop
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jgit/api/CloneCommand;
Exception table:
from to target type
0 10 11 Class java.io.IOException
private void deleteChildren(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.io.File[]
StackMap stack:
aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: org.eclipse.jgit.api.CloneCommand java.io.File java.io.File[] top int int java.io.File[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 3
bipush 13
invokestatic org.eclipse.jgit.util.FileUtils.delete:(Ljava/io/File;I)V
end local 3 6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 4
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jgit/api/CloneCommand;
0 9 1 file Ljava/io/File;
1 9 2 files [Ljava/io/File;
5 6 3 child Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
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.CloneCommand.call:()Lorg/eclipse/jgit/api/Git;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
private void lambda$0();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.api.CloneCommand.cleanup:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/api/CloneCommand;
}
Signature: Lorg/eclipse/jgit/api/TransportCommand<Lorg/eclipse/jgit/api/CloneCommand;Lorg/eclipse/jgit/api/Git;>;
SourceFile: "CloneCommand.java"
NestMembers:
org.eclipse.jgit.api.CloneCommand$Callback
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Callback = org.eclipse.jgit.api.CloneCommand$Callback of org.eclipse.jgit.api.CloneCommand
public final BranchRebaseMode = org.eclipse.jgit.lib.BranchConfig$BranchRebaseMode of org.eclipse.jgit.lib.BranchConfig
public final Result = org.eclipse.jgit.lib.RefUpdate$Result of org.eclipse.jgit.lib.RefUpdate