mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 01:26:24 -04:00
* Add a keybinding to push the selected branch in the Branches panel Push (shift+P) always targeted the checked-out branch, even with a different branch highlighted in the Branches panel. That made pushing any other local branch require checking it out first. git push with no refspec always targets whatever is checked out, so reaching a non-current branch requires naming it explicitly in the refspec. Add that explicit-refspec path and wire a new keybinding in the Branches panel that pushes whichever branch is selected, leaving the existing global push (used from any other panel) untouched. * Add a keybinding to pull the selected branch's linked worktree Real git has no way to merge or rebase into a branch that isn't checked out anywhere - that always needs a working tree. Fast-forward (already available via the F key) covers the clean case, but a diverged branch needs a real pull, which is only possible if the branch has its own linked worktree. Add p in the Branches panel for that case: it runs the pull in the branch's linked worktree rather than the currently open one, and is disabled when the branch has no worktree. If the pull hits a conflict in a worktree other than the one currently open, we can't drop the user into the interactive conflict-resolution flow (that UI operates on the open worktree), so we report the failure and point them at switching to it instead. * Remove the No PRs rule from AGENTS.md That rule guarded against an agent opening PRs against the upstream jesseduffield/lazygit repo. This is a personal fork with its own workflow, so the guard no longer applies here. --------- Co-authored-by: Khanh Truong <khanh_t@arbin.com> |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||