jesseduffield.lazygit/pkg/commands/git_commands
Jesse Duffield bac12231c3 Don't bother checking for origin/main when loading commits
The real reason I'm doing this is to that it's easier to explain the logic behind setting
commit merged statuses. Now it's just 'try the upstream, fallback to the local branch'.

Other justifications:
* we should avoid assuming that 'origin' is the main upstream remote
* it's one less git call
* surely the main branch _will_ have an upsream. I doubt many people have benefitted
  from the extra fallback to origin
2023-10-11 15:50:17 +11:00
..
bisect.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
bisect_info.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
branch.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
branch_loader.go Store full sha in branch model 2023-07-31 08:34:01 +02:00
branch_loader_test.go Associate branches with worktrees even when mid-rebase 2023-07-30 18:35:22 +10:00
branch_test.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
commit.go Add coauthor (#2) 2023-09-09 07:18:47 -05:00
commit_file_loader.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
commit_file_loader_test.go Merge loaders package into git_commands package 2022-11-14 18:11:45 +11:00
commit_loader.go Don't bother checking for origin/main when loading commits 2023-10-11 15:50:17 +11:00
commit_loader_test.go Don't bother checking for origin/main when loading commits 2023-10-11 15:50:17 +11:00
commit_test.go Move diff context size from UserConfig to AppState 2023-09-05 13:55:30 +02:00
common.go Remove sync mutex 2023-10-08 18:45:36 +02:00
config.go Don't show branch marker for head commit unless updateRefs config is on 2023-07-31 08:34:01 +02:00
custom.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
deps_test.go Add AppState to common.Common 2023-09-04 17:48:39 +02:00
diff.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file.go use 'suspend' instead of 'editInTerminal' internally 2023-08-09 22:03:58 +10:00
file_loader.go Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00
file_loader_test.go Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00
file_test.go use 'suspend' instead of 'editInTerminal' internally 2023-08-09 22:03:58 +10:00
flow.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
flow_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_command_builder.go Add support for external diff commands (e.g. difftastic) 2023-09-04 16:52:30 +02:00
git_command_builder_test.go Add worktree tests for removing/detaching 2023-07-30 18:35:23 +10:00
patch.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
rebase.go Allow cherry-picking commits during a rebase 2023-09-18 10:50:19 +02:00
rebase_test.go Support random order of command execution in unit tests 2023-07-29 12:36:17 +10:00
reflog_commit_loader.go Refactor reflog commit loader 2023-07-29 10:04:11 +10:00
reflog_commit_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
remote.go Remove sync mutex 2023-10-08 18:45:36 +02:00
remote_loader.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
repo_paths.go Fix test 2023-08-19 19:12:36 +03:00
repo_paths_test.go Fix test 2023-08-19 19:12:36 +03:00
stash.go Move diff context size from UserConfig to AppState 2023-09-05 13:55:30 +02:00
stash_loader.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
stash_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
stash_test.go Move diff context size from UserConfig to AppState 2023-09-05 13:55:30 +02:00
status.go Add StatusCommands.IsInNormalRebase and IsInInteractiveRebase 2023-09-18 10:50:19 +02:00
submodule.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
sync.go Remove sync mutex 2023-10-08 18:45:36 +02:00
sync_test.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
tag.go Remove sync mutex 2023-10-08 18:45:36 +02:00
tag_loader.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tag_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
version.go Remove worktree version guards 2023-07-30 18:35:23 +10:00
version_test.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
working_tree.go Move diff context size from UserConfig to AppState 2023-09-05 13:55:30 +02:00
working_tree_test.go Move diff context size from UserConfig to AppState 2023-09-05 13:55:30 +02:00
worktree.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
worktree_loader.go Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
worktree_loader_test.go Fix arg order to asserts 2023-08-19 19:10:25 +03:00