* chore: add .worktrees/ to gitignore for worktree workflow * fix: resolve remote-tracking base ref in getLog for PR description generation getLog was calling git log <base>..<head> with a bare branch name that often doesn't exist locally (e.g. main when only origin/main is present), causing a fatal 'unknown revision' error and HTTP 500. Apply the same origin/<base> resolution already used in getRangeDiff and getRangeFiles: check refs/remotes/origin/<base> first and prefer that ref if it exists. Also fix getGitLog in gitApiHttp.ts to read the JSON error body on failure instead of falling back to response.statusText, so the actual git error message surfaces in the toast instead of 'Internal Server Error'. * fix(git): use local-first ref resolution in getLog and port to VS Code - Replace unconditional origin/<from> preference in getLog() with a local-first fallback: prefer the local ref, only use origin/<from> when the local ref cannot be resolved, and pass through unchanged when neither resolves so git surfaces a meaningful error. - Extract the logic into an exported resolveBaseRefForLog(from, checkRef) helper so it is unit-testable without a real git repo. - Add service.test.js with 6 cases covering local-wins, origin-fallback, neither-exists passthrough, and falsy/empty inputs. - Port the same local-first resolution to packages/vscode/src/gitService.ts getGitLog() to close the cross-runtime parity gap; also handles from-only ranges as from..HEAD, matching the web service contract. * fix(vscode): add missing to-only range branch in getGitLog When only 'to' is supplied (no 'from'), the web service appends it as a positional git-log argument. The VS Code port was missing this branch and silently returned unbounded history instead. Adds the else-if to restore full cross-runtime parity. * fix(vscode): surface git log errors --------- Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
66 lines
750 B
Plaintext
66 lines
750 B
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
|
|
node_modules
|
|
dist
|
|
dist-ssr
|
|
release
|
|
|
|
# changelog-card tool: cached webfonts + generated cards
|
|
scripts/changelog-card/.fonts/
|
|
changelog-*.png
|
|
*.local
|
|
*.tgz
|
|
*.vsix
|
|
/npm
|
|
/tsc
|
|
/openchamber@*
|
|
local-dev*
|
|
.tmp/
|
|
# Editor directories and files
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
.idea
|
|
.DS_Store
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
.opencode/plans/*
|
|
.hive
|
|
docs/personal/*
|
|
|
|
# Build outputs
|
|
build/
|
|
.gradle/
|
|
.*.bun-build
|
|
|
|
# Built webview assets (generated during build)
|
|
src/main/resources/webview/
|
|
|
|
# IDE
|
|
*.iml
|
|
*.ipr
|
|
*.iws
|
|
|
|
# Local env
|
|
.env
|
|
.env.local
|
|
|
|
# IntelliJ plugin (separate project)
|
|
packages/intellij/
|
|
|
|
# OS
|
|
Thumbs.db
|
|
|
|
# Local runtime state (docker/dev)
|
|
data/
|
|
workspaces/
|
|
*.pid
|
|
.worktrees/
|