@amalgm/live 0.2.81-main.45254513442 → 0.2.81-main.45331895154

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.
@@ -25,7 +25,7 @@
25
25
  * leaves that unchanged; the host's line takes the record in when the next
26
26
  * record plays onto it. When another computer's record came between (a
27
27
  * clash), its own record plays like anyone's, and its sender, the one
28
- * computer that knows it is its own, states the joined line once at that
28
+ * computer that knows it is its own, states the played line once at that
29
29
  * window's end (an echo, `echoProposal`), so a computer that installs only
30
30
  * the newest record still shows the whole line. Its echo settles as own
31
31
  * when the line before it already is what it states; it never states
@@ -25,7 +25,7 @@
25
25
  * leaves that unchanged; the host's line takes the record in when the next
26
26
  * record plays onto it. When another computer's record came between (a
27
27
  * clash), its own record plays like anyone's, and its sender, the one
28
- * computer that knows it is its own, states the joined line once at that
28
+ * computer that knows it is its own, states the played line once at that
29
29
  * window's end (an echo, `echoProposal`), so a computer that installs only
30
30
  * the newest record still shows the whole line. Its echo settles as own
31
31
  * when the line before it already is what it states; it never states
@@ -1,19 +1,16 @@
1
1
  /**
2
- * One echo (`docs/clash-rules.md`, One echo): a clash's joined line, stated
3
- * once by the computer that knows the clashing record is its own.
2
+ * One echo (`docs/clash-rules.md`, One echo): a played line, stated once by
3
+ * the computer that knows the late record is its own.
4
4
  *
5
- * A repository's line is played by Git, so where another computer's record
6
- * reached the line first, the line holds a state no record stated: the
7
- * reducer derives the record's own result, the line its join with what came
8
- * before. That difference is exactly when an echo is owed, and only an own
9
- * record that is not itself an echo owes one. Each checkout text file the
10
- * record's play joined is stated on its own channel, at that record, while
11
- * the file's newest row still holds the record's bytes, so a later edit,
12
- * saved or not, always wins. The line itself is stated by the last
13
- * clashing own record: while a later own record of the entity follows, that
14
- * record carries the line or owes its own echo. A repository record carries
15
- * no checkout file, so a later own record never stands in for a file's echo.
16
- * Every echo plays whole only onto the row it joins (`echoProposal`).
5
+ * A repository record that reached a line another computer's record had
6
+ * already moved is played onto it (`src/git/play.ts`), so the line holds a
7
+ * state no record stated: the reducer derives the record's own result, the
8
+ * line what the play made of it. That difference is exactly when an echo is
9
+ * owed, and only an own record that is not itself an echo owes one. The line
10
+ * is stated by the last such own record: while a later own record of the
11
+ * entity follows, that record carries the line or owes its own echo. A play
12
+ * makes no commit and writes no checkout file, so the line is all there is to
13
+ * state. The echo plays whole only onto the row it joins (`echoProposal`).
17
14
  *
18
15
  * Every fact is read lazily, cheapest first: a line that holds the record's
19
16
  * own state, the common case, reads nothing.
@@ -28,15 +25,7 @@ export interface JoinedLine {
28
25
  readonly state: string;
29
26
  readonly package: string;
30
27
  }
31
- /** A checkout text file both clashing writings changed: its path in the
32
- * checkout, the record's bytes and the joined bytes the line holds. */
33
- export interface JoinedFile {
34
- readonly path: string;
35
- readonly record: string;
36
- readonly joined: string;
37
- readonly size: number;
38
- }
39
- /** The facts a played line's echoes read. */
28
+ /** The facts a played line's echo reads. */
40
29
  export interface EchoFacts {
41
30
  /** The record the window played to, as accepted. */
42
31
  head(): AcceptedEntityRecord | undefined;
@@ -45,11 +34,8 @@ export interface EchoFacts {
45
34
  /** Whether an own record of the entity follows `record` in this
46
35
  * computer's record order, pending or accepted. */
47
36
  laterOwn(record: AcceptedEntityRecord): boolean;
48
- /** The newest row here of the checkout file at `path`, or null. */
49
- file(path: string): CloudEntityRecord | null;
50
37
  }
51
- /** The echoes a repository's played line owes over `result`, the reducer's
52
- * row for the head: the line's, unless a later own record follows, then one
53
- * per joined text file whose newest row still holds the record's bytes. */
54
- export declare function joinedLineEchoes(result: CloudEntityRecord, line: JoinedLine, files: readonly JoinedFile[], facts: EchoFacts, sha256Hex: Sha256Hex): readonly DetectedChangeProposal[];
38
+ /** The echo a repository's played line owes over `result`, the reducer's row
39
+ * for the head; null when none is owed, or a later own record follows. */
40
+ export declare function joinedLineEcho(result: CloudEntityRecord, line: JoinedLine, facts: EchoFacts, sha256Hex: Sha256Hex): DetectedChangeProposal | null;
55
41
  //# sourceMappingURL=echo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S,sBAAsB,EAAE,CAOnC"}
1
+ {"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../src/clash/echo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAgB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;kBACkB;AAClB,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,4CAA4C;AAC5C,MAAM,WAAW,SAAS;IACxB,oDAAoD;IACpD,IAAI,IAAI,oBAAoB,GAAG,SAAS,CAAC;IACzC,2CAA2C;IAC3C,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC;IAC3C;uDACmD;IACnD,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC;CACjD;AAED;0EAC0E;AAC1E,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,SAAS,GACnB,sBAAsB,GAAG,IAAI,CAU/B"}
@@ -1,42 +1,30 @@
1
1
  /**
2
- * One echo (`docs/clash-rules.md`, One echo): a clash's joined line, stated
3
- * once by the computer that knows the clashing record is its own.
2
+ * One echo (`docs/clash-rules.md`, One echo): a played line, stated once by
3
+ * the computer that knows the late record is its own.
4
4
  *
5
- * A repository's line is played by Git, so where another computer's record
6
- * reached the line first, the line holds a state no record stated: the
7
- * reducer derives the record's own result, the line its join with what came
8
- * before. That difference is exactly when an echo is owed, and only an own
9
- * record that is not itself an echo owes one. Each checkout text file the
10
- * record's play joined is stated on its own channel, at that record, while
11
- * the file's newest row still holds the record's bytes, so a later edit,
12
- * saved or not, always wins. The line itself is stated by the last
13
- * clashing own record: while a later own record of the entity follows, that
14
- * record carries the line or owes its own echo. A repository record carries
15
- * no checkout file, so a later own record never stands in for a file's echo.
16
- * Every echo plays whole only onto the row it joins (`echoProposal`).
5
+ * A repository record that reached a line another computer's record had
6
+ * already moved is played onto it (`src/git/play.ts`), so the line holds a
7
+ * state no record stated: the reducer derives the record's own result, the
8
+ * line what the play made of it. That difference is exactly when an echo is
9
+ * owed, and only an own record that is not itself an echo owes one. The line
10
+ * is stated by the last such own record: while a later own record of the
11
+ * entity follows, that record carries the line or owes its own echo. A play
12
+ * makes no commit and writes no checkout file, so the line is all there is to
13
+ * state. The echo plays whole only onto the row it joins (`echoProposal`).
17
14
  *
18
15
  * Every fact is read lazily, cheapest first: a line that holds the record's
19
16
  * own state, the common case, reads nothing.
20
17
  */
21
- import { textSnapshot } from '../detection/content.js';
22
18
  import { echoProposal } from '../detection/record-proposal.js';
23
19
  import { canonicalVersion } from '../entities/rules.js';
24
- /** The echoes a repository's played line owes over `result`, the reducer's
25
- * row for the head: the line's, unless a later own record follows, then one
26
- * per joined text file whose newest row still holds the record's bytes. */
27
- export function joinedLineEchoes(result, line, files, facts, sha256Hex) {
20
+ /** The echo a repository's played line owes over `result`, the reducer's row
21
+ * for the head; null when none is owed, or a later own record follows. */
22
+ export function joinedLineEcho(result, line, facts, sha256Hex) {
28
23
  if (line.state === result.payloadVersion)
29
- return [];
24
+ return null;
30
25
  const head = facts.head();
31
- if (head === undefined || head.change.joins !== undefined || !facts.own(head))
32
- return [];
33
- const stated = [facts.laterOwn(head) ? null : lineEcho(result, line, sha256Hex)];
34
- for (const file of files)
35
- stated.push(fileEcho(facts.file(file.path), file, sha256Hex));
36
- return stated.filter((echo) => echo !== null);
37
- }
38
- /** The joined line stated over `result`. */
39
- function lineEcho(result, line, sha256Hex) {
26
+ if (head === undefined || head.change.joins !== undefined || !facts.own(head) || facts.laterOwn(head))
27
+ return null;
40
28
  const stated = { ...result, payloadVersion: line.state, transportVersion: line.package };
41
29
  return echoProposal({
42
30
  joins: result,
@@ -44,16 +32,4 @@ function lineEcho(result, line, sha256Hex) {
44
32
  replay: { kind: 'repo.git', resultPayloadVersion: line.state, transportVersion: line.package },
45
33
  });
46
34
  }
47
- /** A joined file stated over `row`, its newest row here, or null once that
48
- * row no longer holds the record's bytes. */
49
- function fileEcho(row, file, sha256Hex) {
50
- if (row === null || row.type !== 'file.text' || row.status !== 'active' || row.payloadVersion !== file.record)
51
- return null;
52
- const joined = { ...row, payloadVersion: file.joined, size: file.size };
53
- return echoProposal({
54
- joins: row,
55
- result: { ...joined, version: canonicalVersion(joined, sha256Hex) },
56
- replay: textSnapshot(row.payloadVersion, file.joined),
57
- });
58
- }
59
35
  //# sourceMappingURL=echo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"echo.js","sourceRoot":"","sources":["../../src/clash/echo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAA+B,MAAM,iCAAiC,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAiCxD;;2EAE2E;AAC3E,MAAM,UAAU,gBAAgB,CAC9B,MAAyB,EACzB,IAAgB,EAChB,KAA4B,EAC5B,KAAgB,EAChB,SAAoB;IAEpB,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IACpD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACzF,MA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AAS,CAAC,EAAE;QACnE,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,OAAO,EAAE;KAC/F,CAAC,CAAC;AACL,CAAC"}
@@ -145,8 +145,8 @@ export declare function turnProposal(input: {
145
145
  readonly turn: GitTurn;
146
146
  }): DetectedChangeProposal;
147
147
  /**
148
- * An echo: the one statement of what a line became where a play joined two
149
- * writings neither author held (`docs/clash-rules.md`, "One echo"). `joins` is
148
+ * An echo: the one statement of what a line became where a play left a
149
+ * state no record stated (`docs/clash-rules.md`, "One echo"). `joins` is
150
150
  * the row standing here, `result` the whole line. It carries no facets: it
151
151
  * plays whole only onto exactly the row it joins, and onto anything else it
152
152
  * plays nothing, so a record accepted between keeps what it changed. Null
@@ -259,8 +259,8 @@ export function turnProposal(input) {
259
259
  });
260
260
  }
261
261
  /**
262
- * An echo: the one statement of what a line became where a play joined two
263
- * writings neither author held (`docs/clash-rules.md`, "One echo"). `joins` is
262
+ * An echo: the one statement of what a line became where a play left a
263
+ * state no record stated (`docs/clash-rules.md`, "One echo"). `joins` is
264
264
  * the row standing here, `result` the whole line. It carries no facets: it
265
265
  * plays whole only onto exactly the row it joins, and onto anything else it
266
266
  * plays nothing, so a record accepted between keeps what it changed. Null
@@ -278,7 +278,7 @@ export function echoProposal(input) {
278
278
  return null;
279
279
  const facets = changeFacets(joins, result);
280
280
  if (facets.length === 0 || facets.some((facet) => !ECHO_FACETS.has(facet))) {
281
- throw new Error('an echo states a joined payload or address, never a lifecycle or a type');
281
+ throw new Error('an echo states a played payload or address, never a lifecycle or a type');
282
282
  }
283
283
  validateReplay(joins, result, facets, input.replay);
284
284
  return Object.freeze({
@@ -5,7 +5,6 @@ export * from './artifact.js';
5
5
  export * from './chain.js';
6
6
  export * from './plan.js';
7
7
  export * from './play.js';
8
- export * from './line.js';
9
8
  export * from './hooks.js';
10
9
  export * from './turns.js';
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
package/dist/git/index.js CHANGED
@@ -5,7 +5,6 @@ export * from './artifact.js';
5
5
  export * from './chain.js';
6
6
  export * from './plan.js';
7
7
  export * from './play.js';
8
- export * from './line.js';
9
8
  export * from './hooks.js';
10
9
  export * from './turns.js';
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -1,6 +1,5 @@
1
1
  /**
2
- * A repository record played onto the state here: the one line (line.ts) at
3
- * the size of a whole Git directory.
2
+ * A repository record played onto the state here.
4
3
  *
5
4
  * A record states the Git directory its sender's change was made from (V,
6
5
  * its artifact's basis) and what it became (Y). The state here is the line
@@ -9,12 +8,18 @@
9
8
  * records in the same order makes the same state, since nothing here names
10
9
  * the machine playing:
11
10
  *
12
- * - A branch plays as one line (`GitLine.play`): what both sides committed
13
- * stands on it, in the cloud's order.
14
- * - Every other ref and every other Git-directory file is the record's when
15
- * the record changed it from V, else L's: a record moves what it moved, and
11
+ * - Every ref and every other Git-directory file is the record's when the
12
+ * record changed it from V, else L's: a record moves what it moved, and
16
13
  * what it left alone stays as the line holds it. A ref the record removed
17
14
  * stays removed.
15
+ * - A branch the line moved too is never rolled back. It follows the record
16
+ * only where the record's commit was built on the line's, as Git's own
17
+ * fast-forward. A record that diverged (made offline, or with no turn:
18
+ * docs/git-turns.md) leaves the line's branch where it stands, and its
19
+ * commits are kept beside it on a branch of their own,
20
+ * `amalgm/<branch>-<id>` (`GitPlayed.aside`). The next record made on those
21
+ * commits moves that same branch on, so one computer's offline work is one
22
+ * branch however many commits it holds.
18
23
  * - A reflog keeps L's lines less those the record removed, then the
19
24
  * record's new ones. When its ref ends where none of those lines put it,
20
25
  * one more line moves it there, so `@{0}` names where the ref stands. The
@@ -35,7 +40,6 @@
35
40
  * Everything Git computes is the host's, through `GitPlayGit`.
36
41
  */
37
42
  import type { Sha256Hex } from '../entities/types.js';
38
- import { type GitLineGit } from './line.js';
39
43
  import { type GitState } from './state.js';
40
44
  export interface GitPlaySides {
41
45
  /** The state here: the line before the record. */
@@ -46,7 +50,10 @@ export interface GitPlaySides {
46
50
  readonly record: GitState;
47
51
  }
48
52
  /** What the play asks Git, in a repository holding every side's objects. */
49
- export interface GitPlayGit extends GitLineGit {
53
+ export interface GitPlayGit {
54
+ /** Whether `commit` is `base` or was built on it
55
+ * (`git merge-base --is-ancestor`). */
56
+ builtOn(commit: string, base: string): Promise<boolean>;
50
57
  /** What an index becomes when HEAD moves from commit `from` to `to`: the
51
58
  * commit `to` with what the index stages against `from` on top. Each path
52
59
  * the index stages keeps its entries, flags and resolve-undo; every other
@@ -62,14 +69,17 @@ export interface GitPlayed {
62
69
  readonly state: GitState;
63
70
  /** The bytes of the files the play wrote, by blob ID. */
64
71
  readonly made: ReadonlyMap<string, Uint8Array>;
65
- /** The commit HEAD named on each side, and where the play left it: the
66
- * checkout files the record's commits changed and the played commit holds
67
- * otherwise are what its sender's echo states (docs/clash-rules.md). */
68
- readonly heads: {
69
- readonly basis: string | null;
70
- readonly record: string | null;
71
- readonly played: string | null;
72
- };
72
+ /** The branches the play set aside, each the record's commit on a branch
73
+ * the line had moved elsewhere. A checkout whose own branch stood on that
74
+ * commit gets it back as a worktree (docs/git-turns.md). */
75
+ readonly aside: readonly GitAside[];
76
+ }
77
+ export interface GitAside {
78
+ /** The aside branch's full name, `refs/heads/amalgm/<branch>-<id>`. */
79
+ readonly branch: string;
80
+ /** The branch the record moved, by its full name. */
81
+ readonly from: string;
82
+ readonly commit: string;
73
83
  }
74
84
  /** The artifact of a repository change this machine recorded, when that
75
85
  * change is one the line has to play: the record made the Git directory or
@@ -1 +1 @@
1
- {"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../src/git/play.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,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at
3
- * the size of a whole Git directory.
2
+ * A repository record played onto the state here.
4
3
  *
5
4
  * A record states the Git directory its sender's change was made from (V,
6
5
  * its artifact's basis) and what it became (Y). The state here is the line
@@ -9,12 +8,18 @@
9
8
  * records in the same order makes the same state, since nothing here names
10
9
  * the machine playing:
11
10
  *
12
- * - A branch plays as one line (`GitLine.play`): what both sides committed
13
- * stands on it, in the cloud's order.
14
- * - Every other ref and every other Git-directory file is the record's when
15
- * the record changed it from V, else L's: a record moves what it moved, and
11
+ * - Every ref and every other Git-directory file is the record's when the
12
+ * record changed it from V, else L's: a record moves what it moved, and
16
13
  * what it left alone stays as the line holds it. A ref the record removed
17
14
  * stays removed.
15
+ * - A branch the line moved too is never rolled back. It follows the record
16
+ * only where the record's commit was built on the line's, as Git's own
17
+ * fast-forward. A record that diverged (made offline, or with no turn:
18
+ * docs/git-turns.md) leaves the line's branch where it stands, and its
19
+ * commits are kept beside it on a branch of their own,
20
+ * `amalgm/<branch>-<id>` (`GitPlayed.aside`). The next record made on those
21
+ * commits moves that same branch on, so one computer's offline work is one
22
+ * branch however many commits it holds.
18
23
  * - A reflog keeps L's lines less those the record removed, then the
19
24
  * record's new ones. When its ref ends where none of those lines put it,
20
25
  * one more line moves it there, so `@{0}` names where the ref stands. The
@@ -37,7 +42,6 @@
37
42
  import { utf8Decode, utf8Encode } from '../entities/bytes.js';
38
43
  import { GIT_ALTERNATES_PATH } from './alternates.js';
39
44
  import { gitBlobId } from './artifact.js';
40
- import { GitLine } from './line.js';
41
45
  import { gitChainReflog, gitDropPackedRefs, gitLooseRef, gitPackedRefs, gitReflogPlay, gitReflogTop } from './refs.js';
42
46
  import { gitBytesForm, gitSelfHeld, gitSharesGitDir, gitSharesObjects, isGitOid } from './state.js';
43
47
  import { compareGitText } from './text.js';
@@ -104,6 +108,12 @@ const isLooseRef = (file) => file.mode !== FOLDER
104
108
  const isRefFile = (file) => isLooseRef(file) || file.path === 'packed-refs';
105
109
  const isReflogPath = (path) => path.startsWith('logs/');
106
110
  const STASH = 'refs/stash';
111
+ const BRANCHES = 'refs/heads/';
112
+ /** Where aside branches stand, and the least of a commit's ID one is named by. */
113
+ const ASIDE = `${BRANCHES}amalgm`;
114
+ const ASIDE_ID = 7;
115
+ const ASIDE_NAMED = /^[0-9a-f]{7,}$/;
116
+ const beneath = (path, folder) => path.startsWith(`${folder}/`);
107
117
  /** The record played onto the line. `bytes` reads any blob a side's files
108
118
  * name. */
109
119
  export async function gitPlayRecord(sides, bytes, git, sha256) {
@@ -171,25 +181,61 @@ export async function gitPlayRecord(sides, bytes, git, sha256) {
171
181
  else
172
182
  played.set(stashLog, make(stashLog, stash));
173
183
  }
174
- const branches = new GitLine(git);
175
184
  const finals = new Map();
185
+ const diverged = [];
176
186
  for (const name of [...names].sort(compareGitText)) {
177
187
  const [line, basis, record] = await Promise.all(SIDES.map(side => value(side, name)));
178
- let final;
188
+ let final = basis !== record ? record : line;
179
189
  if (name === STASH) {
180
190
  if (stash === null)
181
191
  continue;
182
192
  final = gitReflogTop(stash);
183
193
  }
184
- else if (name.startsWith('refs/heads/')
185
- && [line, basis, record].every(oid => oid === null || isGitOid(sides.record.format, oid))) {
186
- final = await branches.play(line, basis, record);
194
+ else if (name.startsWith(BRANCHES) && line !== null && line !== basis && final !== line
195
+ && [line, record].every(oid => oid === null || isGitOid(sides.record.format, oid))) {
196
+ // Both sides moved this branch: the line's stands unless the record's
197
+ // was built on it.
198
+ if (record === null || !await git.builtOn(record, line)) {
199
+ final = line;
200
+ if (record !== null && !await git.builtOn(line, record))
201
+ diverged.push({ name, basis, record });
202
+ }
187
203
  }
188
- else
189
- final = basis !== record ? record : line;
190
204
  if (final !== line)
191
205
  finals.set(name, final);
192
206
  }
207
+ // Each diverged commit goes to the aside branch that stood at the commit it
208
+ // was made from, else to a new one named by as much of its ID as leaves the
209
+ // name free. Where no name can stand, since Git holds no branch beneath
210
+ // another, the commit is kept by its branch's reflog alone.
211
+ const aside = [];
212
+ if (diverged.length > 0) {
213
+ const held = new Map();
214
+ for (const name of new Set([...files.line.keys(), ...(await packedOf('line')).keys(), ...finals.keys()])) {
215
+ if (name !== ASIDE && !beneath(name, ASIDE))
216
+ continue;
217
+ const oid = finals.has(name) ? finals.get(name) : await value('line', name);
218
+ if (oid !== null)
219
+ held.set(name, oid);
220
+ }
221
+ const free = (name, commit) => (held.get(name) ?? commit) === commit
222
+ && ![...held.keys()].some(other => beneath(name, other) || beneath(other, name));
223
+ for (const { name, basis, record } of diverged) {
224
+ const stem = `${ASIDE}/${name.slice(BRANCHES.length)}-`;
225
+ let branch = [...held.keys()].sort(compareGitText).find(other => held.get(other) === basis
226
+ && other.startsWith(stem) && ASIDE_NAMED.test(other.slice(stem.length)));
227
+ for (let size = ASIDE_ID; branch === undefined && size <= record.length; size += 1) {
228
+ if (free(stem + record.slice(0, size), record))
229
+ branch = stem + record.slice(0, size);
230
+ }
231
+ if (branch === undefined)
232
+ continue;
233
+ if (await value('line', branch) !== record)
234
+ finals.set(branch, record);
235
+ held.set(branch, record);
236
+ aside.push({ branch, from: name, commit: record });
237
+ }
238
+ }
193
239
  // The line's ref files, with each ref that ends elsewhere written loose or
194
240
  // dropped.
195
241
  for (const [path, file] of [...played])
@@ -248,10 +294,11 @@ export async function gitPlayRecord(sides, bytes, git, sha256) {
248
294
  // The index follows HEAD: the record claims it when it changed the index
249
295
  // or the commit HEAD names.
250
296
  const headOf = (side) => value(side, 'HEAD').then(head => commitOf(head, name => value(side, name)));
251
- const heads = { basis: sides.basis === null ? null : await headOf('basis'), record: await headOf('record'), played: headCommit };
252
- const claims = sides.record.index?.meaning !== sides.basis?.index?.meaning || heads.record !== heads.basis;
297
+ const recordHead = await headOf('record');
298
+ const claims = sides.record.index?.meaning !== sides.basis?.index?.meaning
299
+ || recordHead !== (sides.basis === null ? null : await headOf('basis'));
253
300
  const [chosen, from] = claims
254
- ? [sides.record.index, heads.record]
301
+ ? [sides.record.index, recordHead]
255
302
  : [sides.line.index, await headOf('line')];
256
303
  let index = chosen;
257
304
  if (chosen?.files.length === 1 && from !== null && headCommit !== null && from !== headCommit) {
@@ -265,7 +312,7 @@ export async function gitPlayRecord(sides, bytes, git, sha256) {
265
312
  return {
266
313
  state: { format: sides.record.format, home: sides.record.home, files: asTree(played, files.record), index },
267
314
  made,
268
- heads,
315
+ aside,
269
316
  };
270
317
  }
271
318
  //# sourceMappingURL=play.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"play.js","sourceRoot":"","sources":["../../src/git/play.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAmB,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAA8C,MAAM,YAAY,CAAC;AAChJ,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgC3C;;;;;;;;4DAQ4D;AAC5D,MAAM,UAAU,YAAY,CAAC,MAG5B;IACC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,SAAS,CAAC,CAAC;IAC7G,OAAO,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9F,CA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K,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,IAAI,KAAK,GAAG,MAAM,CAAC;IACnB,IAAI,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QAC9F,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,GAAI,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;QAC3F,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAChE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACvB,KAAK,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;QACxF,CAAC;IACH,CAAC;IAED,OAAO;QACL,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE;QAC3G,IAAI;QACJ,KAAK;KACN,CAAC;AACJ,CAAC"}
@@ -26,7 +26,7 @@
26
26
  * leaves that unchanged; the host's line takes the record in when the next
27
27
  * record plays onto it. When another computer's record came between (a
28
28
  * clash), its own record plays like anyone's, and its sender, the one
29
- * computer that knows it is its own, states the joined line once at that
29
+ * computer that knows it is its own, states the played line once at that
30
30
  * window's end (an echo, `echoProposal`), so a computer that installs only
31
31
  * the newest record still shows the whole line. Its echo settles as own
32
32
  * when the line before it already is what it states; it never states