lazygit/pkg/commands/git_commands
Jesse Duffield 4c5b1574f1 Centralise logic for obtaining repo paths
There are quite a few paths you might want to get e.g. the repo's path, the worktree's path,
the repo's git dir path, the worktree's git dir path. I want these all obtained once and
then used when needed rather than having to have IO whenever we need them. This is not so
much about reducing time spent on IO as it is about not having to care about errors every time
we want a path.
2023-07-30 18:35:24 +10:00
..
bisect.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
bisect_info.go simplify 2022-03-24 20:14:41 +11:00
branch.go show commits against branches 2023-06-01 19:21:24 +10:00
branch_loader.go Fix test by making branches appear deterministically 2023-07-30 18:35:23 +10:00
branch_loader_test.go Associate branches with worktrees even when mid-rebase 2023-07-30 18:35:22 +10:00
branch_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
commit.go Prompt for commit message when moving a custom patch to a new commit 2023-07-23 13:55:48 +02:00
commit_file_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +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 Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
commit_loader_test.go Support random order of command execution in unit tests 2023-07-29 12:36:17 +10:00
commit_test.go Better tag creation UX 2023-07-22 14:36:35 +10:00
common.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
config.go Use comment char config on interactive rebase 2023-07-02 02:07:32 -03:00
custom.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
deps_test.go Support random order of command execution in unit tests 2023-07-29 12:36:17 +10:00
diff.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file.go Support opening worktree in editor 2023-07-30 18:35:23 +10:00
file_loader.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
file_loader_test.go Properly render worktrees in files panel 2023-07-30 18:35:22 +10:00
file_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +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 Support fastforwarding worktree 2023-07-30 18:35:23 +10: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
paths.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
rebase.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10: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 Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
remote_loader.go Speed up remote loader 2023-07-29 10:04:11 +10:00
stash.go Replace uses of "git stash save" with "git stash push" 2023-07-10 15:09:17 +02:00
stash_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +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 Replace uses of "git stash save" with "git stash push" 2023-07-10 15:09:17 +02:00
status.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
submodule.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
sync.go Support fastforwarding worktree 2023-07-30 18:35:23 +10:00
sync_test.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
tag.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
tag_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +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 Fix discard logic 2023-05-23 20:23:08 +10:00
working_tree_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
worktree.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
worktree_loader.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
worktree_loader_test.go Improve name handling 2023-07-30 18:35:22 +10:00