mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-25 01:35:31 +00:00
* fix(git): offer Push and Pull for a branch whose remote is not origin A checkout whose only remote has another name, with main tracking that remote's main, got no Push, Pull or Pull and push. The app gated all three on hasRemote, which is true only when origin is configured, and the daemon's pull refused to run without origin. Neither action needs origin. The daemon now reports where each one goes for the current branch (pullRemote, pushRemote) and the app offers the actions from those. One resolver picks the push destination for both the status and the push, so the offer and the push cannot disagree. Without origin, Push follows the upstream only when the upstream branch has the branch's own name and git pushes the branch to that remote. A branch such as feature tracking upstream/main can be pulled and is not pushed. With origin, every push goes where it went before. firstPushRemote stays on the wire for apps that predate pushRemote. * fix(git): follow Git's own push destination when origin is missing Without origin, Push compared the upstream's remote with the remote Git pushes the branch to. That missed a push refspec: with remote.<upstream>.push set, plain `git push` updates another branch, and Paseo still updated the upstream. A regular checkout with a push refspec on branch.<name>.pushRemote was pushed there and stayed ahead of its upstream. Push now asks Git where `git push` sends the branch (%(push)) and follows the upstream only when that is the upstream. This also covers push.default. A Paseo worktree keeps the push refspec Paseo configures for a PR checkout. Pull no longer requires a configured upstream before it runs. Git decides, so a branch with no upstream in a single-branch clone pulls again. * fix(git): compare the push remote by name when origin is missing Push compared Git's push destination with the upstream as remote-tracking refs. Two remotes whose fetch refspecs map onto the same tracking namespace give the same ref for different repositories, so a branch Git pushes to one remote was sent to the other. The remote Git pushes to is now compared by name as well. * fix(git): leave a matching-mode push to the user when origin is missing Under push.default=matching, git push sends a branch only when the remote still has it. The checkout's remote-tracking ref can outlive a branch deleted on the remote, so the daemon cannot tell from local metadata that the push would go to the upstream, and its explicit push would recreate the branch. Without origin, Push is now refused in that mode.
@getpaseo/protocol
Shared Paseo protocol schemas, codecs, and wire types.
Stability
This package is public so Paseo's published packages can depend on it cleanly. It is not a stable public API yet.
Schemas, exports, wire helpers, and types may change or disappear in any release without advance notice. Use it outside Paseo at your own risk until the package is explicitly documented as stable.