opencode/packages
Dax Raad 6f88ab8f8d fix(snapshot): respect gitignore for previously tracked files
Files previously tracked in the snapshot that were later added to .gitignore
were still being included in patches. This happened because:

1. diff-files returns tracked files regardless of gitignore status
2. git add was re-adding all files including those now ignored
3. patch() and diffFull() output wasn't filtering out gitignored files

The fix:
- In add(): Use git check-ignore --no-index to identify newly-ignored files
  (even if they're tracked in source git) and remove them from the snapshot
  index with git rm --cached
- In patch(): Filter out gitignored files from the diff output using
  git check-ignore --no-index
- In diffFull(): Filter out gitignored files from the diff output

Tests added:
1. files tracked in snapshot but now gitignored are filtered out
   Uses a.txt (from bootstrap) to test files already in git

2. gitignore updated between track calls filters from diff
   Tests that gitignore changes between two track() calls
   properly filter from diffFull results

Fixes issue where files like .android-sdk were re-added to snapshots
even after being added to .gitignore.
2026-04-12 13:47:48 -04:00
..
app fix windows e2e backend not stopping on sigterm waiting 10s for no reason (#21781) 2026-04-10 01:00:21 +00:00
console hide download button 2026-04-11 14:18:58 -04:00
containers chore: bump Bun to 1.3.11 (#18144) 2026-03-23 10:19:21 +10:00
desktop release: v1.4.3 2026-04-10 01:00:12 +00:00
desktop-electron release: v1.4.3 2026-04-10 01:00:12 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise release: v1.4.3 2026-04-10 01:00:12 +00:00
extensions/zed release: v1.4.3 2026-04-10 01:00:12 +00:00
function release: v1.4.3 2026-04-10 01:00:12 +00:00
identity
opencode fix(snapshot): respect gitignore for previously tracked files 2026-04-12 13:47:48 -04:00
plugin refactor(plugin): return Effect from ToolContext.ask (#21986) 2026-04-10 23:50:50 -04:00
script refactor: replace bun semver with npm semver package 2026-03-09 15:29:55 -04:00
sdk chore: generate 2026-04-12 00:58:05 +00:00
slack release: v1.4.3 2026-04-10 01:00:12 +00:00
storybook chore(app): markdown playground in storyboard 2026-03-25 09:14:35 -05:00
ui release: v1.4.3 2026-04-10 01:00:12 +00:00
util release: v1.4.3 2026-04-10 01:00:12 +00:00
web zen: nemotron doc 2026-04-10 16:58:38 -04:00