mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-14 00:33:35 -04:00
When pushing master, lazygit offers to push other branches along with it if they were merged into master locally and have unpushed commits. Pulling master offers to update such branches in the same way. These branches aren't part of a stack, so the menu only adds an extra step to an ordinary push or pull. This happens because a branch counts as stacked below the current one if its tip is one of the current branch's commits that aren't merged into a main branch yet. A commit's merged status only looks at the remote branch of each main branch. So until master is pushed, the commits that were merged into it locally count as unmerged. The same goes for pushing or pulling a feature branch on top of such a master. Treat the commits that a local main branch contains as merged too, so that the search for stacked branches stops at a main branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>