mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
ignore: read deleted files
This commit is contained in:
parent
6389858d41
commit
9e75e3ed18
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ export namespace File {
|
||||||
const full = path.join(app.path.cwd, file)
|
const full = path.join(app.path.cwd, file)
|
||||||
const content = await Bun.file(full)
|
const content = await Bun.file(full)
|
||||||
.text()
|
.text()
|
||||||
|
.catch(() => "")
|
||||||
.then((x) => x.trim())
|
.then((x) => x.trim())
|
||||||
if (app.git) {
|
if (app.git) {
|
||||||
const rel = path.relative(app.path.root, full)
|
const rel = path.relative(app.path.root, full)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue