git-semver-tagger 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2349 -1496
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +98 -98
- package/kotlin/clikt-clikt.js +1893 -1891
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +463 -463
- package/kotlin/command-line-tools-tagger-cli.js +221 -221
- package/kotlin/kotlin-kotlin-stdlib.js +976 -939
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2052 -1916
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1347 -1347
- package/kotlin/mordant-mordant.js +1588 -1588
- package/kotlin/tools-cli-tools.js +5 -5
- package/kotlin/tools-digger-core.js +8 -8
- package/kotlin/tools-git-adapter.js +132 -132
- package/kotlin/tools-tagger-core.js +152 -152
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function (_, process, fs, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var until = kotlin_kotlin.$_$.
|
|
5
|
-
var slice = kotlin_kotlin.$_$.
|
|
6
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
7
|
-
var to = kotlin_kotlin.$_$.
|
|
8
|
-
var json = kotlin_kotlin.$_$.
|
|
4
|
+
var until = kotlin_kotlin.$_$.ra;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.j7;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.q5;
|
|
7
|
+
var to = kotlin_kotlin.$_$.ef;
|
|
8
|
+
var json = kotlin_kotlin.$_$.t9;
|
|
9
9
|
//endregion
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
//endregion
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.g;
|
|
5
5
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
6
6
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.w;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
8
|
+
var initMetadataForObject = kotlin_kotlin.$_$.g9;
|
|
9
9
|
//endregion
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
initMetadataForObject(Defaults, 'Defaults');
|
|
12
12
|
//endregion
|
|
13
13
|
function Defaults() {
|
|
14
14
|
Defaults_instance = this;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
15
|
+
this.n1m_1 = Regex_init_$Create$('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
16
|
+
this.o1m_1 = Regex_init_$Create$('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
17
|
+
this.p1m_1 = Regex_init_$Create$('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
18
|
+
this.q1m_1 = Regex_init_$Create$('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
19
|
+
this.r1m_1 = Regex_init_$Create$_0('\\[(?<storyId>.*?)\\]');
|
|
20
|
+
this.s1m_1 = Regex_init_$Create$_0('-(?<ease>[1-5])-');
|
|
21
21
|
}
|
|
22
22
|
var Defaults_instance;
|
|
23
23
|
function Defaults_getInstance() {
|
|
@@ -2,49 +2,49 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
8
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var plus = kotlin_kotlin.$_$.
|
|
13
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
5
|
+
var toString = kotlin_kotlin.$_$.fa;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
7
|
+
var getStringHashCode = kotlin_kotlin.$_$.z8;
|
|
8
|
+
var hashCode = kotlin_kotlin.$_$.a9;
|
|
9
|
+
var THROW_CCE = kotlin_kotlin.$_$.de;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.u8;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.b9;
|
|
12
|
+
var plus = kotlin_kotlin.$_$.x6;
|
|
13
|
+
var emptyMap = kotlin_kotlin.$_$.u5;
|
|
14
14
|
var VOID = kotlin_kotlin.$_$.f;
|
|
15
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
16
|
-
var listOf = kotlin_kotlin.$_$.
|
|
17
|
-
var split = kotlin_kotlin.$_$.
|
|
15
|
+
var emptyList = kotlin_kotlin.$_$.t5;
|
|
16
|
+
var listOf = kotlin_kotlin.$_$.q6;
|
|
17
|
+
var split = kotlin_kotlin.$_$.oc;
|
|
18
18
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
19
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
20
|
-
var reversed = kotlin_kotlin.$_$.
|
|
19
|
+
var joinToString = kotlin_kotlin.$_$.f6;
|
|
20
|
+
var reversed = kotlin_kotlin.$_$.e7;
|
|
21
21
|
var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
22
|
-
var last = kotlin_kotlin.$_$.
|
|
23
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
24
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
25
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
22
|
+
var last = kotlin_kotlin.$_$.m6;
|
|
23
|
+
var Unit_instance = kotlin_kotlin.$_$.e4;
|
|
24
|
+
var isBlank = kotlin_kotlin.$_$.xb;
|
|
25
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.c5;
|
|
26
26
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
27
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
28
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
29
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
30
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var to = kotlin_kotlin.$_$.
|
|
32
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
33
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
34
|
-
var toInt = kotlin_kotlin.$_$.
|
|
35
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
36
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
37
|
-
var trim = kotlin_kotlin.$_$.
|
|
38
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
39
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
40
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
41
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
42
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
43
|
-
var first = kotlin_kotlin.$_$.
|
|
44
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
45
|
-
var json = kotlin_kotlin.$_$.
|
|
27
|
+
var charSequenceLength = kotlin_kotlin.$_$.r8;
|
|
28
|
+
var startsWith = kotlin_kotlin.$_$.pc;
|
|
29
|
+
var listOf_0 = kotlin_kotlin.$_$.p6;
|
|
30
|
+
var plus_0 = kotlin_kotlin.$_$.a7;
|
|
31
|
+
var to = kotlin_kotlin.$_$.ef;
|
|
32
|
+
var mapOf = kotlin_kotlin.$_$.s6;
|
|
33
|
+
var firstOrNull = kotlin_kotlin.$_$.w5;
|
|
34
|
+
var toInt = kotlin_kotlin.$_$.ad;
|
|
35
|
+
var Companion_instance = kotlin_kotlin.$_$.z3;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.l9;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.ld;
|
|
38
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
39
|
+
var createFailure = kotlin_kotlin.$_$.se;
|
|
40
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.c2;
|
|
41
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
42
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.w8;
|
|
43
|
+
var first = kotlin_kotlin.$_$.x5;
|
|
44
|
+
var copyToArray = kotlin_kotlin.$_$.q5;
|
|
45
|
+
var json = kotlin_kotlin.$_$.t9;
|
|
46
46
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
47
|
-
var toList = kotlin_kotlin.$_$.
|
|
47
|
+
var toList = kotlin_kotlin.$_$.r7;
|
|
48
48
|
//endregion
|
|
49
49
|
//region block: pre-declaration
|
|
50
50
|
initMetadataForClass(CommitRef, 'CommitRef');
|
|
@@ -53,23 +53,23 @@
|
|
|
53
53
|
initMetadataForClass(TagRef, 'TagRef');
|
|
54
54
|
//endregion
|
|
55
55
|
function CommitRef(id, authorEmail, committerEmail, dateTime, parents, fullMessage) {
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
56
|
+
this.p1l_1 = id;
|
|
57
|
+
this.q1l_1 = authorEmail;
|
|
58
|
+
this.r1l_1 = committerEmail;
|
|
59
|
+
this.s1l_1 = dateTime;
|
|
60
|
+
this.t1l_1 = parents;
|
|
61
|
+
this.u1l_1 = fullMessage;
|
|
62
62
|
}
|
|
63
63
|
protoOf(CommitRef).toString = function () {
|
|
64
|
-
return 'CommitRef(id=' + this.
|
|
64
|
+
return 'CommitRef(id=' + this.p1l_1 + ', authorEmail=' + this.q1l_1 + ', committerEmail=' + this.r1l_1 + ', dateTime=' + this.s1l_1.toString() + ', parents=' + toString(this.t1l_1) + ', fullMessage=' + this.u1l_1 + ')';
|
|
65
65
|
};
|
|
66
66
|
protoOf(CommitRef).hashCode = function () {
|
|
67
|
-
var result = getStringHashCode(this.
|
|
68
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
69
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
70
|
-
result = imul(result, 31) + this.
|
|
71
|
-
result = imul(result, 31) + hashCode(this.
|
|
72
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
67
|
+
var result = getStringHashCode(this.p1l_1);
|
|
68
|
+
result = imul(result, 31) + getStringHashCode(this.q1l_1) | 0;
|
|
69
|
+
result = imul(result, 31) + getStringHashCode(this.r1l_1) | 0;
|
|
70
|
+
result = imul(result, 31) + this.s1l_1.hashCode() | 0;
|
|
71
|
+
result = imul(result, 31) + hashCode(this.t1l_1) | 0;
|
|
72
|
+
result = imul(result, 31) + getStringHashCode(this.u1l_1) | 0;
|
|
73
73
|
return result;
|
|
74
74
|
};
|
|
75
75
|
protoOf(CommitRef).equals = function (other) {
|
|
@@ -78,22 +78,22 @@
|
|
|
78
78
|
if (!(other instanceof CommitRef))
|
|
79
79
|
return false;
|
|
80
80
|
var tmp0_other_with_cast = other instanceof CommitRef ? other : THROW_CCE();
|
|
81
|
-
if (!(this.
|
|
81
|
+
if (!(this.p1l_1 === tmp0_other_with_cast.p1l_1))
|
|
82
82
|
return false;
|
|
83
|
-
if (!(this.
|
|
83
|
+
if (!(this.q1l_1 === tmp0_other_with_cast.q1l_1))
|
|
84
84
|
return false;
|
|
85
|
-
if (!(this.
|
|
85
|
+
if (!(this.r1l_1 === tmp0_other_with_cast.r1l_1))
|
|
86
86
|
return false;
|
|
87
|
-
if (!this.
|
|
87
|
+
if (!this.s1l_1.equals(tmp0_other_with_cast.s1l_1))
|
|
88
88
|
return false;
|
|
89
|
-
if (!equals(this.
|
|
89
|
+
if (!equals(this.t1l_1, tmp0_other_with_cast.t1l_1))
|
|
90
90
|
return false;
|
|
91
|
-
if (!(this.
|
|
91
|
+
if (!(this.u1l_1 === tmp0_other_with_cast.u1l_1))
|
|
92
92
|
return false;
|
|
93
93
|
return true;
|
|
94
94
|
};
|
|
95
95
|
function runProcess($this, args, env) {
|
|
96
|
-
return runProcess_0(args, $this.
|
|
96
|
+
return runProcess_0(args, $this.v1l_1, plus(env, $this.w1l_1));
|
|
97
97
|
}
|
|
98
98
|
function runProcess$default($this, args, env, $super) {
|
|
99
99
|
env = env === VOID ? emptyMap() : env;
|
|
@@ -108,15 +108,15 @@
|
|
|
108
108
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
109
109
|
var destination = ArrayList_init_$Create$();
|
|
110
110
|
// Inline function 'kotlin.collections.forEach' call
|
|
111
|
-
var _iterator__ex2g4s = tmp0.
|
|
112
|
-
while (_iterator__ex2g4s.
|
|
113
|
-
var element = _iterator__ex2g4s.
|
|
111
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
112
|
+
while (_iterator__ex2g4s.q()) {
|
|
113
|
+
var element = _iterator__ex2g4s.r();
|
|
114
114
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
115
115
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseTagRefs.<anonymous>' call
|
|
116
116
|
var commaSplit = split(element, [',']);
|
|
117
117
|
var tmp;
|
|
118
|
-
if (commaSplit.
|
|
119
|
-
tmp = new TagRef(joinToString(commaSplit.a2(0, commaSplit.
|
|
118
|
+
if (commaSplit.s() >= 3) {
|
|
119
|
+
tmp = new TagRef(joinToString(commaSplit.a2(0, commaSplit.s() - 2 | 0), ''), reversed(commaSplit).t(1), Companion_getInstance().r1k(last(commaSplit)));
|
|
120
120
|
} else {
|
|
121
121
|
tmp = null;
|
|
122
122
|
}
|
|
@@ -134,12 +134,12 @@
|
|
|
134
134
|
}
|
|
135
135
|
function parseLog($this, outputText) {
|
|
136
136
|
// Inline function 'kotlin.collections.filter' call
|
|
137
|
-
var tmp0 = split(outputText, [$this.
|
|
137
|
+
var tmp0 = split(outputText, [$this.x1l_1 + '\n']);
|
|
138
138
|
// Inline function 'kotlin.collections.filterTo' call
|
|
139
139
|
var destination = ArrayList_init_$Create$();
|
|
140
|
-
var _iterator__ex2g4s = tmp0.
|
|
141
|
-
while (_iterator__ex2g4s.
|
|
142
|
-
var element = _iterator__ex2g4s.
|
|
140
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
141
|
+
while (_iterator__ex2g4s.q()) {
|
|
142
|
+
var element = _iterator__ex2g4s.r();
|
|
143
143
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.stub_for_inlining' call
|
|
144
144
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
145
145
|
if (!isBlank(element)) {
|
|
@@ -149,29 +149,29 @@
|
|
|
149
149
|
// Inline function 'kotlin.collections.map' call
|
|
150
150
|
// Inline function 'kotlin.collections.mapTo' call
|
|
151
151
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
152
|
-
var _iterator__ex2g4s_0 = destination.
|
|
153
|
-
while (_iterator__ex2g4s_0.
|
|
154
|
-
var item = _iterator__ex2g4s_0.
|
|
152
|
+
var _iterator__ex2g4s_0 = destination.p();
|
|
153
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
154
|
+
var item = _iterator__ex2g4s_0.r();
|
|
155
155
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>' call
|
|
156
156
|
var elements = split(item, ['\n']);
|
|
157
|
-
var tmp = elements.
|
|
158
|
-
var tmp_0 = elements.
|
|
159
|
-
var tmp_1 = elements.
|
|
160
|
-
var tmp_2 = Companion_getInstance().
|
|
157
|
+
var tmp = elements.t(0);
|
|
158
|
+
var tmp_0 = elements.t(1);
|
|
159
|
+
var tmp_1 = elements.t(2);
|
|
160
|
+
var tmp_2 = Companion_getInstance().r1k(elements.t(3));
|
|
161
161
|
// Inline function 'kotlin.collections.filter' call
|
|
162
|
-
var tmp0_0 = split(elements.
|
|
162
|
+
var tmp0_0 = split(elements.t(4), [' ']);
|
|
163
163
|
// Inline function 'kotlin.collections.filterTo' call
|
|
164
164
|
var destination_1 = ArrayList_init_$Create$();
|
|
165
|
-
var _iterator__ex2g4s_1 = tmp0_0.
|
|
166
|
-
while (_iterator__ex2g4s_1.
|
|
167
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
165
|
+
var _iterator__ex2g4s_1 = tmp0_0.p();
|
|
166
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
167
|
+
var element_0 = _iterator__ex2g4s_1.r();
|
|
168
168
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>.<anonymous>' call
|
|
169
169
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
170
170
|
if (charSequenceLength(element_0) > 0) {
|
|
171
171
|
destination_1.e(element_0);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.a2(5, elements.
|
|
174
|
+
var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.a2(5, elements.s()), '\n'));
|
|
175
175
|
destination_0.e(tmp$ret$8);
|
|
176
176
|
}
|
|
177
177
|
return destination_0;
|
|
@@ -181,9 +181,9 @@
|
|
|
181
181
|
var tmp$ret$1;
|
|
182
182
|
$l$block: {
|
|
183
183
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
184
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
185
|
-
while (_iterator__ex2g4s.
|
|
186
|
-
var element = _iterator__ex2g4s.
|
|
184
|
+
var _iterator__ex2g4s = _this__u8e3s4.p();
|
|
185
|
+
while (_iterator__ex2g4s.q()) {
|
|
186
|
+
var element = _iterator__ex2g4s.r();
|
|
187
187
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.findByPrefix.<anonymous>' call
|
|
188
188
|
if (startsWith(element, prefix)) {
|
|
189
189
|
tmp$ret$1 = element;
|
|
@@ -206,12 +206,12 @@
|
|
|
206
206
|
}
|
|
207
207
|
function GitAdapter(workingDirectory, env) {
|
|
208
208
|
env = env === VOID ? emptyMap() : env;
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
209
|
+
this.v1l_1 = workingDirectory;
|
|
210
|
+
this.w1l_1 = env;
|
|
211
|
+
this.x1l_1 = '--------!--------';
|
|
212
|
+
this.y1l_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.x1l_1;
|
|
213
213
|
}
|
|
214
|
-
protoOf(GitAdapter).
|
|
214
|
+
protoOf(GitAdapter).z1l = function (name, ref, userName, userEmail) {
|
|
215
215
|
var tmp = plus_0(plus_0(plus_0(listOf_0('git'), inlineConfig(this, 'user.name', userName)), inlineConfig(this, 'user.email', userEmail)), listOf(['tag', '--annotate', '--message=' + name, name, ref]));
|
|
216
216
|
var tmp_0 = emptyMap();
|
|
217
217
|
var tmp_1;
|
|
@@ -229,20 +229,20 @@
|
|
|
229
229
|
}
|
|
230
230
|
runProcess(this, tmp, plus(tmp_2, tmp_3));
|
|
231
231
|
};
|
|
232
|
-
protoOf(GitAdapter).
|
|
232
|
+
protoOf(GitAdapter).a1m = function () {
|
|
233
233
|
runProcess$default(this, listOf(['git', 'push', '--tags']));
|
|
234
234
|
};
|
|
235
|
-
protoOf(GitAdapter).
|
|
235
|
+
protoOf(GitAdapter).b1m = function (ref) {
|
|
236
236
|
// Inline function 'kotlin.let' call
|
|
237
237
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.showTag.stub_for_inlining' call
|
|
238
238
|
var p0 = runProcess$default(this, listOf(['git', '--no-pager', 'tag', '--list', '--format=%(refname:strip=2),%(*objectname),%(creatordate:iso-strict)', '--points-at=' + ref]));
|
|
239
239
|
var tmp$ret$1 = parseTagRefs(this, p0);
|
|
240
240
|
return firstOrNull(tmp$ret$1);
|
|
241
241
|
};
|
|
242
|
-
protoOf(GitAdapter).
|
|
243
|
-
return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.
|
|
242
|
+
protoOf(GitAdapter).c1m = function (begin, end) {
|
|
243
|
+
return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.y1l_1, begin]), !(end == null) ? listOf_0(end) : emptyList())));
|
|
244
244
|
};
|
|
245
|
-
protoOf(GitAdapter).
|
|
245
|
+
protoOf(GitAdapter).d1m = function () {
|
|
246
246
|
// Inline function 'kotlin.let' call
|
|
247
247
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>' call
|
|
248
248
|
var output = runProcess$default(this, listOf(['git', 'status', '--porcelain=2', '--branch', '--ahead-behind']));
|
|
@@ -258,9 +258,9 @@
|
|
|
258
258
|
// Inline function 'kotlin.collections.map' call
|
|
259
259
|
// Inline function 'kotlin.collections.mapTo' call
|
|
260
260
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
261
|
-
var _iterator__ex2g4s = tmp1_safe_receiver.
|
|
262
|
-
while (_iterator__ex2g4s.
|
|
263
|
-
var item = _iterator__ex2g4s.
|
|
261
|
+
var _iterator__ex2g4s = tmp1_safe_receiver.p();
|
|
262
|
+
while (_iterator__ex2g4s.q()) {
|
|
263
|
+
var item = _iterator__ex2g4s.r();
|
|
264
264
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
|
|
265
265
|
// Inline function 'kotlin.text.substring' call
|
|
266
266
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -272,15 +272,15 @@
|
|
|
272
272
|
var tmp2_elvis_lhs = tmp;
|
|
273
273
|
var _destruct__k2r9zo = tmp2_elvis_lhs == null ? listOf(['-1', '-1']) : tmp2_elvis_lhs;
|
|
274
274
|
// Inline function 'kotlin.collections.component1' call
|
|
275
|
-
var a = _destruct__k2r9zo.
|
|
275
|
+
var a = _destruct__k2r9zo.t(0);
|
|
276
276
|
// Inline function 'kotlin.collections.component2' call
|
|
277
|
-
var b = _destruct__k2r9zo.
|
|
277
|
+
var b = _destruct__k2r9zo.t(1);
|
|
278
278
|
// Inline function 'kotlin.collections.filterNot' call
|
|
279
279
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
280
280
|
var destination_0 = ArrayList_init_$Create$();
|
|
281
|
-
var _iterator__ex2g4s_0 = lines.
|
|
282
|
-
while (_iterator__ex2g4s_0.
|
|
283
|
-
var element = _iterator__ex2g4s_0.
|
|
281
|
+
var _iterator__ex2g4s_0 = lines.p();
|
|
282
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
283
|
+
var element = _iterator__ex2g4s_0.r();
|
|
284
284
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
|
|
285
285
|
if (!startsWith(element, '#')) {
|
|
286
286
|
destination_0.e(element);
|
|
@@ -289,21 +289,21 @@
|
|
|
289
289
|
// Inline function 'kotlin.collections.filterNot' call
|
|
290
290
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
291
291
|
var destination_1 = ArrayList_init_$Create$();
|
|
292
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
293
|
-
while (_iterator__ex2g4s_1.
|
|
294
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
292
|
+
var _iterator__ex2g4s_1 = destination_0.p();
|
|
293
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
294
|
+
var element_0 = _iterator__ex2g4s_1.r();
|
|
295
295
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.stub_for_inlining' call
|
|
296
296
|
if (!isBlank(element_0)) {
|
|
297
297
|
destination_1.e(element_0);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
var tmp_0 = destination_1.
|
|
300
|
+
var tmp_0 = destination_1.m();
|
|
301
301
|
var tmp_1 = toInt(a);
|
|
302
302
|
var tmp_2 = toInt(b);
|
|
303
303
|
var tmp_3 = head == null ? '' : head;
|
|
304
304
|
return new GitStatus(tmp_0, tmp_1, tmp_2, tmp_3, upstream == null ? '' : upstream);
|
|
305
305
|
};
|
|
306
|
-
protoOf(GitAdapter).
|
|
306
|
+
protoOf(GitAdapter).e1m = function (abbrev) {
|
|
307
307
|
// Inline function 'kotlin.runCatching' call
|
|
308
308
|
var tmp;
|
|
309
309
|
try {
|
|
@@ -336,21 +336,21 @@
|
|
|
336
336
|
return tmp_1;
|
|
337
337
|
};
|
|
338
338
|
function GitStatus(isClean, ahead, behind, head, upstream) {
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
339
|
+
this.f1m_1 = isClean;
|
|
340
|
+
this.g1m_1 = ahead;
|
|
341
|
+
this.h1m_1 = behind;
|
|
342
|
+
this.i1m_1 = head;
|
|
343
|
+
this.j1m_1 = upstream;
|
|
344
344
|
}
|
|
345
345
|
protoOf(GitStatus).toString = function () {
|
|
346
|
-
return 'GitStatus(isClean=' + this.
|
|
346
|
+
return 'GitStatus(isClean=' + this.f1m_1 + ', ahead=' + this.g1m_1 + ', behind=' + this.h1m_1 + ', head=' + this.i1m_1 + ', upstream=' + this.j1m_1 + ')';
|
|
347
347
|
};
|
|
348
348
|
protoOf(GitStatus).hashCode = function () {
|
|
349
|
-
var result = getBooleanHashCode(this.
|
|
350
|
-
result = imul(result, 31) + this.
|
|
351
|
-
result = imul(result, 31) + this.
|
|
352
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
353
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
349
|
+
var result = getBooleanHashCode(this.f1m_1);
|
|
350
|
+
result = imul(result, 31) + this.g1m_1 | 0;
|
|
351
|
+
result = imul(result, 31) + this.h1m_1 | 0;
|
|
352
|
+
result = imul(result, 31) + getStringHashCode(this.i1m_1) | 0;
|
|
353
|
+
result = imul(result, 31) + getStringHashCode(this.j1m_1) | 0;
|
|
354
354
|
return result;
|
|
355
355
|
};
|
|
356
356
|
protoOf(GitStatus).equals = function (other) {
|
|
@@ -359,30 +359,30 @@
|
|
|
359
359
|
if (!(other instanceof GitStatus))
|
|
360
360
|
return false;
|
|
361
361
|
var tmp0_other_with_cast = other instanceof GitStatus ? other : THROW_CCE();
|
|
362
|
-
if (!(this.
|
|
362
|
+
if (!(this.f1m_1 === tmp0_other_with_cast.f1m_1))
|
|
363
363
|
return false;
|
|
364
|
-
if (!(this.
|
|
364
|
+
if (!(this.g1m_1 === tmp0_other_with_cast.g1m_1))
|
|
365
365
|
return false;
|
|
366
|
-
if (!(this.
|
|
366
|
+
if (!(this.h1m_1 === tmp0_other_with_cast.h1m_1))
|
|
367
367
|
return false;
|
|
368
|
-
if (!(this.
|
|
368
|
+
if (!(this.i1m_1 === tmp0_other_with_cast.i1m_1))
|
|
369
369
|
return false;
|
|
370
|
-
if (!(this.
|
|
370
|
+
if (!(this.j1m_1 === tmp0_other_with_cast.j1m_1))
|
|
371
371
|
return false;
|
|
372
372
|
return true;
|
|
373
373
|
};
|
|
374
374
|
function TagRef(name, commitId, dateTime) {
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
375
|
+
this.k1m_1 = name;
|
|
376
|
+
this.l1m_1 = commitId;
|
|
377
|
+
this.m1m_1 = dateTime;
|
|
378
378
|
}
|
|
379
379
|
protoOf(TagRef).toString = function () {
|
|
380
|
-
return 'TagRef(name=' + this.
|
|
380
|
+
return 'TagRef(name=' + this.k1m_1 + ', commitId=' + this.l1m_1 + ', dateTime=' + this.m1m_1.toString() + ')';
|
|
381
381
|
};
|
|
382
382
|
protoOf(TagRef).hashCode = function () {
|
|
383
|
-
var result = getStringHashCode(this.
|
|
384
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
385
|
-
result = imul(result, 31) + this.
|
|
383
|
+
var result = getStringHashCode(this.k1m_1);
|
|
384
|
+
result = imul(result, 31) + getStringHashCode(this.l1m_1) | 0;
|
|
385
|
+
result = imul(result, 31) + this.m1m_1.hashCode() | 0;
|
|
386
386
|
return result;
|
|
387
387
|
};
|
|
388
388
|
protoOf(TagRef).equals = function (other) {
|
|
@@ -391,11 +391,11 @@
|
|
|
391
391
|
if (!(other instanceof TagRef))
|
|
392
392
|
return false;
|
|
393
393
|
var tmp0_other_with_cast = other instanceof TagRef ? other : THROW_CCE();
|
|
394
|
-
if (!(this.
|
|
394
|
+
if (!(this.k1m_1 === tmp0_other_with_cast.k1m_1))
|
|
395
395
|
return false;
|
|
396
|
-
if (!(this.
|
|
396
|
+
if (!(this.l1m_1 === tmp0_other_with_cast.l1m_1))
|
|
397
397
|
return false;
|
|
398
|
-
if (!this.
|
|
398
|
+
if (!this.m1m_1.equals(tmp0_other_with_cast.m1m_1))
|
|
399
399
|
return false;
|
|
400
400
|
return true;
|
|
401
401
|
};
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
env = tmp;
|
|
411
411
|
var program = first(args);
|
|
412
412
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
413
|
-
var this_0 = args.a2(1, args.
|
|
413
|
+
var this_0 = args.a2(1, args.s());
|
|
414
414
|
var tmp$ret$1 = copyToArray(this_0);
|
|
415
415
|
var spawn = childProcess.spawnSync(program, tmp$ret$1, json([to('cwd', workingDirectory), to('maxBuffer', 10485760), to('env', toJson(env))]));
|
|
416
416
|
if (spawn.status != 0) {
|