@amalgm/live 0.2.81-preview.45244924054 → 0.2.81-preview.45708334404
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/dist/apply/settling.d.ts +1 -1
- package/dist/apply/settling.js +1 -1
- package/dist/clash/echo.d.ts +15 -29
- package/dist/clash/echo.d.ts.map +1 -1
- package/dist/clash/echo.js +17 -41
- package/dist/clash/echo.js.map +1 -1
- package/dist/detection/record-proposal.d.ts +10 -8
- package/dist/detection/record-proposal.d.ts.map +1 -1
- package/dist/detection/record-proposal.js +3 -3
- package/dist/detection/record-proposal.js.map +1 -1
- package/dist/git/commands.d.ts +3 -0
- package/dist/git/commands.d.ts.map +1 -0
- package/dist/git/commands.js +35 -0
- package/dist/git/commands.js.map +1 -0
- package/dist/git/index.d.ts +2 -2
- package/dist/git/index.d.ts.map +1 -1
- package/dist/git/index.js +2 -2
- package/dist/git/index.js.map +1 -1
- package/dist/git/play.d.ts +26 -16
- package/dist/git/play.d.ts.map +1 -1
- package/dist/git/play.js +65 -18
- package/dist/git/play.js.map +1 -1
- package/dist/git/tag.d.ts +54 -0
- package/dist/git/tag.d.ts.map +1 -0
- package/dist/git/tag.js +68 -0
- package/dist/git/tag.js.map +1 -0
- package/dist/git/turns.d.ts +105 -75
- package/dist/git/turns.d.ts.map +1 -1
- package/dist/git/turns.js +131 -91
- package/dist/git/turns.js.map +1 -1
- package/dist/records/contracts.d.ts.map +1 -1
- package/dist/records/contracts.js +3 -2
- package/dist/records/contracts.js.map +1 -1
- package/dist-cjs/apply/settling.js +1 -1
- package/dist-cjs/clash/echo.js +18 -42
- package/dist-cjs/clash/echo.js.map +1 -1
- package/dist-cjs/detection/record-proposal.js +3 -3
- package/dist-cjs/detection/record-proposal.js.map +1 -1
- package/dist-cjs/git/commands.js +39 -0
- package/dist-cjs/git/commands.js.map +1 -0
- package/dist-cjs/git/index.js +2 -2
- package/dist-cjs/git/index.js.map +1 -1
- package/dist-cjs/git/play.js +65 -18
- package/dist-cjs/git/play.js.map +1 -1
- package/dist-cjs/git/tag.js +72 -0
- package/dist-cjs/git/tag.js.map +1 -0
- package/dist-cjs/git/turns.js +136 -96
- package/dist-cjs/git/turns.js.map +1 -1
- package/dist-cjs/records/contracts.js +3 -2
- package/dist-cjs/records/contracts.js.map +1 -1
- package/package.json +5 -5
- package/dist/git/hooks.d.ts +0 -140
- package/dist/git/hooks.d.ts.map +0 -1
- package/dist/git/hooks.js +0 -240
- package/dist/git/hooks.js.map +0 -1
- package/dist/git/line.d.ts +0 -116
- package/dist/git/line.d.ts.map +0 -1
- package/dist/git/line.js +0 -412
- package/dist/git/line.js.map +0 -1
- package/dist-cjs/git/hooks.js +0 -249
- package/dist-cjs/git/hooks.js.map +0 -1
- package/dist-cjs/git/line.js +0 -418
- package/dist-cjs/git/line.js.map +0 -1
package/dist/git/line.js
DELETED
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One line: every machine plays a repository's records in the cloud's order,
|
|
3
|
-
* each onto the result of the ones before it.
|
|
4
|
-
*
|
|
5
|
-
* A record states what its sender's branch was (V) and what it became (Y).
|
|
6
|
-
* The line before it (L) may differ from V: another machine's record was
|
|
7
|
-
* accepted first. The record's change is then played onto L, as `git rebase`
|
|
8
|
-
* plays commits onto what they missed, and every machine that plays the same
|
|
9
|
-
* records in the same order makes the same commits, byte for byte. Nothing is
|
|
10
|
-
* remembered between records but the line's own commits.
|
|
11
|
-
*
|
|
12
|
-
* - A commit's identity is its author line and message: what amend, rebase
|
|
13
|
-
* and cherry-pick keep. Its key is its author line alone: what every new
|
|
14
|
-
* version of it keeps.
|
|
15
|
-
* - The record keeps what V and Y share from the floor; the rest of V is
|
|
16
|
-
* removed and the rest of Y is added. An added commit takes the place of
|
|
17
|
-
* the removed one with its identity, else with its key, k-th to k-th; one
|
|
18
|
-
* that carries a removed commit's writing (a squash) takes that one's place.
|
|
19
|
-
* - A removed commit the record takes back (its writing is gone from Y) is
|
|
20
|
-
* dropped from the line with every version of it Y does not show. Removals
|
|
21
|
-
* are played first: removing is not writing.
|
|
22
|
-
* - Every other added commit goes on top, unless the line already holds it:
|
|
23
|
-
* a commit with its identity that writes what it writes. A commit made
|
|
24
|
-
* empty stands, as `git rebase` keeps a commit that starts empty.
|
|
25
|
-
* - From the first place the line changed, each commit is picked onto what
|
|
26
|
-
* stands below it: a line commit as its change from its own parent, and a
|
|
27
|
-
* record's new version on top as its change from its old version, standing
|
|
28
|
-
* below it. Where two writings clash, the record's own writing wins;
|
|
29
|
-
* else what the line showed before the record; else a commit keeps its
|
|
30
|
-
* place: above wins over below.
|
|
31
|
-
* - A folded commit's other versions on the line that Y does not show are
|
|
32
|
-
* folded with it: a squash replaces every version of what it squashed.
|
|
33
|
-
* - A commit stands above every commit whose writing it overrides: when a
|
|
34
|
-
* line commit would lose its own writing, by any of the rules above, to a
|
|
35
|
-
* record commit placed below it, that record commit moves to just above
|
|
36
|
-
* it, and the line is picked again. Moves only go up, so this ends.
|
|
37
|
-
*
|
|
38
|
-
* Git computes every tree, diff and commit, through `GitLineGit`; the rest is
|
|
39
|
-
* decided here, so every host plays alike.
|
|
40
|
-
*/
|
|
41
|
-
/** Two changes that add and remove the same lines. */
|
|
42
|
-
function sameChange(a, b) {
|
|
43
|
-
const same = (x, y) => x.size === y.size && [...x].every(l => y.has(l));
|
|
44
|
-
return same(a.add, b.add) && same(a.del, b.del);
|
|
45
|
-
}
|
|
46
|
-
/** The lines a `-U0` patch adds and removes. */
|
|
47
|
-
export function gitLineChange(patch) {
|
|
48
|
-
const add = new Set();
|
|
49
|
-
const del = new Set();
|
|
50
|
-
let file = null;
|
|
51
|
-
let old = null;
|
|
52
|
-
let hunk = false;
|
|
53
|
-
for (const line of patch.split('\n')) {
|
|
54
|
-
if (line.startsWith('diff --git ')) {
|
|
55
|
-
file = old = null;
|
|
56
|
-
hunk = false;
|
|
57
|
-
continue;
|
|
58
|
-
}
|
|
59
|
-
if (!hunk && line.startsWith('--- ')) {
|
|
60
|
-
old = line === '--- /dev/null' ? null : line.slice(6);
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (!hunk && line.startsWith('+++ ')) {
|
|
64
|
-
file = line === '+++ /dev/null' ? null : line.slice(6);
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if (line.startsWith('@@')) {
|
|
68
|
-
hunk = true;
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
if (hunk && file !== null && line.startsWith('+'))
|
|
72
|
-
add.add(`${file}\0${line.slice(1)}`);
|
|
73
|
-
if (hunk && old !== null && line.startsWith('-'))
|
|
74
|
-
del.add(`${old}\0${line.slice(1)}`);
|
|
75
|
-
}
|
|
76
|
-
return { add, del };
|
|
77
|
-
}
|
|
78
|
-
/** The marker size `gitLineResolve` reads; a host merges with it. */
|
|
79
|
-
export const GIT_LINE_MARKER_SIZE = 41;
|
|
80
|
-
/** A text `git merge-file -p --marker-size=GIT_LINE_MARKER_SIZE` marked,
|
|
81
|
-
* each clash chosen by `pick`. */
|
|
82
|
-
export async function gitLineResolve(marked, path, pick) {
|
|
83
|
-
const lt = '<'.repeat(GIT_LINE_MARKER_SIZE), eq = '='.repeat(GIT_LINE_MARKER_SIZE), gt = '>'.repeat(GIT_LINE_MARKER_SIZE);
|
|
84
|
-
const source = marked.split('\n');
|
|
85
|
-
const out = [];
|
|
86
|
-
let at = 0;
|
|
87
|
-
while (at < source.length) {
|
|
88
|
-
if (!source[at].startsWith(lt)) {
|
|
89
|
-
out.push(source[at++]);
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
const ours = [], theirs = [];
|
|
93
|
-
at++;
|
|
94
|
-
while (!source[at].startsWith(eq))
|
|
95
|
-
ours.push(source[at++]);
|
|
96
|
-
at++;
|
|
97
|
-
while (!source[at].startsWith(gt))
|
|
98
|
-
theirs.push(source[at++]);
|
|
99
|
-
at++;
|
|
100
|
-
out.push(...await pick(ours, theirs, path));
|
|
101
|
-
}
|
|
102
|
-
return out.join('\n');
|
|
103
|
-
}
|
|
104
|
-
/** One branch's line, played record by record. */
|
|
105
|
-
export class GitLine {
|
|
106
|
-
git;
|
|
107
|
-
#commits = new Map();
|
|
108
|
-
#own = new Map();
|
|
109
|
-
#shown = new Map();
|
|
110
|
-
constructor(git) {
|
|
111
|
-
this.git = git;
|
|
112
|
-
}
|
|
113
|
-
/** The line after a record moved its sender's branch from `V` to `Y`, on
|
|
114
|
-
* the line `L`; null for a branch the line or the record removed. A
|
|
115
|
-
* branch removed stays removed: no later record brings it back. */
|
|
116
|
-
async play(L, V, Y) {
|
|
117
|
-
if (Y === null)
|
|
118
|
-
return V === null ? L : null;
|
|
119
|
-
if (L === null)
|
|
120
|
-
return V === null ? Y : null;
|
|
121
|
-
if (V === Y)
|
|
122
|
-
return L;
|
|
123
|
-
if (V === L)
|
|
124
|
-
return Y;
|
|
125
|
-
const floor = await this.git.floor(V === null ? [L, Y] : [L, V, Y]);
|
|
126
|
-
const [Lc, Vc, Yc] = await Promise.all([L, V, Y].map(tip => tip === null || tip === floor ? [] : this.git.firstParent(tip, floor)));
|
|
127
|
-
return new Play(this, floor, Lc, Vc, Yc).run();
|
|
128
|
-
}
|
|
129
|
-
/** The line after a push fixed `pushed`: its path stands as it is and every
|
|
130
|
-
* other line commit is picked on top. A push brings back nothing the line
|
|
131
|
-
* removed. */
|
|
132
|
-
async fix(L, pushed) {
|
|
133
|
-
const floor = await this.git.floor([L, pushed]);
|
|
134
|
-
if (floor === pushed)
|
|
135
|
-
return L;
|
|
136
|
-
const path = await this.git.firstParent(pushed, floor);
|
|
137
|
-
const Lc = await this.git.firstParent(L, floor);
|
|
138
|
-
const ids = await Promise.all(path.map(commit => this.id(commit)));
|
|
139
|
-
const at = new Map();
|
|
140
|
-
for (const [index, commit] of Lc.entries())
|
|
141
|
-
at.set(await this.id(commit), index);
|
|
142
|
-
if (ids.some(id => !at.has(id)))
|
|
143
|
-
return L;
|
|
144
|
-
const held = new Set(ids);
|
|
145
|
-
const rest = [];
|
|
146
|
-
for (const commit of Lc) {
|
|
147
|
-
const id = await this.id(commit);
|
|
148
|
-
if (!held.has(id))
|
|
149
|
-
rest.push({ commit, mine: false, at: at.get(id) });
|
|
150
|
-
}
|
|
151
|
-
const list = [...path.map((commit, index) => ({ commit, mine: false, at: at.get(ids[index]), fixed: true })), ...rest];
|
|
152
|
-
return new Play(this, floor, Lc, [], []).replay([], list, L, new Set()).then(([tip]) => tip);
|
|
153
|
-
}
|
|
154
|
-
commit(oid) {
|
|
155
|
-
if (!this.#commits.has(oid))
|
|
156
|
-
this.#commits.set(oid, this.git.commit(oid));
|
|
157
|
-
return this.#commits.get(oid);
|
|
158
|
-
}
|
|
159
|
-
async key(oid) { return (await this.commit(oid)).author; }
|
|
160
|
-
async id(oid) { const commit = await this.commit(oid); return `${commit.author}\0${commit.message}`; }
|
|
161
|
-
async tree(oid) { return (await this.commit(oid)).tree; }
|
|
162
|
-
async change(from, to) {
|
|
163
|
-
return gitLineChange(await this.git.patch(from === null ? null : await this.tree(from), await this.tree(to)));
|
|
164
|
-
}
|
|
165
|
-
/** What a commit itself writes: its diff from its first parent. */
|
|
166
|
-
own(oid) {
|
|
167
|
-
if (!this.#own.has(oid))
|
|
168
|
-
this.#own.set(oid, this.commit(oid).then(commit => this.change(commit.parent, oid)));
|
|
169
|
-
return this.#own.get(oid);
|
|
170
|
-
}
|
|
171
|
-
/** The lines of `path` at commit `at`. */
|
|
172
|
-
shown(at, path) {
|
|
173
|
-
const key = `${at}\0${path}`;
|
|
174
|
-
if (!this.#shown.has(key)) {
|
|
175
|
-
this.#shown.set(key, this.tree(at).then(tree => this.git.file(tree, path)).then(text => new Set(text === null ? [] : text.split('\n'))));
|
|
176
|
-
}
|
|
177
|
-
return this.#shown.get(key);
|
|
178
|
-
}
|
|
179
|
-
get host() { return this.git; }
|
|
180
|
-
}
|
|
181
|
-
class Play {
|
|
182
|
-
line;
|
|
183
|
-
floor;
|
|
184
|
-
Lc;
|
|
185
|
-
Vc;
|
|
186
|
-
Yc;
|
|
187
|
-
constructor(line, floor, Lc, Vc, Yc) {
|
|
188
|
-
this.line = line;
|
|
189
|
-
this.floor = floor;
|
|
190
|
-
this.Lc = Lc;
|
|
191
|
-
this.Vc = Vc;
|
|
192
|
-
this.Yc = Yc;
|
|
193
|
-
}
|
|
194
|
-
async run() {
|
|
195
|
-
const { line, Vc, Yc } = this;
|
|
196
|
-
let shared = 0;
|
|
197
|
-
while (shared < Vc.length && shared < Yc.length && Vc[shared] === Yc[shared])
|
|
198
|
-
shared++;
|
|
199
|
-
const removed = Vc.slice(shared), added = Yc.slice(shared);
|
|
200
|
-
const tip = (commits) => commits.at(-1) ?? this.floor;
|
|
201
|
-
const net = await this.changeBetween(tip(Vc), tip(Yc));
|
|
202
|
-
const wrote = await this.wrote(net, added);
|
|
203
|
-
const reverts = async (commit) => {
|
|
204
|
-
const own = await line.own(commit);
|
|
205
|
-
return own.add.size > 0 ? [...own.add].some(l => net.del.has(l)) : [...own.del].some(l => net.add.has(l));
|
|
206
|
-
};
|
|
207
|
-
const pair = new Map();
|
|
208
|
-
const taken = new Set();
|
|
209
|
-
const folded = new Map();
|
|
210
|
-
for (const exact of [true, false]) {
|
|
211
|
-
for (const a of added) {
|
|
212
|
-
if (pair.has(a))
|
|
213
|
-
continue;
|
|
214
|
-
const want = exact ? await line.id(a) : await line.key(a);
|
|
215
|
-
for (const r of removed) {
|
|
216
|
-
if (taken.has(r) || (exact ? await line.id(r) : await line.key(r)) !== want)
|
|
217
|
-
continue;
|
|
218
|
-
pair.set(a, r);
|
|
219
|
-
taken.add(r);
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
for (const r of removed) {
|
|
225
|
-
if (taken.has(r) || await reverts(r))
|
|
226
|
-
continue;
|
|
227
|
-
const writing = (await line.own(r)).add;
|
|
228
|
-
for (const a of added) {
|
|
229
|
-
if (![...(await line.own(a)).add].some(l => writing.has(l)))
|
|
230
|
-
continue;
|
|
231
|
-
taken.add(r);
|
|
232
|
-
folded.set(r, a);
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
const dropKeys = new Set();
|
|
237
|
-
for (const r of removed)
|
|
238
|
-
if (!taken.has(r) && await reverts(r))
|
|
239
|
-
dropKeys.add(await line.key(r));
|
|
240
|
-
const shownIds = new Set(await Promise.all(Yc.map(c => line.id(c))));
|
|
241
|
-
const drops = async (c) => dropKeys.has(await line.key(c)) && !shownIds.has(await line.id(c)) && await reverts(c);
|
|
242
|
-
const dropping = await Promise.all(this.Lc.map(drops));
|
|
243
|
-
if (dropping.some(Boolean)) {
|
|
244
|
-
const kept = this.Lc.flatMap((commit, at) => dropping[at] ? [] : [{ commit, mine: false, at }]);
|
|
245
|
-
const [after] = await this.replay(this.Lc, kept, tip(this.Lc), wrote);
|
|
246
|
-
this.Lc = after === this.floor ? [] : await line.host.firstParent(after, this.floor);
|
|
247
|
-
}
|
|
248
|
-
const byRemoved = new Map();
|
|
249
|
-
for (const [a, r] of pair)
|
|
250
|
-
byRemoved.set(await line.id(r), a);
|
|
251
|
-
for (const [r, a] of folded)
|
|
252
|
-
byRemoved.set(await line.id(r), a);
|
|
253
|
-
const foldKeys = new Map();
|
|
254
|
-
for (const [r, a] of folded)
|
|
255
|
-
foldKeys.set(await line.key(r), a);
|
|
256
|
-
// The line holds a commit when it holds one with its identity that writes
|
|
257
|
-
// what it writes, as `git rebase` skips a commit whose patch is already
|
|
258
|
-
// upstream. The same person in the same second with the same message can
|
|
259
|
-
// still have made two commits; each stands.
|
|
260
|
-
const lineCommits = new Map();
|
|
261
|
-
for (const c of this.Lc) {
|
|
262
|
-
const id = await line.id(c);
|
|
263
|
-
lineCommits.set(id, [...lineCommits.get(id) ?? [], c]);
|
|
264
|
-
}
|
|
265
|
-
const holds = async (a) => {
|
|
266
|
-
for (const c of lineCommits.get(await line.id(a)) ?? [])
|
|
267
|
-
if (sameChange(await line.own(c), await line.own(a)))
|
|
268
|
-
return true;
|
|
269
|
-
return false;
|
|
270
|
-
};
|
|
271
|
-
const list = [];
|
|
272
|
-
const used = new Set();
|
|
273
|
-
for (const [at, commit] of this.Lc.entries()) {
|
|
274
|
-
const id = await line.id(commit);
|
|
275
|
-
const a = byRemoved.get(id) ?? (shownIds.has(id) ? undefined : foldKeys.get(await line.key(commit)));
|
|
276
|
-
if (a === undefined) {
|
|
277
|
-
list.push({ commit, mine: false, at });
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
if (!used.has(a)) {
|
|
281
|
-
used.add(a);
|
|
282
|
-
list.push({ commit: a, mine: true, at, inPlace: true });
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
for (const a of added) {
|
|
286
|
-
if (used.has(a) || !pair.has(a) && await holds(a))
|
|
287
|
-
continue;
|
|
288
|
-
used.add(a);
|
|
289
|
-
const key = await line.key(a);
|
|
290
|
-
let at = -1;
|
|
291
|
-
for (const [index, entry] of list.entries())
|
|
292
|
-
if (await line.key(entry.commit) === key)
|
|
293
|
-
at = index;
|
|
294
|
-
const entry = { commit: a, mine: true, at: Infinity, ...(pair.has(a) ? { old: pair.get(a) } : {}) };
|
|
295
|
-
if (pair.has(a) && at >= 0)
|
|
296
|
-
list.splice(at + 1, 0, entry);
|
|
297
|
-
else
|
|
298
|
-
list.push(entry);
|
|
299
|
-
}
|
|
300
|
-
const shown = tip(this.Lc);
|
|
301
|
-
for (let round = 0;; round++) {
|
|
302
|
-
const [out, loss] = await this.replay(this.Lc, list, shown, wrote);
|
|
303
|
-
if (!loss || round > list.length)
|
|
304
|
-
return out;
|
|
305
|
-
const at = list.indexOf(loss.entry);
|
|
306
|
-
let from = -1;
|
|
307
|
-
for (let index = 0; index < at && from < 0; index++) {
|
|
308
|
-
const entry = list[index];
|
|
309
|
-
if (!entry.mine)
|
|
310
|
-
continue;
|
|
311
|
-
const writing = (await line.own(entry.commit)).add;
|
|
312
|
-
if (loss.lines.some(l => writing.has(`${loss.path}\0${l}`)))
|
|
313
|
-
from = index;
|
|
314
|
-
}
|
|
315
|
-
if (from < 0)
|
|
316
|
-
return out;
|
|
317
|
-
const [moved] = list.splice(from, 1);
|
|
318
|
-
list.splice(at, 0, moved);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
async changeBetween(from, to) {
|
|
322
|
-
if (from === to || to === null)
|
|
323
|
-
return { add: new Set(), del: new Set() };
|
|
324
|
-
return this.line.change(from, to);
|
|
325
|
-
}
|
|
326
|
-
/** What the record writes: lines its net change adds that one of its own
|
|
327
|
-
* new commits adds too. Carrying is not writing. */
|
|
328
|
-
async wrote(net, added) {
|
|
329
|
-
const own = new Set();
|
|
330
|
-
for (const a of added)
|
|
331
|
-
for (const l of (await this.line.own(a)).add)
|
|
332
|
-
own.add(l);
|
|
333
|
-
return new Set([...net.add].filter(l => own.has(l)));
|
|
334
|
-
}
|
|
335
|
-
/** Picks `list` onto the floor from the first place it differs from `Lc`;
|
|
336
|
-
* returns the tip and the first line commit that lost its own writing. */
|
|
337
|
-
async replay(Lc, list, shown, wrote) {
|
|
338
|
-
const { line } = this;
|
|
339
|
-
let same = 0;
|
|
340
|
-
while (same < list.length && same < Lc.length && list[same].commit === Lc[same])
|
|
341
|
-
same++;
|
|
342
|
-
let tip = same > 0 ? Lc[same - 1] : this.floor;
|
|
343
|
-
const placed = list.slice(0, same);
|
|
344
|
-
let loss = null;
|
|
345
|
-
const shows = async (lines, path) => {
|
|
346
|
-
if (lines.length === 0 || shown === null)
|
|
347
|
-
return false;
|
|
348
|
-
const set = await line.shown(shown, path);
|
|
349
|
-
return lines.every(l => set.has(l));
|
|
350
|
-
};
|
|
351
|
-
for (const entry of list.slice(same)) {
|
|
352
|
-
const commit = await line.commit(entry.commit);
|
|
353
|
-
if (commit.parent === tip || entry.fixed) {
|
|
354
|
-
tip = entry.commit;
|
|
355
|
-
placed.push(entry);
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
358
|
-
const favour = entry.at !== Infinity && !placed.some(b => b.at > entry.at) ? 'theirs' : 'ours';
|
|
359
|
-
// Only a commit that took a removed one's place is a new version; one
|
|
360
|
-
// that merely shares an author line (the same person in the same
|
|
361
|
-
// second) is its own commit, picked from its own parent.
|
|
362
|
-
let old = null;
|
|
363
|
-
if (entry.old !== undefined && !entry.inPlace) {
|
|
364
|
-
const key = await line.key(entry.commit);
|
|
365
|
-
for (const b of [...placed].reverse())
|
|
366
|
-
if (b.commit !== entry.commit && await line.key(b.commit) === key) {
|
|
367
|
-
old = entry.old;
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
const base = old ? await line.tree(old) : commit.parent ? await line.tree(commit.parent) : null;
|
|
372
|
-
const tipTree = tip === null ? null : await line.tree(tip);
|
|
373
|
-
if (base === commit.tree) {
|
|
374
|
-
// A commit made empty (`--allow-empty`) was made on purpose, so it
|
|
375
|
-
// stands, as `git rebase` keeps a commit that starts empty; a new
|
|
376
|
-
// version that writes nothing beyond its old one has nothing to pick.
|
|
377
|
-
if (old || tipTree === null)
|
|
378
|
-
continue;
|
|
379
|
-
tip = await line.host.rewrite(entry.commit, tip, tipTree);
|
|
380
|
-
placed.push(entry);
|
|
381
|
-
continue;
|
|
382
|
-
}
|
|
383
|
-
const has = (lines, path) => lines.some(l => wrote.has(`${path}\0${l}`));
|
|
384
|
-
// The record's writing wins; else what the line showed; else the place.
|
|
385
|
-
const choose = async (ours, theirs, path) => {
|
|
386
|
-
const a = has(theirs, path), b = has(ours, path);
|
|
387
|
-
if (a !== b)
|
|
388
|
-
return a ? theirs : ours;
|
|
389
|
-
const [st, so] = await Promise.all([shows(theirs, path), shows(ours, path)]);
|
|
390
|
-
if (st !== so)
|
|
391
|
-
return st ? theirs : ours;
|
|
392
|
-
return favour === 'theirs' ? theirs : ours;
|
|
393
|
-
};
|
|
394
|
-
const pick = async (ours, theirs, path) => {
|
|
395
|
-
const chosen = await choose(ours, theirs, path);
|
|
396
|
-
if (chosen === ours && !entry.mine && !loss)
|
|
397
|
-
loss = { entry, lines: ours, path };
|
|
398
|
-
return chosen;
|
|
399
|
-
};
|
|
400
|
-
// A commit already on the line is not picked again; one that only lost
|
|
401
|
-
// its clashes stays, empty, so later records still find it.
|
|
402
|
-
const { tree, clashed } = tipTree === null ? { tree: commit.tree, clashed: false }
|
|
403
|
-
: await line.host.merge(base, tipTree, commit.tree, favour, pick);
|
|
404
|
-
if (tree === tipTree && !clashed)
|
|
405
|
-
continue;
|
|
406
|
-
tip = await line.host.rewrite(entry.commit, tip, tree);
|
|
407
|
-
placed.push(entry);
|
|
408
|
-
}
|
|
409
|
-
return [tip, loss];
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
//# sourceMappingURL=line.js.map
|
package/dist/git/line.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line.js","sourceRoot":"","sources":["../../src/git/line.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAiDH,sDAAsD;AACtD,SAAS,UAAU,CAAC,CAAgB,EAAE,CAAgB;IACpD,MAAM,IAAI,GAAG,CAAC,CAAsB,EAAE,CAAsB,EAAW,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3H,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC;AAED,gDAAgD;AAChD,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAC;IAAC,MAAM,GAAG,GAAG,IAAI,GAAG,EAA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