fixed linting · Entire
fixed linting
b5f1723→main·
Soph·2mo ago·2 files·+10 added/-6 removed
Sessions
b891ba006e02View transcript
[?
git-sync sync --tags https://github.com/entireio/cli.git $ARTIFACTS_REMOTEClaude Code·Opus 4.7[1m]·1 step](/content/gh/entireio/git-sync/session/124cf89f-b950-42d0-8c90-1990b889f0bc#timeline-b891ba006e02/index.html)
Changes
2
internal/planner\n
- Mplanner_test.go+4/-4
Mrelay.go+6/-2
1056 unmodified lines
1057
1058
1059
1060
1060
1061
1062
1063
13 unmodified lines
1077
1078
1079
1080
1080
1081
1082
1083
46 unmodified lines
1130
1131
1132
1133
1133
1134
1135
1136
73 unmodified lines
1210
1211
1212
1213
1213
1214
1215
1216
1056 unmodified lines
if !ok {
t.Fatalf("expected CanIncrementalRelay=true for no-thin target, got reason=%s", reason)
}
if reason != "fast-forward-branch-or-tag-create" {
if reason != reasonIncrementalEligible {
t.Fatalf("unexpected reason: %s", reason)
}
}
13 unmodified lines
if !ok {
t.Fatalf("expected CanIncrementalRelay=true for branch create, got reason=%s", reason)
}
if reason != "fast-forward-branch-or-tag-create" {
if reason != reasonIncrementalEligible {
t.Fatalf("unexpected reason: %s", reason)
}
}
46 unmodified lines
if !ok {
t.Fatalf("expected CanIncrementalRelay=true for mixed create+update, got reason=%s", reason)
}
if reason != "fast-forward-branch-or-tag-create" {
if reason != reasonIncrementalEligible {
t.Fatalf("unexpected reason: %s", reason)
}
}
73 unmodified lines
}}
target := RelayTargetPolicy{CapabilitiesKnown: true}
if got := RelayFallbackReason(false, false, false, tagCreate, target); got != "fast-forward-branch-or-tag-create" {
if got := RelayFallbackReason(false, false, false, tagCreate, target); got != reasonIncrementalEligible {
t.Fatalf("expected fast-forward-branch-or-tag-create, got %s", got)
}
}
Minternal/planner/planner_test.go+4/-4
51 unmodified lines
52
53
54
55
56
57
58
59
60
61
35 unmodified lines
97
98
99
96
100
101
102
103
7 unmodified lines
111
112
113
110
114
115
116
117
51 unmodified lines
return true, "empty-target-managed-refs"
// reasonIncrementalEligible is returned when all plans satisfy the incremental
// relay eligibility rules — branch FF updates, branch creates, or tag creates.
const reasonIncrementalEligible = "fast-forward-branch-or-tag-create"
// CanIncrementalRelay checks whether all plans are eligible for the incremental
// relay fast-path. Eligible plan shapes:
// - Branch fast-forward update (TargetHash is parent of SourceHash).
35 unmodified lines
if !plan.TargetHash.IsZero() {
return false, "incremental-branch-create-target-not-empty"
}
default:
case ActionDelete, ActionSkip, ActionBlock:
return false, "incremental-branch-action-not-update-or-create"
}
case RefKindTag:
7 unmodified lines
return false, "incremental-unsupported-ref-kind"
}
}
return true, "fast-forward-branch-or-tag-create"
return true, reasonIncrementalEligible
// CanFullTagCreateRelay checks whether all plans are tag creates, eligible for
Minternal/planner/relay.go+6/-2