Repository navigation
1.0.48
What's Changed
Support checking out PRs from forks via fetch PR ref (#80)
- Fix fork PR checkout failures: When checking out a pull request from a fork, the branch's
headRefNameonly exists on the fork's remote and not onorigin, causing an "invalid reference" error. This PR fixes that by fetching the PR ref directly viagit fetch origin pull/<number>/headand usingFETCH_HEADas the start point for the new worktree. - Thread
prNumberthrough the full data flow: Passes the PR number fromBranchPickerDialog→ProjectItem→ preload IPC →worktree-ops→git-serviceso the git service knows when it's dealing with a PR checkout. - Skip duplicate worktree guard for PR checkouts: A fork's
headRefNamemay collide with a local branch name (e.g. both the fork and local repo have amainbranch). The duplicate-detection logic is now skipped whenprNumberis provided to avoid false positives. - Improved error logging: Added
prNumberto the error log context increateWorktreeFromBranchfor easier debugging.
Feature: configurable external editor for “Open in Editor” (#79)
External editor: Users can choose an editor in Settings (Cursor, Sublime, VS Code, custom). That choice is stored in the DB under a single key (APP_SETTINGS_DB_KEY / app_settings) and used for all “Open in Editor” actions (worktree, connection, file tree).
Main process: A shared helper openPathWithPreferredEditor in settings-handlers reads defaultEditor and customEditorCommand from the DB and spawns the right app. Worktree, connection, and git “Open in Editor” handlers call this helper instead ...