Repository navigation
v3.0.1
English
Fixed
statusno longer reports the config file as uncommitted work on machines that use per-machine overrides. The file on disk is supposed to differ from the committed version once overrides are in play, so plaingit statusflagged it as modified forever — a warning the user could never clear. The config is now compared with overrides subtracted, so only genuine edits count.git status --porcelainoutput is parsed by pattern rather than at a fixed column offset. Output is trimmed before parsing, which removed the leading column of an unstaged entry and shifted every field after it, silently yielding a truncated filename.
简体中文
修复
- 在使用本机覆盖的机器上,
status不再把配置文件报告为未提交的改动。启用覆盖后,磁盘上的文件本来就应该和提交的版本不同,所以单纯的git status会永远提示已修改,用户无法消除。现在会先减去覆盖再比较,只有真正的编辑才算改动。 - 按模式解析
git status --porcelain的输出,而不是按固定列位置。以前输出在解析前被裁掉了首部空白,未暂存条目的第一列丢失,后面的字段整体错位,得到的文件名被悄悄截断。
Install
npm install -g opencode-github-sync@3.0.1Plugin users: OpenCode picks up the new version on its next start.
Full Changelog: v3.0.0...v3.0.1