jesseduffield.lazygit/pkg
Stefan Haller d890c68cd0 Add ahead/behind information for @{push}
In a triangular workflow the branch that you're pulling from is not the same as
the one that you are pushing to. For example, some people find it useful to set
the upstream branch to origin/master so that pulling effectively rebases onto
master, and set the push.default git config to "current" so that "feature"
pushes to origin/feature.

Another example is a fork-based workflow where "feature" has upstream set to
upstream/main, and the repo has remote.pushDefault set to "origin", so pushing
on "feature" pushes to origin/feature.

This commit adds new fields to models.Branch that store the ahead/behind
information against the push branch; for the "normal" workflow where you pull
and push from/to the upstream branch, AheadForPush/BehindForPush will be the
same as AheadForPull/BehindForPull.
2024-05-19 09:44:38 +02:00
..
app Drop update-ref commands at the top of the rebase-todo file 2024-04-22 20:59:15 +02:00
cheatsheet Render keybinding cheatsheet as markdown table 2024-01-28 08:12:01 +11:00
commands Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config improve nvim-remote mode 2024-05-19 14:39:02 +10:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
i18n Show delete/edit keybindings in suggestions subtitle if available 2024-05-19 07:06:18 +02:00
integration Add test demonstrating the problem with force-pushing in a triangular workflow 2024-05-19 09:44:38 +02:00
jsonschema Add UserConfig jsonschema generation script 2023-12-02 10:46:24 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Use ScanLinesAndTruncateWhenLongerThanBuffer instead of bufio.ScanLines 2024-05-15 13:27:01 +02:00
theme pkg: fix some comment 2024-04-07 16:09:26 +08:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00