public class org.eclipse.jgit.api.ResetCommand extends org.eclipse.jgit.api.GitCommand<org.eclipse.jgit.lib.Ref>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jgit.api.ResetCommand
super_class: org.eclipse.jgit.api.GitCommand
{
private java.lang.String ref;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.eclipse.jgit.api.ResetCommand$ResetType mode;
descriptor: Lorg/eclipse/jgit/api/ResetCommand$ResetType;
flags: (0x0002) ACC_PRIVATE
private java.util.Collection<java.lang.String> filepaths;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private boolean isReflogDisabled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.eclipse.jgit.lib.ProgressMonitor monitor;
descriptor: Lorg/eclipse/jgit/lib/ProgressMonitor;
flags: (0x0002) ACC_PRIVATE
private static volatile int[] $SWITCH_TABLE$org$eclipse$jgit$api$ResetCommand$ResetType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(org.eclipse.jgit.lib.Repository);
descriptor: (Lorg/eclipse/jgit/lib/Repository;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.eclipse.jgit.api.GitCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
1: aload 0
aconst_null
putfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
2: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
3: aload 0
getstatic org.eclipse.jgit.lib.NullProgressMonitor.INSTANCE:Lorg/eclipse/jgit/lib/NullProgressMonitor;
putfield org.eclipse.jgit.api.ResetCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 5 1 repo Lorg/eclipse/jgit/lib/Repository;
MethodParameters:
Name Flags
repo
public org.eclipse.jgit.lib.Ref call();
descriptor: ()Lorg/eclipse/jgit/lib/Ref;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.checkCallable:()V
1: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.getRepositoryState:()Lorg/eclipse/jgit/lib/RepositoryState;
astore 1
start local 1 2: aload 1
getstatic org.eclipse.jgit.lib.RepositoryState.MERGING:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 5
3: aload 1
getstatic org.eclipse.jgit.lib.RepositoryState.MERGING_RESOLVED:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 5
4: iconst_0
goto 6
StackMap locals: org.eclipse.jgit.lib.RepositoryState
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: istore 2
start local 2 7: aload 1
8: getstatic org.eclipse.jgit.lib.RepositoryState.CHERRY_PICKING:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 11
9: aload 1
getstatic org.eclipse.jgit.lib.RepositoryState.CHERRY_PICKING_RESOLVED:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 11
10: iconst_0
goto 12
StackMap locals: int
StackMap stack:
11: iconst_1
StackMap locals:
StackMap stack: int
12: istore 3
start local 3 13: aload 1
getstatic org.eclipse.jgit.lib.RepositoryState.REVERTING:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 16
14: aload 1
getstatic org.eclipse.jgit.lib.RepositoryState.REVERTING_RESOLVED:Lorg/eclipse/jgit/lib/RepositoryState;
invokevirtual org.eclipse.jgit.lib.RepositoryState.equals:(Ljava/lang/Object;)Z
ifne 16
15: iconst_0
goto 17
StackMap locals: int
StackMap stack:
16: iconst_1
StackMap locals:
StackMap stack: int
17: istore 4
start local 4 18: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.resolveRefToCommitId:()Lorg/eclipse/jgit/lib/ObjectId;
astore 5
start local 5 19: aload 0
getfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
ifnull 23
aload 5
ifnonnull 23
20: new org.eclipse.jgit.api.errors.JGitInternalException
dup
21: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.invalidRefName:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
aastore
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
22: invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: int org.eclipse.jgit.lib.ObjectId
StackMap stack:
aload 5
ifnull 26
24: aload 0
aload 5
invokevirtual org.eclipse.jgit.api.ResetCommand.parseCommit:(Lorg/eclipse/jgit/lib/ObjectId;)Lorg/eclipse/jgit/revwalk/RevCommit;
invokevirtual org.eclipse.jgit.revwalk.RevCommit.getTree:()Lorg/eclipse/jgit/revwalk/RevTree;
astore 6
start local 6 25: goto 27
end local 6 26: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 27: StackMap locals: org.eclipse.jgit.lib.ObjectId
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
invokeinterface java.util.Collection.isEmpty:()Z
ifne 32
28: aload 0
aload 6
invokevirtual org.eclipse.jgit.api.ResetCommand.resetIndexForPaths:(Lorg/eclipse/jgit/lib/ObjectId;)V
29: aload 0
iconst_0
invokevirtual org.eclipse.jgit.api.ResetCommand.setCallable:(Z)V
30: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
ldc "HEAD"
invokevirtual org.eclipse.jgit.lib.Repository.exactRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
31: areturn
32: StackMap locals:
StackMap stack:
aload 5
ifnull 48
33: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
ldc "HEAD"
invokevirtual org.eclipse.jgit.lib.Repository.updateRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/RefUpdate;
astore 8
start local 8 34: aload 8
aload 5
invokevirtual org.eclipse.jgit.lib.RefUpdate.setNewObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
35: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.getRefOrHEAD:()Ljava/lang/String;
invokestatic org.eclipse.jgit.lib.Repository.shortenRefName:(Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 36: aload 0
getfield org.eclipse.jgit.api.ResetCommand.isReflogDisabled:Z
ifeq 39
37: aload 8
invokevirtual org.eclipse.jgit.lib.RefUpdate.disableRefLog:()V
38: goto 41
39: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.RepositoryState int int int org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.ObjectId top org.eclipse.jgit.lib.RefUpdate java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": updating "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "HEAD"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 10
start local 10 40: aload 8
aload 10
iconst_0
invokevirtual org.eclipse.jgit.lib.RefUpdate.setRefLogMessage:(Ljava/lang/String;Z)V
end local 10 41: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.eclipse.jgit.lib.RefUpdate.forceUpdate:()Lorg/eclipse/jgit/lib/RefUpdate$Result;
getstatic org.eclipse.jgit.lib.RefUpdate$Result.LOCK_FAILURE:Lorg/eclipse/jgit/lib/RefUpdate$Result;
if_acmpne 45
42: new org.eclipse.jgit.api.errors.JGitInternalException
dup
43: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.cannotLock:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
invokevirtual org.eclipse.jgit.lib.RefUpdate.getName:()Ljava/lang/String;
aastore
44: 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
45: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.eclipse.jgit.lib.RefUpdate.getOldObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
astore 10
start local 10 46: aload 10
ifnull 48
47: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aload 10
invokevirtual org.eclipse.jgit.lib.Repository.writeOrigHead:(Lorg/eclipse/jgit/lib/ObjectId;)V
end local 10 end local 9 end local 8 48: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.RepositoryState int int int org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.ObjectId
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
ldc "HEAD"
invokevirtual org.eclipse.jgit.lib.Repository.exactRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 7
start local 7 49: aload 0
getfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
ifnonnull 51
50: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.MIXED:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
putfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
51: StackMap locals: org.eclipse.jgit.lib.Ref
StackMap stack:
invokestatic org.eclipse.jgit.api.ResetCommand.$SWITCH_TABLE$org$eclipse$jgit$api$ResetCommand$ResetType:()[I
aload 0
getfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iaload
tableswitch { // 1 - 5
1: 56
2: 54
3: 52
4: 57
5: 57
default: 58
}
52: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual org.eclipse.jgit.api.ResetCommand.checkoutIndex:(Lorg/eclipse/jgit/lib/ObjectId;)V
53: goto 58
54: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual org.eclipse.jgit.api.ResetCommand.resetIndex:(Lorg/eclipse/jgit/lib/ObjectId;)V
55: goto 58
56: StackMap locals:
StackMap stack:
goto 58
57: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
58: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.SOFT:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
if_acmpeq 67
59: iload 2
ifeq 61
60: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.resetMerge:()V
goto 67
61: StackMap locals:
StackMap stack:
iload 3
ifeq 63
62: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.resetCherryPick:()V
goto 67
63: StackMap locals:
StackMap stack:
iload 4
ifeq 65
64: aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.resetRevert:()V
goto 67
65: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.readSquashCommitMsg:()Ljava/lang/String;
ifnull 67
66: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeSquashCommitMsg:(Ljava/lang/String;)V
67: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual org.eclipse.jgit.api.ResetCommand.setCallable:(Z)V
68: aload 7
69: areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 70: StackMap locals: org.eclipse.jgit.api.ResetCommand
StackMap stack: java.io.IOException
astore 1
start local 1 71: new org.eclipse.jgit.api.errors.JGitInternalException
dup
72: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.exceptionCaughtDuringExecutionOfResetCommand:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
73: aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
74: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
75: aload 1
76: 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 77 0 this Lorg/eclipse/jgit/api/ResetCommand;
2 70 1 state Lorg/eclipse/jgit/lib/RepositoryState;
7 70 2 merging Z
13 70 3 cherryPicking Z
18 70 4 reverting Z
19 70 5 commitId Lorg/eclipse/jgit/lib/ObjectId;
25 26 6 commitTree Lorg/eclipse/jgit/lib/ObjectId;
27 70 6 commitTree Lorg/eclipse/jgit/lib/ObjectId;
49 70 7 result Lorg/eclipse/jgit/lib/Ref;
34 48 8 ru Lorg/eclipse/jgit/lib/RefUpdate;
36 48 9 refName Ljava/lang/String;
40 41 10 message Ljava/lang/String;
46 48 10 origHead Lorg/eclipse/jgit/lib/ObjectId;
71 77 1 e Ljava/io/IOException;
Exception table:
from to target type
1 31 70 Class java.io.IOException
32 69 70 Class java.io.IOException
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.api.errors.CheckoutConflictException
private org.eclipse.jgit.revwalk.RevCommit parseCommit(org.eclipse.jgit.lib.ObjectId);
descriptor: (Lorg/eclipse/jgit/lib/ObjectId;)Lorg/eclipse/jgit/revwalk/RevCommit;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: new org.eclipse.jgit.revwalk.RevWalk
dup
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokespecial org.eclipse.jgit.revwalk.RevWalk.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 4
start local 4 2: aload 4
aload 1
invokevirtual org.eclipse.jgit.revwalk.RevWalk.parseCommit:(Lorg/eclipse/jgit/lib/AnyObjectId;)Lorg/eclipse/jgit/revwalk/RevCommit;
3: aload 4
ifnull 4
aload 4
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
4: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId java.lang.Throwable java.lang.Throwable org.eclipse.jgit.revwalk.RevWalk
StackMap stack: org.eclipse.jgit.revwalk.RevCommit
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 4
ifnull 7
aload 4
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId
StackMap stack: java.io.IOException
11: astore 2
start local 2 12: new org.eclipse.jgit.api.errors.JGitInternalException
dup
13: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.cannotReadCommit:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual org.eclipse.jgit.lib.ObjectId.toString:()Ljava/lang/String;
aastore
14: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
15: aload 2
16: invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 17 1 commitId Lorg/eclipse/jgit/lib/ObjectId;
2 7 4 rw Lorg/eclipse/jgit/revwalk/RevWalk;
12 17 2 e Ljava/io/IOException;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
0 4 11 Class java.io.IOException
5 11 11 Class java.io.IOException
MethodParameters:
Name Flags
commitId
private org.eclipse.jgit.lib.ObjectId resolveRefToCommitId();
descriptor: ()Lorg/eclipse/jgit/lib/ObjectId;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.getRefOrHEAD:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "^{commit}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.eclipse.jgit.lib.Repository.resolve:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/ObjectId;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new org.eclipse.jgit.api.errors.JGitInternalException
dup
4: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.cannotRead:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.eclipse.jgit.api.ResetCommand.getRefOrHEAD:()Ljava/lang/String;
aastore
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: aload 1
6: 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 7 0 this Lorg/eclipse/jgit/api/ResetCommand;
3 7 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public org.eclipse.jgit.api.ResetCommand setRef(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/ResetCommand;
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.ResetCommand.ref: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/ResetCommand;
0 2 1 ref Ljava/lang/String;
MethodParameters:
Name Flags
ref
public org.eclipse.jgit.api.ResetCommand setMode(org.eclipse.jgit.api.ResetCommand$ResetType);
descriptor: (Lorg/eclipse/jgit/api/ResetCommand$ResetType;)Lorg/eclipse/jgit/api/ResetCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
invokeinterface java.util.Collection.isEmpty:()Z
ifne 5
1: new org.eclipse.jgit.api.errors.JGitInternalException
dup
2: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.illegalCombinationOfArguments:Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: ldc "[--mixed | --soft | --hard]"
aastore
dup
iconst_1
ldc "<paths>..."
aastore
4: 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
5: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
6: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 7 1 mode Lorg/eclipse/jgit/api/ResetCommand$ResetType;
MethodParameters:
Name Flags
mode
public org.eclipse.jgit.api.ResetCommand addPath(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/ResetCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
ifnull 5
1: new org.eclipse.jgit.api.errors.JGitInternalException
dup
2: invokestatic org.eclipse.jgit.internal.JGitText.get:()Lorg/eclipse/jgit/internal/JGitText;
getfield org.eclipse.jgit.internal.JGitText.illegalCombinationOfArguments:Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "<paths>..."
aastore
dup
iconst_1
3: ldc "[--mixed | --soft | --hard]"
aastore
4: 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
5: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
6: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 7 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public org.eclipse.jgit.api.ResetCommand disableRefLog(boolean);
descriptor: (Z)Lorg/eclipse/jgit/api/ResetCommand;
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.ResetCommand.isReflogDisabled: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/ResetCommand;
0 2 1 disable Z
MethodParameters:
Name Flags
disable
public boolean isReflogDisabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.isReflogDisabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/api/ResetCommand;
private java.lang.String getRefOrHEAD();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
ifnull 2
1: aload 0
getfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
ldc "HEAD"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/ResetCommand;
public org.eclipse.jgit.api.ResetCommand setProgressMonitor(org.eclipse.jgit.lib.ProgressMonitor);
descriptor: (Lorg/eclipse/jgit/lib/ProgressMonitor;)Lorg/eclipse/jgit/api/ResetCommand;
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.ResetCommand.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/ResetCommand;
0 4 1 monitor Lorg/eclipse/jgit/lib/ProgressMonitor;
MethodParameters:
Name Flags
monitor
private void resetIndexForPaths(org.eclipse.jgit.lib.ObjectId);
descriptor: (Lorg/eclipse/jgit/lib/ObjectId;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: new org.eclipse.jgit.treewalk.TreeWalk
dup
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokespecial org.eclipse.jgit.treewalk.TreeWalk.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 5
start local 5 3: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.lockDirCache:()Lorg/eclipse/jgit/dircache/DirCache;
astore 2
4: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.builder:()Lorg/eclipse/jgit/dircache/DirCacheBuilder;
astore 6
start local 6 5: aload 5
new org.eclipse.jgit.dircache.DirCacheBuildIterator
dup
aload 6
invokespecial org.eclipse.jgit.dircache.DirCacheBuildIterator.<init>:(Lorg/eclipse/jgit/dircache/DirCacheBuilder;)V
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;)I
pop
6: aload 1
ifnull 8
7: aload 5
aload 1
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/lib/AnyObjectId;)I
pop
goto 9
8: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache java.lang.Throwable java.lang.Throwable org.eclipse.jgit.treewalk.TreeWalk org.eclipse.jgit.dircache.DirCacheBuilder
StackMap stack:
aload 5
new org.eclipse.jgit.treewalk.EmptyTreeIterator
dup
invokespecial org.eclipse.jgit.treewalk.EmptyTreeIterator.<init>:()V
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;)I
pop
9: StackMap locals:
StackMap stack:
aload 5
aload 0
getfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
invokestatic org.eclipse.jgit.treewalk.filter.PathFilterGroup.createFromStrings:(Ljava/util/Collection;)Lorg/eclipse/jgit/treewalk/filter/TreeFilter;
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.setFilter:(Lorg/eclipse/jgit/treewalk/filter/TreeFilter;)V
10: aload 5
iconst_1
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.setRecursive:(Z)V
11: goto 20
12: StackMap locals:
StackMap stack:
aload 5
iconst_1
13: ldc Lorg/eclipse/jgit/treewalk/CanonicalTreeParser;
14: invokevirtual org.eclipse.jgit.treewalk.TreeWalk.getTree:(ILjava/lang/Class;)Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;
checkcast org.eclipse.jgit.treewalk.CanonicalTreeParser
astore 7
start local 7 15: aload 7
ifnull 20
16: new org.eclipse.jgit.dircache.DirCacheEntry
dup
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.getRawPath:()[B
invokespecial org.eclipse.jgit.dircache.DirCacheEntry.<init>:([B)V
astore 8
start local 8 17: aload 8
aload 7
invokevirtual org.eclipse.jgit.treewalk.CanonicalTreeParser.getEntryFileMode:()Lorg/eclipse/jgit/lib/FileMode;
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setFileMode:(Lorg/eclipse/jgit/lib/FileMode;)V
18: aload 8
aload 7
invokevirtual org.eclipse.jgit.treewalk.CanonicalTreeParser.getEntryObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
19: aload 6
aload 8
invokevirtual org.eclipse.jgit.dircache.DirCacheBuilder.add:(Lorg/eclipse/jgit/dircache/DirCacheEntry;)V
end local 8 end local 7 20: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.next:()Z
ifne 12
21: aload 6
invokevirtual org.eclipse.jgit.dircache.DirCacheBuilder.commit:()Z
pop
end local 6 22: aload 5
ifnull 34
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.close:()V
goto 34
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache java.lang.Throwable java.lang.Throwable org.eclipse.jgit.treewalk.TreeWalk
StackMap stack: java.lang.Throwable
23: astore 3
aload 5
ifnull 24
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.close:()V
end local 5 StackMap locals:
StackMap stack:
24: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 4
aload 3
ifnonnull 26
aload 4
astore 3
goto 27
StackMap locals:
StackMap stack:
26: aload 3
aload 4
if_acmpeq 27
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 3
athrow
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache
StackMap stack: java.io.IOException
28: astore 3
start local 3 29: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 30: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
31: aload 2
ifnull 33
32: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
33: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache top top top top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
34: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache
StackMap stack:
aload 2
ifnull 36
35: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
36: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 37 1 commitTree Lorg/eclipse/jgit/lib/ObjectId;
1 37 2 dc Lorg/eclipse/jgit/dircache/DirCache;
3 24 5 tw Lorg/eclipse/jgit/treewalk/TreeWalk;
5 22 6 builder Lorg/eclipse/jgit/dircache/DirCacheBuilder;
15 20 7 tree Lorg/eclipse/jgit/treewalk/CanonicalTreeParser;
17 20 8 entry Lorg/eclipse/jgit/dircache/DirCacheEntry;
29 30 3 e Ljava/io/IOException;
Exception table:
from to target type
3 22 23 any
2 25 25 any
1 28 28 Class java.io.IOException
1 30 30 any
MethodParameters:
Name Flags
commitTree
private void resetIndex(org.eclipse.jgit.lib.ObjectId);
descriptor: (Lorg/eclipse/jgit/lib/ObjectId;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.lockDirCache:()Lorg/eclipse/jgit/dircache/DirCache;
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: new org.eclipse.jgit.treewalk.TreeWalk
dup
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokespecial org.eclipse.jgit.treewalk.TreeWalk.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 5
start local 5 3: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.builder:()Lorg/eclipse/jgit/dircache/DirCacheBuilder;
astore 6
start local 6 4: aload 1
ifnull 6
5: aload 5
aload 1
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/lib/AnyObjectId;)I
pop
goto 7
6: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache java.lang.Throwable java.lang.Throwable org.eclipse.jgit.treewalk.TreeWalk org.eclipse.jgit.dircache.DirCacheBuilder
StackMap stack:
aload 5
new org.eclipse.jgit.treewalk.EmptyTreeIterator
dup
invokespecial org.eclipse.jgit.treewalk.EmptyTreeIterator.<init>:()V
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;)I
pop
7: StackMap locals:
StackMap stack:
aload 5
new org.eclipse.jgit.dircache.DirCacheIterator
dup
aload 2
invokespecial org.eclipse.jgit.dircache.DirCacheIterator.<init>:(Lorg/eclipse/jgit/dircache/DirCache;)V
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.addTree:(Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;)I
pop
8: aload 5
iconst_1
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.setRecursive:(Z)V
9: goto 26
10: StackMap locals:
StackMap stack:
aload 5
iconst_0
11: ldc Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;
12: invokevirtual org.eclipse.jgit.treewalk.TreeWalk.getTree:(ILjava/lang/Class;)Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;
astore 7
start local 7 13: aload 7
ifnonnull 15
14: goto 26
15: StackMap locals: org.eclipse.jgit.treewalk.AbstractTreeIterator
StackMap stack:
new org.eclipse.jgit.dircache.DirCacheEntry
dup
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.getRawPath:()[B
invokespecial org.eclipse.jgit.dircache.DirCacheEntry.<init>:([B)V
astore 8
start local 8 16: aload 8
aload 7
invokevirtual org.eclipse.jgit.treewalk.AbstractTreeIterator.getEntryFileMode:()Lorg/eclipse/jgit/lib/FileMode;
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setFileMode:(Lorg/eclipse/jgit/lib/FileMode;)V
17: aload 8
aload 7
invokevirtual org.eclipse.jgit.treewalk.AbstractTreeIterator.idBuffer:()[B
aload 7
invokevirtual org.eclipse.jgit.treewalk.AbstractTreeIterator.idOffset:()I
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setObjectIdFromRaw:([BI)V
18: aload 5
iconst_1
19: ldc Lorg/eclipse/jgit/dircache/DirCacheIterator;
20: invokevirtual org.eclipse.jgit.treewalk.TreeWalk.getTree:(ILjava/lang/Class;)Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;
checkcast org.eclipse.jgit.dircache.DirCacheIterator
astore 9
start local 9 21: aload 9
ifnull 25
aload 9
aload 7
invokevirtual org.eclipse.jgit.dircache.DirCacheIterator.idEqual:(Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;)Z
ifeq 25
22: aload 9
invokevirtual org.eclipse.jgit.dircache.DirCacheIterator.getDirCacheEntry:()Lorg/eclipse/jgit/dircache/DirCacheEntry;
astore 10
start local 10 23: aload 8
aload 10
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getLastModifiedInstant:()Ljava/time/Instant;
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setLastModified:(Ljava/time/Instant;)V
24: aload 8
aload 10
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getLength:()I
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.setLength:(I)V
end local 10 25: StackMap locals: org.eclipse.jgit.dircache.DirCacheEntry org.eclipse.jgit.dircache.DirCacheIterator
StackMap stack:
aload 6
aload 8
invokevirtual org.eclipse.jgit.dircache.DirCacheBuilder.add:(Lorg/eclipse/jgit/dircache/DirCacheEntry;)V
end local 9 end local 8 end local 7 26: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.next:()Z
ifne 10
27: aload 6
invokevirtual org.eclipse.jgit.dircache.DirCacheBuilder.commit:()Z
pop
end local 6 28: aload 5
ifnull 37
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.close:()V
goto 37
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache java.lang.Throwable java.lang.Throwable org.eclipse.jgit.treewalk.TreeWalk
StackMap stack: java.lang.Throwable
29: astore 3
aload 5
ifnull 30
aload 5
invokevirtual org.eclipse.jgit.treewalk.TreeWalk.close:()V
end local 5 StackMap locals:
StackMap stack:
30: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
31: astore 4
aload 3
ifnonnull 32
aload 4
astore 3
goto 33
StackMap locals:
StackMap stack:
32: aload 3
aload 4
if_acmpeq 33
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
33: aload 3
athrow
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache
StackMap stack: java.lang.Throwable
34: astore 11
35: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
36: aload 11
athrow
37: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
38: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 39 1 commitTree Lorg/eclipse/jgit/lib/ObjectId;
1 39 2 dc Lorg/eclipse/jgit/dircache/DirCache;
3 30 5 walk Lorg/eclipse/jgit/treewalk/TreeWalk;
4 28 6 builder Lorg/eclipse/jgit/dircache/DirCacheBuilder;
13 26 7 cIter Lorg/eclipse/jgit/treewalk/AbstractTreeIterator;
16 26 8 entry Lorg/eclipse/jgit/dircache/DirCacheEntry;
21 26 9 dcIter Lorg/eclipse/jgit/dircache/DirCacheIterator;
23 25 10 indexEntry Lorg/eclipse/jgit/dircache/DirCacheEntry;
Exception table:
from to target type
3 28 29 any
2 31 31 any
1 34 34 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commitTree
private void checkoutIndex(org.eclipse.jgit.lib.ObjectId);
descriptor: (Lorg/eclipse/jgit/lib/ObjectId;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.lockDirCache:()Lorg/eclipse/jgit/dircache/DirCache;
astore 2
start local 2 1: new org.eclipse.jgit.dircache.DirCacheCheckout
dup
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aload 2
2: aload 1
3: invokespecial org.eclipse.jgit.dircache.DirCacheCheckout.<init>:(Lorg/eclipse/jgit/lib/Repository;Lorg/eclipse/jgit/dircache/DirCache;Lorg/eclipse/jgit/lib/ObjectId;)V
astore 3
start local 3 4: aload 3
iconst_0
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.setFailOnConflict:(Z)V
5: aload 3
aload 0
getfield org.eclipse.jgit.api.ResetCommand.monitor:Lorg/eclipse/jgit/lib/ProgressMonitor;
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.setProgressMonitor:(Lorg/eclipse/jgit/lib/ProgressMonitor;)V
6: aload 3
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.checkout:()Z
pop
7: goto 15
StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache org.eclipse.jgit.dircache.DirCacheCheckout
StackMap stack: org.eclipse.jgit.errors.CheckoutConflictException
8: astore 4
start local 4 9: new org.eclipse.jgit.api.errors.CheckoutConflictException
dup
aload 3
invokevirtual org.eclipse.jgit.dircache.DirCacheCheckout.getConflicts:()Ljava/util/List;
10: aload 4
11: invokespecial org.eclipse.jgit.api.errors.CheckoutConflictException.<init>:(Ljava/util/List;Lorg/eclipse/jgit/errors/CheckoutConflictException;)V
athrow
end local 4 end local 3 12: StackMap locals: org.eclipse.jgit.api.ResetCommand org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.dircache.DirCache
StackMap stack: java.lang.Throwable
astore 5
13: aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
14: aload 5
athrow
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.unlock:()V
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jgit/api/ResetCommand;
0 17 1 commitTree Lorg/eclipse/jgit/lib/ObjectId;
1 17 2 dc Lorg/eclipse/jgit/dircache/DirCache;
4 12 3 checkout Lorg/eclipse/jgit/dircache/DirCacheCheckout;
9 12 4 cce Lorg/eclipse/jgit/errors/CheckoutConflictException;
Exception table:
from to target type
6 7 8 Class org.eclipse.jgit.errors.CheckoutConflictException
1 12 12 any
Exceptions:
throws java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException
MethodParameters:
Name Flags
commitTree
private void resetMerge();
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.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeMergeHeads:(Ljava/util/List;)V
1: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeMergeCommitMsg:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/ResetCommand;
Exceptions:
throws java.io.IOException
private void resetCherryPick();
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.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeCherryPickHead:(Lorg/eclipse/jgit/lib/ObjectId;)V
1: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeMergeCommitMsg:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/ResetCommand;
Exceptions:
throws java.io.IOException
private void resetRevert();
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.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeRevertHead:(Lorg/eclipse/jgit/lib/ObjectId;)V
1: aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aconst_null
invokevirtual org.eclipse.jgit.lib.Repository.writeMergeCommitMsg:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/ResetCommand;
Exceptions:
throws java.io.IOException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ResetCommand [repo="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jgit.api.ResetCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", ref="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jgit.api.ResetCommand.ref:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", mode="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jgit.api.ResetCommand.mode:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: ldc ", isReflogDisabled="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jgit.api.ResetCommand.isReflogDisabled:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
ldc ", filepaths="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
getfield org.eclipse.jgit.api.ResetCommand.filepaths:Ljava/util/Collection;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/api/ResetCommand;
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.ResetCommand.call:()Lorg/eclipse/jgit/lib/Ref;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
static int[] $SWITCH_TABLE$org$eclipse$jgit$api$ResetCommand$ResetType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.eclipse.jgit.api.ResetCommand.$SWITCH_TABLE$org$eclipse$jgit$api$ResetCommand$ResetType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.eclipse.jgit.api.ResetCommand$ResetType.values:()[Lorg/eclipse/jgit/api/ResetCommand$ResetType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.HARD:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.KEEP:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iconst_5
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.MERGE:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iconst_4
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.MIXED:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.eclipse.jgit.api.ResetCommand$ResetType.SOFT:Lorg/eclipse/jgit/api/ResetCommand$ResetType;
invokevirtual org.eclipse.jgit.api.ResetCommand$ResetType.ordinal:()I
iconst_1
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic org.eclipse.jgit.api.ResetCommand.$SWITCH_TABLE$org$eclipse$jgit$api$ResetCommand$ResetType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
}
Signature: Lorg/eclipse/jgit/api/GitCommand<Lorg/eclipse/jgit/lib/Ref;>;
SourceFile: "ResetCommand.java"
NestMembers:
org.eclipse.jgit.api.ResetCommand$ResetType
InnerClasses:
public final ResetType = org.eclipse.jgit.api.ResetCommand$ResetType of org.eclipse.jgit.api.ResetCommand
public final Result = org.eclipse.jgit.lib.RefUpdate$Result of org.eclipse.jgit.lib.RefUpdate