1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.submodule;
11
12 import org.eclipse.jgit.lib.ObjectId;
13
14
15
16
17 public class SubmoduleStatus {
18
19 private final SubmoduleStatusType type;
20
21 private final String path;
22
23 private final ObjectId indexId;
24
25 private final ObjectId headId;
26
27
28
29
30
31
32
33
34
35
36
37
38 public SubmoduleStatus(final SubmoduleStatusType type, final String path,
39 final ObjectId indexId) {
40 this(type, path, indexId, null);
41 }
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 public SubmoduleStatus(final SubmoduleStatusType type, final String path,
57 final ObjectId indexId, final ObjectId headId) {
58 this.type = type;
59 this.path = path;
60 this.indexId = indexId;
61 this.headId = headId;
62 }
63
64
65
66
67
68
69 public SubmoduleStatusType getType() {
70 return type;
71 }
72
73
74
75
76
77
78 public String getPath() {
79 return path;
80 }
81
82
83
84
85
86
87 public ObjectId getIndexId() {
88 return indexId;
89 }
90
91
92
93
94
95
96 public ObjectId getHeadId() {
97 return headId;
98 }
99 }