1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-16 11:37:01 +02:00
lazygit/pkg/commands
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
..
git_commands Use remote upstreams of main branches to determine merged status of commits 2023-06-26 09:02:46 +02:00
git_config remove deprecated calls 2022-09-17 15:10:41 -07:00
hosting_service Update gitlab commit URL to match new routing 2023-05-22 07:39:47 +03:30
models Insert fake todo entry for a conflicting commit that is being applied 2023-06-22 18:57:58 +02:00
oscommands Appease linter 2023-06-03 15:54:03 +10:00
patch Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go fix(loaders/file.go): changed to ignore stderr when loading git status 2022-09-19 18:46:32 +09:00
git_test.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
git.go show commits against branches 2023-06-01 19:21:24 +10:00