1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-10 11:10:18 +02:00
lazygit/pkg
Stefan Haller ff8bc91a8e Use remote upstreams of main branches to determine merged status of commits
This solves three problems:

1. When the local main branch is behind its upstream, the merged status of
   commits of a feature branch sitting on origin/main was not correct. This can
   easily happen when you rebase a branch onto origin/main instead of main, and
   don't bother keeping local main up to date.
2. It works when you don't have the main branch locally at all. This could
   happen when you check out a colleague's feature branch that goes off of
   "develop", but you don't have "develop" locally yourself because you normally
   only work on "main".
3. It also works when you work on a main branch itself, e.g. by committing to it
   directly, or by merging a branch locally. These local commits on a main
   branch would previously be shown in green instead of red; this broke with
   910a61dc46.
2023-06-26 09:02:46 +02:00
..
app Fix focus issue when opening recent-repos menu at launch 2023-06-07 18:27:18 +10:00
cheatsheet Use sentence case everywhere 2023-05-25 23:52:19 +10:00
commands Use remote upstreams of main branches to determine merged status of commits 2023-06-26 09:02:46 +02:00
common
config Rename the gui.skipUnstageLineWarning conf key to gui.skipDiscardChangeWarning 2023-06-26 08:19:58 +02:00
constants
env
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Rename "Delete change" menu entry to "Discard change" in staging panel 2023-06-26 08:19:58 +02:00
i18n Rename "Delete change" menu entry to "Discard change" in staging panel 2023-06-26 08:19:58 +02:00
integration Fix the title and text (and variable names) of the Discard Changes prompt 2023-06-26 08:15:35 +02:00
logs Allow global logging when developing 2023-05-25 18:31:32 +10:00
secureexec Cache binary paths 2023-05-23 19:15:33 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks prevent unnecessary re-renders of view 2023-04-02 15:44:05 +10:00
theme Set defaults colours to 'default', not 'white' 2023-06-01 18:59:04 +10:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Avoid rewriting the file if nothing changed 2023-06-26 08:11:10 +02:00