Jesse Duffield
25f8b0337e
Add convenience builder for git commands
2023-05-20 20:54:24 +10:00
Jesse Duffield
63ddc52a6b
Increase test coverage
2023-05-20 16:55:15 +10:00
Jesse Duffield
2304ffc804
Merge pull request #2641 from stefanhaller/visualize-ignore-whitespace-config
2023-05-20 13:01:22 +10:00
Jesse Duffield
d161afe37f
Support ignoring whitespace on stash
2023-05-19 17:49:22 +02:00
Jesse Duffield
681a9bf20d
Merge pull request #2612 from longlhh90/fix-commit-prefixes-with-empty-commit-message
2023-05-17 17:12:05 +10:00
Jesse Duffield
ea5fb6a364
Merge pull request #2629 from jesseduffield/try-fix-conflict-continue-prompt
2023-05-16 21:13:17 +10:00
Jesse Duffield
a82134f41c
Fix race condition
...
Our refresh code may try to push a context. It does this in two places:
1) when all merge conflicts are resolved, we push a 'continue merge?' confirmation context
2) when all conflicts of a given file are resolved and we're in the merge conflicts context,
we push the files context.
Sometimes we push the confirmation context and then push the files context over it, so the user
never sees the confirmation context.
This commit fixes the race condition by adding a check to ensure that we're still in the
merge conflicts panel before we try escaping from it
2023-05-16 21:01:38 +10:00
Jesse Duffield
00b03079d8
Don't deactivate context that you're about to activate
2023-05-16 21:01:38 +10:00
Jesse Duffield
9592686629
Compare contexts with keys
...
We don't want to compare contexts directly given they are interfaces and not
pointers to structs
2023-05-16 21:01:38 +10:00
Jesse Duffield
114ad52ff6
Rename CmdLog -> GuiLog
...
We want to log both actions and commands for the sake of integration tests
2023-05-16 21:01:38 +10:00
Jesse Duffield
9910a7c308
Merge pull request #2628 from stefanhaller/make-merged-take-precedence-over-unpushed
2023-05-13 12:33:34 +10:00
Jesse Duffield
e2d7e461a8
Merge pull request #2519 from jesseduffield/refactor-better-encapsulation
2023-05-11 19:09:01 +10:00
Jesse Duffield
7c66ca83c1
update cheatsheets
2023-05-11 19:02:25 +10:00
Jesse Duffield
007b406b14
remove duplicate method
2023-05-11 19:00:41 +10:00
Jesse Duffield
2b30085dba
Merge branch 'master' into refactor-better-encapsulation
2023-05-11 19:00:01 +10:00
Jesse Duffield
5c95d23169
Merge pull request #2620 from jesseduffield/yaml
2023-05-11 09:14:57 +10:00
Jesse Duffield
e156e090cc
add ability to update yaml path while preserving comments
2023-05-10 22:31:27 +10:00
Jesse Duffield
0accb07dcc
Merge pull request #2591 from screendriver/nvim
2023-05-04 16:55:22 +10:00
Jesse Duffield
3cac14c76e
add comment to encourage keeping code and docs in sync
2023-05-04 16:53:13 +10:00
Jesse Duffield
5149b24ab3
Merge pull request #2585 from stefanhaller/only-use-empty-arg-when-available
2023-05-03 17:59:07 +10:00
Jesse Duffield
c520c5cfc3
Merge pull request #2588 from jesseduffield/update-open-docs
2023-05-03 13:48:50 +10:00
Jesse Duffield
c88ecdf87c
update open docs
2023-05-03 13:48:04 +10:00
Jesse Duffield
5dacbb6293
merge master into refactor-better-encapsulation
2023-05-02 19:05:42 +10:00
Jesse Duffield
4160fa518c
Merge pull request #2582 from stefanhaller/config-for-showing-branch-heads
2023-05-02 18:59:12 +10:00
Jesse Duffield
c6c4346d48
Merge pull request #2551 from stefanhaller/fix-initial-context-activation
2023-05-01 21:22:43 +10:00
Jesse Duffield
ee9ae8f07f
Merge pull request #2552 from stefanhaller/support-stacked-branches
2023-05-01 21:07:19 +10:00
Jesse Duffield
8d68ab41b6
Merge branch 'refactor-better-encapsulation' into test-refactor
2023-04-30 14:02:16 +10:00
Jesse Duffield
af97bf484c
Refresh staging panel when committing
...
We now refresh the staging panel when doing an unscoped refresh, so that if we commit from the staging panel we escape
back to the files panel if need be. But that causes flickering when doing an unscoped refresh from other contexts,
because the refreshStagingPanel function assumes that the staging panel has focus. So we're adding a guard at the top
of that function to early exit if we don't have focus.
2023-04-30 13:19:54 +10:00
Jesse Duffield
a57310df24
Retain commit message when cycling history
...
When cycling history, we want to make it so that upon returning to the original prompt, you get your text back.
Importantly, we don't want to use the existing preservedMessage field for that because that's only for preserving
a NEW commit message, and we don't want the history stuff of the commit reword flow to overwrite that.
2023-04-30 13:19:54 +10:00
Jesse Duffield
a5c72d056d
ensure initial context is set when entering submodule
2023-04-30 13:19:53 +10:00
Jesse Duffield
8a86de85c8
remove log call because it clutters test output
2023-04-30 13:19:53 +10:00
Jesse Duffield
dd31f8ecea
update cheatsheets
2023-04-30 13:19:53 +10:00
Jesse Duffield
5a7b2ab6d0
fix rendering of commit files view
2023-04-30 13:19:53 +10:00
Jesse Duffield
68a9d7fd77
appease linter
2023-04-30 13:19:53 +10:00
Jesse Duffield
19cbafcdfc
remove unused file
2023-04-30 13:19:53 +10:00
Jesse Duffield
f2c85c5b19
move side window actions to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
0faa41e6f8
move toggle whitespace action to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
2e32e55957
update integration test for toggling whitespace
2023-04-30 13:19:53 +10:00
Jesse Duffield
037cd99138
move quit actions to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
6388885699
fix reflog text colour by defaulting every view to the same foreground colour
2023-04-30 13:19:53 +10:00
Jesse Duffield
d3e9bc2185
remove unused file
2023-04-30 13:19:53 +10:00
Jesse Duffield
ea4587a3b8
move some methods
2023-04-30 13:19:53 +10:00
Jesse Duffield
2da300f2fb
move diffing menu action to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
7848958326
move filtering menu action to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
2cba98e3fe
move another action into controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
f8c9ce33c2
move more actions into controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
71753770ad
move custom patch options menu action to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
820b1e811d
move custom command action into its own file
2023-04-30 13:19:53 +10:00
Jesse Duffield
4a33fede7b
move window arrangement helper
2023-04-30 13:19:53 +10:00
Jesse Duffield
db12853bbe
lots of changes
2023-04-30 13:19:53 +10:00
Jesse Duffield
711674f6cd
standardise controller helper methods
2023-04-30 13:19:53 +10:00
Jesse Duffield
fc91ef6a59
standardise helper args
2023-04-30 13:19:53 +10:00
Jesse Duffield
43251e7275
split context common from helper common
2023-04-30 13:19:53 +10:00
Jesse Duffield
f081358943
move getDisplayStrings funcs into contexts
2023-04-30 13:19:53 +10:00
Jesse Duffield
0c6ab4b43e
refactor cherry pick code to move state access out of helper
2023-04-30 13:19:53 +10:00
Jesse Duffield
1b2fb34ffd
start moving getDisplayStrings funcs into contexts
2023-04-30 13:19:53 +10:00
Jesse Duffield
0e5a4c7a36
move getModel functions into contexts
2023-04-30 13:19:53 +10:00
Jesse Duffield
47b91f1ef5
move views into contexts
2023-04-30 13:19:53 +10:00
Jesse Duffield
e2db6a1732
remove context callback opts
2023-04-30 13:19:53 +10:00
Jesse Duffield
509e3efa70
lots more refactoring
2023-04-30 13:19:53 +10:00
Jesse Duffield
8edad826ca
Begin refactoring gui
...
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the
gui package purely for the sake of better encapsulation
2023-04-30 13:19:52 +10:00
Jesse Duffield
8ed29f2b7d
Merge pull request #2390 from seand52/revamp-commit-message
2023-04-30 12:22:42 +10:00
Jesse Duffield
9adbef40de
Refresh staging panel when committing
...
We now refresh the staging panel when doing an unscoped refresh, so that if we commit from the staging panel we escape
back to the files panel if need be. But that causes flickering when doing an unscoped refresh from other contexts,
because the refreshStagingPanel function assumes that the staging panel has focus. So we're adding a guard at the top
of that function to early exit if we don't have focus.
2023-04-30 12:17:34 +10:00
Jesse Duffield
0cd5257523
Retain commit message when cycling history
...
When cycling history, we want to make it so that upon returning to the original prompt, you get your text back.
Importantly, we don't want to use the existing preservedMessage field for that because that's only for preserving
a NEW commit message, and we don't want the history stuff of the commit reword flow to overwrite that.
2023-04-30 12:17:34 +10:00
Jesse Duffield
e63858215e
refactor moveFixupCommitDown
2023-04-29 07:28:33 +02:00
Jesse Duffield
185bbf0c75
Refactor to tighten interface to lazygit daemon
2023-04-29 07:28:33 +02:00
Jesse Duffield
826128a8e0
Merge pull request #2578 from jesseduffield/enforce-lowercase-filenames
2023-04-29 13:08:06 +10:00
Jesse Duffield
aec46942a8
enforce lowercase filenames
2023-04-29 13:05:05 +10:00
Jesse Duffield
aa70723e3a
Merge pull request #2558 from stefanhaller/allow-resetting-author-during-rebase
2023-04-29 12:44:14 +10:00
Jesse Duffield
7db54a948a
Merge pull request #2548 from AKARSHITJOSHI/fix/tagPush
2023-04-29 12:43:55 +10:00
Jesse Duffield
2553015029
Merge pull request #2577 from jbrains/add-editor-preset-for-kakoune
2023-04-29 12:39:10 +10:00
Jesse Duffield
b17c38befd
Merge pull request #2567 from jesseduffield/bump-clipboard-package
2023-04-24 13:42:18 +10:00
Jesse Duffield
79dc1d9052
Merge pull request #2557 from noahziheng/feature/add-gitea-pr
2023-04-24 13:42:05 +10:00
Jesse Duffield
ed98e11fa0
Merge pull request #2555 from Ryooooooga/revert-force-if-includes
2023-04-24 13:37:14 +10:00
Jesse Duffield
1efb565b22
Merge pull request #2370 from AzraelSec/rebase-with-todo-edit
2023-04-15 19:17:06 +10:00
Jesse Duffield
8f1f712841
use lowercase text for menu items (as we're still yet to standardise on 'Sentence case')
2023-04-15 17:29:31 +10:00
Jesse Duffield
711be78811
extract out function
2023-04-15 17:26:08 +10:00
Jesse Duffield
46718e25ca
Merge pull request #2547 from stefanhaller/more-robust-todo-rewriting
2023-04-15 17:16:11 +10:00
Jesse Duffield
981ba4c66c
Merge pull request #2550 from jesseduffield/handle-flakey-tests
2023-04-14 21:15:22 +10:00
Jesse Duffield
7f5465a27b
fix flaky tests
2023-04-14 21:01:45 +10:00
Jesse Duffield
275ed12486
Merge pull request #2545 from stefanhaller/fix-integration-test-name
2023-04-14 20:29:20 +10:00
Jesse Duffield
82c54ed3d2
Merge pull request #2544 from scallaway/git-diff-detect-renames
2023-04-13 21:47:59 +10:00
Jesse Duffield
bd62b519de
Merge pull request #2496 from jesseduffield/feature/prevent-history-custom-command
2023-04-13 21:25:35 +10:00
Jesse Duffield
04e0a9bb45
Merge pull request #2523 from stefanhaller/editor-config
2023-04-13 21:22:17 +10:00
Jesse Duffield
caedf57484
Merge pull request #2539 from axieax/ssh-git-url-parsing-fix
2023-04-13 21:15:58 +10:00
Jesse Duffield
2087a02f01
Merge pull request #2541 from stefanhaller/fix-debugger-config
2023-04-13 21:05:02 +10:00
Jesse Duffield
a02b54e1b7
Merge pull request #2497 from stefanhaller/fix-initial-scroll-bar-size
2023-04-02 16:38:07 +10:00
Jesse Duffield
0af4e5a843
prevent unnecessary re-renders of view
2023-04-02 15:44:05 +10:00
Jesse Duffield
ef239c04fb
Merge pull request #2485 from stefanhaller/interactive-rebase-improvements
2023-04-02 10:26:19 +10:00
Jesse Duffield
3a59aba46d
Merge pull request #2521 from jesseduffield/fix-reflog-text-colour
2023-03-26 17:10:31 +11:00
Jesse Duffield
213ae8dd07
fix reflog text colour by defaulting every view to the same foreground colour
2023-03-26 15:24:09 +11:00
Jesse Duffield
4780953cef
Merge pull request #2377 from shinhs0506/clear-staging-after-commit
2023-03-24 19:13:00 +11:00
Jesse Duffield
3bfbc9d255
Merge pull request #2518 from jesseduffield/remove-old-integration-test-stuff
2023-03-24 18:55:06 +11:00
Jesse Duffield
8121a0cc74
remove old integration test recording code
2023-03-24 18:42:11 +11:00
Jesse Duffield
4b67a45a16
Merge pull request #2515 from stefanhaller/fix-deprecated-rand-seed
2023-03-20 20:12:25 +11:00
Jesse Duffield
a82d952f48
Merge pull request #2495 from jesseduffield/feature/remove-altreturn
2023-03-20 20:11:35 +11:00
Jesse Duffield
cef804f27a
Merge pull request #2513 from jesseduffield/refactor-patch-handling
2023-03-19 16:53:02 +11:00
Jesse Duffield
60f902f026
rename patch manager to patch builder
2023-03-19 16:35:57 +11:00
Jesse Duffield
7ce3165afa
specify view when assertion on line count fails
2023-03-19 16:30:39 +11:00
Jesse Duffield
c28e25524a
bump gocui to fix race condition
2023-03-19 16:30:39 +11:00