jesseduffield.lazygit/pkg/gui
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
..
context Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
controllers Rename Pushables/Pullables to AheadForPull/BehindForPull 2024-05-19 09:44:38 +02:00
filetree Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
keybindings Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
mergeconflicts Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
modes rename sha to hash 5 2024-04-12 08:33:47 +02:00
patch_exploring Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
popup Allow editing a custom command from the suggestions list by pressing 'e' 2024-05-19 07:06:18 +02:00
presentation Rename Pushables/Pullables to AheadForPull/BehindForPull 2024-05-19 09:44:38 +02:00
services/custom_commands Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
status Clean up error handling of WithWaitingStatus and WithWaitingStatusSync 2024-04-18 10:10:30 +02:00
style Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
types Allow editing a custom command from the suggestions list by pressing 'e' 2024-05-19 07:06:18 +02:00
background.go Make OnWorker callback return an error 2024-04-18 10:10:30 +02:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
controllers.go Save and restore the unwrapped description 2024-03-09 10:00:44 +01:00
dummies.go pkg: fix some comment 2024-04-07 16:09:26 +08:00
editors.go Add emacs-keybinds for word navigation 2023-08-15 12:22:17 +02:00
extras_panel.go Extract a SaveAppStateAndLogError function 2023-09-04 17:50:49 +02:00
global_handlers.go Remove calls to Error() 2024-04-18 10:10:30 +02:00
gui.go Fix deadlock reporting 2024-05-05 15:23:58 +02:00
gui_common.go Make OnWorker callback return an error 2024-04-18 10:10:30 +02:00
gui_driver.go Show unacknowledged toast message upon integration test failure 2024-01-19 10:50:49 +11:00
information_panel.go If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
keybindings.go Remove ErrorMsg 2024-04-18 10:10:30 +02:00
layout.go Show popup message with breaking changes on startup 2024-03-12 13:27:14 +01:00
main_panels.go Fix main view refresh after adding the first file to a custom patch 2024-01-28 09:49:56 +01:00
menu_panel.go Replace min/max helpers with built-in min/max 2024-04-07 23:24:10 +08:00
options_map.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
pty.go Set the TERM env variable 2024-03-23 23:46:37 +01:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
recent_repos_panel.go Use forward-slashes on windows 2023-07-30 18:35:24 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add ErrorToast function 2024-01-14 17:45:35 +01:00
view_helpers.go Make HandleGenericClick a little smarter 2024-03-29 10:55:33 +01:00
views.go Add config for soft-wrapping the commit message body 2024-03-09 10:00:44 +01:00