Skip to content

Commit 65e2314

Browse files
author
luozihao
committed
chore: silence modify/delete conflicts on the deleted v1 engine
Upstream keeps patching packages/agent-core while this fork removed it outright, so every upstream sync raised a batch of modify/delete conflicts. Mark those paths merge=ours (driver must be enabled once per clone) and document the one-liner in CONTRIBUTING alongside the Bun upgrade notes.
1 parent 4b52dc3 commit 65e2314

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
*.gif binary
99
*.ico binary
1010
*.png binary
11+
12+
# Upstream keeps patching packages/agent-core (v1), which this fork deleted
13+
# wholesale. Keep merges auto-resolving to "deleted" instead of raising
14+
# modify/delete conflicts on every upstream sync. Requires the driver below
15+
# to be configured once per clone:
16+
# git config merge.ours.driver true
17+
packages/agent-core/** merge=ours -diff

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ bun install
5252
> patch cache key changed from a 16 KiB hash to the full-file SHA-1. This is
5353
> expected, not a bug.
5454
55+
**Syncing upstream:** this fork deletes `packages/agent-core` (the v1 engine)
56+
while upstream keeps patching it. `.gitattributes` marks those paths
57+
`merge=ours`, so merges auto-resolve to "kept deleted" instead of raising
58+
modify/delete conflicts. One-time setup per clone:
59+
`git config merge.ours.driver true`.
60+
5561
Useful scripts:
5662

5763
- `bun run dev:cli` — run the CLI in dev mode

CONTRIBUTING.zh-CN.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ bun install
5151
> `patches/ssh2@1.17.0.patch` 重新打一次:补丁缓存键已从「前 16KiB 哈希」
5252
> 改为整文件 SHA-1,属预期行为而非故障。
5353
54+
**同步上游须知**:本 fork 已整体删除 `packages/agent-core`(v1 引擎),
55+
而上游仍在持续修补它。`.gitattributes` 已将这些路径标记为
56+
`merge=ours`,合并时自动保持删除态,不再产生 modify/delete 冲突。
57+
每个克隆需一次性执行:`git config merge.ours.driver true`
58+
5459
常用脚本:
5560

5661
- `bun run dev:cli` — 开发模式运行 CLI

0 commit comments

Comments
 (0)