Skip to content

Commit 5cb137c

Browse files
committed
Revert "fix(opencode): revert .github conflict resolution back to --ours"
This reverts commit 3413d1f.
1 parent 4097691 commit 5cb137c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

‎.github/workflows/opencode.yml‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,25 @@ jobs:
122122
# support, cache fixes, ...) in areas the fork didn't touch flow in for free.
123123
#
124124
# Only directly CONFLICTING hunks are resolved here, split by ownership:
125-
# * Fork-owned CI/docs (.github/**, README, ...) keep OURS. The fork
126-
# is a heavy rewrite (ReSukiSU branding, ccache download-once,
127-
# model-link table, DWC3, KSUN removal, t.me links). Resolving
128-
# HERE lets the workflow commit a real 2-parent merge commit so
129-
# upstream ancestry is preserved and merge-base advances.
125+
# * Fork-owned CI/docs (.github/**, README, ...) are LEFT CONFLICTED
126+
# so the opencode agent can intelligently merge upstream CI
127+
# improvements while preserving fork-specific features (ReSukiSU
128+
# branding, ccache download-once, model-link table, OOS naming,
129+
# DWC3, KSUN removal, t.me links, etc.) per guidelines.txt.
130130
# * Everything else (device configs, manifests, kernel sources) takes
131131
# UPSTREAM; sanitize.py below re-applies the deterministic fork
132132
# transforms (uname -> OP-RESUKISU, AnyKernel3 URL, oos* naming).
133133
git ls-files -u 2>/dev/null | awk '{print $4}' | sort -u | while IFS= read -r f; do
134134
[ -z "$f" ] && continue
135135
case "$f" in
136136
.github/*|README.md|compatibility.md|LICENSE)
137-
git checkout --ours -- "$f" 2>/dev/null || true
138-
git add -- "$f" 2>/dev/null || true
137+
# CI/docs: skip auto-resolve. Leave conflicts for the agent
138+
# so it can merge upstream improvements while keeping fork
139+
# customizations per guidelines.txt.
139140
;;
140141
*)
142+
# Device configs, manifests, kernel sources: take UPSTREAM;
143+
# sanitize.py below re-applies deterministic fork transforms.
141144
git checkout --theirs -- "$f" 2>/dev/null || git rm -f --quiet "$f" 2>/dev/null || true
142145
git add -- "$f" 2>/dev/null || true
143146
;;

0 commit comments

Comments
 (0)