jesseduffield.lazygit/pkg/commands/models
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
..
author.go Keep track of authors across local commits and branch commits for suggestions 2023-07-22 10:47:04 +10:00
branch.go Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
commit.go Switch git-todo-parser from fsmiamoto original repo to stefanhaller's fork 2024-04-22 20:59:15 +02:00
commit_file.go Support filtering files 2023-07-03 12:54:13 +10:00
file.go Properly render worktrees in files panel 2023-07-30 18:35:22 +10:00
remote.go Use inline status for fetching remotes 2024-01-26 08:29:04 +01:00
remote_branch.go fix: fix ambiguous refname 2022-05-13 21:05:51 +09:00
stash_entry.go feat: add age on stash lines 2023-12-27 11:21:49 +01:00
submodule_config.go Show all submodules recursively 2024-03-07 20:16:28 +01:00
tag.go Add inline status for pushing tags and deleting remote tags 2023-10-08 18:45:36 +02:00
worktree.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00