Jesse Duffield
ac580ae6a0
migrate undo2
2023-02-20 18:20:23 +11:00
Jesse Duffield
9e1e20fef2
Merge pull request #2421 from Ryooooooga/tag-on-branch
2023-02-20 18:20:16 +11:00
Jesse Duffield
4b49bd406f
Update pkg/integration/tests/branch/create_tag.go
2023-02-20 17:58:08 +11:00
Stefan Haller
7351907474
Add integration tests for rebasing to the initial commit
2023-02-20 07:40:05 +01:00
Stefan Haller
a349e886ce
Allow interactive rebasing all the way down to the first commit
...
Pass --root instead of a sha when we want to rebase down to the initial commit.
2023-02-20 07:40:05 +01:00
Stefan Haller
dd61c49a15
Better error message for trying to squash or fixup the first commit
...
It's not so much the total number of commits that matters here, it's just
whether we are on the first one. (This includes the other condition.)
This allows us to get rid of the condition in rebase.go.
2023-02-20 07:40:04 +01:00
Stefan Haller
ac9515d8c7
Revert "fix: improve backward compatibility"
...
Since we now require git 2.20, we don't need this any more.
This reverts commit 7c5f33980f
.
2023-02-19 16:13:31 +01:00
Ryoga
72a92d748f
test: fix TagNamesAt
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
2023-02-19 23:35:38 +09:00
Ryooooooga
36c2b00336
test: add an integration test for creating tag on branches
2023-02-19 23:35:38 +09:00
Ryooooooga
67b08ac239
feat: support to create tag on branch
2023-02-19 23:31:46 +09:00
Stefan Haller
67b8ef449c
Edit by breaking after current commit
...
Instead of rebasing from the commit below the current one and then setting the
current one to "edit", we rebase from the current one and insert a "break" after
it. In most cases the behavior is exactly the same as before, except that the
new method also works if the current commit is a merge commit. This is useful if
you want to create a new commit at the very beginning of your branch (by editing
the last commit before your branch).
2023-02-19 10:21:01 +01:00
Stefan Haller
bb856ad7c6
Bump minimum required git version to 2.20
...
We need this because the next commit is going to make use of the "break"
interactive rebase instruction, which was added in 2.20.
2023-02-19 10:20:14 +01:00
Jesse Duffield
65bd0ab431
migrate undo test
2023-02-19 15:48:09 +11:00
Jesse Duffield
93b9e1bd19
migrate merge conflict undo test
2023-02-19 15:48:09 +11:00
Jesse Duffield
a51f64814c
show snapshot of lazygit when test fails for easier investigation
2023-02-19 15:48:09 +11:00
Jesse Duffield
b5e325b0a4
migrate revert merge test
2023-02-19 15:48:09 +11:00
Jesse Duffield
88c76868ba
migrate initial open test
2023-02-19 15:48:09 +11:00
Jesse Duffield
13ee0f0a5d
migrate open to branches with cli arg test
2023-02-19 15:48:09 +11:00
Jesse Duffield
76a1b501f2
migrate more force push tests
2023-02-19 15:48:09 +11:00
Jesse Duffield
7201a91b69
remove unneeded config setting
2023-02-19 13:51:37 +11:00
Jesse Duffield
31d796ee75
migrate forcePush integration test
2023-02-19 13:38:15 +11:00
Jesse Duffield
b0383ba73a
update readme
2023-02-19 12:42:48 +11:00
Jesse Duffield
a3096e720c
migrate pullAndSetUpstream test
2023-02-19 12:42:48 +11:00
Jesse Duffield
c599aaed51
migrate pull integration test
2023-02-19 11:48:21 +11:00
Jesse Duffield
f999bbce7c
add code generator for creating tests list
2023-02-19 11:48:09 +11:00
Jesse Duffield
bff076c70a
rename key to Pull
2023-02-19 11:42:00 +11:00
Stefan Haller
979c3d6278
Fix yellow/red coloring of pushed/unpushed commits in branch commits panel ( #2448 )
2023-02-19 10:13:46 +11:00
stk
4d39668743
Undo a change made in #2444 that we didn't end up needing
2023-02-18 09:53:31 +01:00
Jesse Duffield
c517d1e0a2
update view cursor when selecting new line in patch explorer view
2023-02-18 10:19:34 +11:00
stk
8cad8cda8f
Don't bother setting view cursor pos for staging/stagingSecondary views
...
Now that the cursor highlight is never shown (see previous commit), there's no
reason to update the cursor position any more.
2023-02-15 21:32:21 +01:00
stk
6b81e6adca
Turn highlighting off in staging/stagingSecondary views
...
There are two reasons for doing this:
1. The view cursor position is often out of sync with the selected line; see
first commit of this branch.
2. The highlighting is already turned off when the view loses focus, and never
turned back on thereafter. So just turn it off from the start then.
2023-02-15 21:29:38 +01:00
stk
b499eba1a8
Select next stageable line correctly after staging a range of lines
...
We already have this very convenient behavior of jumping to the next stageable
line after staging something. However, while this worked well for staging
single lines or hunks, it didn't work correctly when staging a range of lines;
in this case we want to start searching from the first line of the range.
2023-02-15 21:29:00 +01:00
stk
97daec7228
Add test demonstrating selection bug when staging a range of lines
...
The selected line is not in the right position after staging a range of lines;
see next commit.
2023-02-15 21:28:05 +01:00
stk
ff2a799200
Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views
...
While we try to keep the view's cursor position in sync with the context state's
selectedLineIdx (at least when pressing up or down), there are enough situations
where the two run out of sync; for example when initially opening the view, or
after staging a hunk, or when scrolling the view using the wheel. While it would
be possible to fix these situations to keep them always in sync, it doesn't seem
worth it, because the view's cursor position isn't really used for anything
else. So we rather special-case the SelectedLine/SelectedLineIdx functions of
ViewDriver to query the context state's selectedLineIdx directly if it is a
patch explorer context.
2023-02-15 21:22:11 +01:00
Jesse Duffield
31fcec16d9
Merge pull request #2429 from stefanhaller/do-not-autosquash-in-regular-rebase
2023-02-15 20:21:08 +11:00
Jesse Duffield
09178a1276
Merge pull request #2435 from Ryooooooga/return-alt1
2023-02-14 20:53:42 +11:00
Jesse Duffield
3cfdae4116
migrate submodule reset test
2023-02-12 18:12:01 +11:00
Jesse Duffield
d7956c481d
migrate submodule enter test
2023-02-12 18:12:01 +11:00
Jesse Duffield
7a3291a1f7
fix test
2023-02-12 18:12:01 +11:00
Jesse Duffield
08c2b46d04
better visibility for tui
2023-02-12 10:47:45 +11:00
Jesse Duffield
1c48842277
migrate submodule remove test
2023-02-12 10:47:45 +11:00
Jesse Duffield
010f6d7f6e
migrate submodule add test
2023-02-12 10:47:41 +11:00
Ryooooooga
39c20bc634
chore: change to work return-alt1
on all views
2023-02-11 21:19:47 +09:00
Jesse Duffield
823d95a8c6
Merge pull request #2418 from jesseduffield/feature/copy-remote-branch-to-clipboard
2023-02-11 10:53:31 +11:00
Jesse Duffield
225cd3cc60
Merge pull request #2412 from Ryooooooga/disable-help-on-suggestions
2023-02-11 10:52:49 +11:00
Ryooooooga
984eb95cb7
chore: remove UNKNOWN_VIEW_ERROR_MSG
2023-02-10 21:26:51 +09:00
stk
1da762c295
Explicitly pass --no-autosquash when rebasing
...
This fixes the problem shown in the previous commit.
2023-02-09 18:21:11 +01:00
stk
e357c00d4d
Add an integration test showing a problem with autosquash during normal rebase
...
For users who have the rebase.autoSquash git config set to true, any regular
rebase will squash fixups in addition to rebasing. Not good -- we'll fix that in
the next commit.
2023-02-09 17:35:20 +01:00
Ryooooooga
1be6c522d8
fix: disable menu key binding while displaying popup
2023-02-09 20:13:41 +09:00
Luka Markušić
8af59c3e6e
Copy remote branch name to clipboard
2023-02-09 11:56:12 +01:00
Jesse Duffield
c713d19383
Merge pull request #2417 from stefanhaller/make_integration_tests_more_robust
2023-02-09 21:55:30 +11:00
Jesse Duffield
4f7324bad0
Merge pull request #2413 from stefanhaller/allow-ignore-whitespace-everywhere
2023-02-09 21:55:12 +11:00
Jesse Duffield
5e2254395a
fix linting issue
2023-02-09 21:45:14 +11:00
stk
b243f30f48
Disable ~/.gitconfig when running integration tests
...
A global ~/.gitconfig file can have influence on how integration tests behave;
in my case, I had the option "merge.conflictStyle" set to "diff3", which made
the integration test "cherry_pick_conflict" fail because the diff was different
from what the test expected.
Make this more robust by telling git to ignore the global config file when
running tests.
2023-02-07 17:26:45 +01:00
stk
e57843d947
Add integration test for ignoring whitespace in diff
2023-02-07 13:33:10 +01:00
stk
5bb6198219
Allow ignoring whitespace in diff in commits panel
2023-02-07 12:14:29 +01:00
stk
bbaeab68e1
Better redrawing after toggling "ignore whitespace"
...
There's no need for refreshing anything; all that's needed is to re-focus the
selected list item. This way it will also work in other panels, which we are
about to add in the next commit.
2023-02-07 12:09:17 +01:00
stk
946c1dff99
Cleanup: remove extra space
2023-02-07 12:09:15 +01:00
stk
d838965a41
Make "Toggle whitespace in diff view" a global key binding
...
Since it is going to affect a number of views later in the branch, it's easier
to make it global than to find all views that are affected.
2023-02-07 09:25:38 +01:00
Jesse Duffield
469938ee9b
Merge pull request #2342 from knutwalker/override-git-sequence-editor-for-rebase
2023-02-05 13:52:35 +11:00
Ryooooooga
7bd0c779c7
fix: fix default
color to be white
2023-02-03 23:36:59 +09:00
Jesse Duffield
c0e805718d
Merge pull request #2358 from phanithinks/#2319_default_screen_mode
2023-02-01 21:52:09 +11:00
Phanindra kumar Paladi
35c5f940a4
Fixing indent in user_config.go
2023-02-01 09:50:37 +05:30
Jesse Duffield
368d6437b8
Merge pull request #2373 from phanithinks/clipboard_patch_option_2357
2023-01-31 17:02:46 +11:00
Phanindra Kumar Paladi
01f0efb997
Merge branch 'master' into #2319_default_screen_mode
2023-01-29 10:25:14 +05:30
Phanindra kumar Paladi
d0851113d1
Skipping copy_patch_to_clipboard test case
2023-01-29 10:20:56 +05:30
Phanindra kumar Paladi
df58c75ca4
Fixed breaking integrtion tests(old)
2023-01-29 10:03:59 +05:30
Jesse Duffield
d8c7d47067
Merge pull request #2395 from stefanhaller/trailing-lf-when-copying-diff-lines
2023-01-29 14:19:29 +11:00
Jesse Duffield
f79a8c281f
Merge pull request #2398 from Ryooooooga/fix-detached-head
...
fix https://github.com/jesseduffield/lazygit/issues/1467
2023-01-29 14:19:05 +11:00
Jesse Duffield
996a1e469f
Merge pull request #2401 from Ryooooooga/disable-log-order
2023-01-29 14:05:31 +11:00
Jesse Duffield
18db5eafd4
Merge pull request #2384 from stefanhaller/disable-reword-in-editor-prompt
2023-01-29 13:43:23 +11:00
Ryooooooga
2183c157d4
feat(log): allow to disable git.log.order
2023-01-28 21:17:05 +09:00
Ryooooooga
5dec080719
fix: fix RefName of detached HEAD to works in Chinese
2023-01-27 20:45:18 +09:00
stk
fc38e3b54d
Don't omit final line feed when copying diff lines to clipboard
2023-01-26 10:30:05 +01:00
stk
93d845cb01
Cleanup: remove unused function RenderPlain
2023-01-26 10:30:05 +01:00
stk
67fb28e2b8
Add user config gui.skipRewordInEditorWarning
2023-01-26 09:01:22 +01:00
Jesse Duffield
679b0456f3
Merge pull request #2388 from Ryooooooga/remove-unused-texts
2023-01-26 13:46:01 +11:00
Jesse Duffield
f7f24dbfc1
better test
2023-01-26 13:25:56 +11:00
Ryooooooga
069af50f50
chore(i18n): remove unused texts
2023-01-24 21:24:46 +09:00
Phanindra kumar Paladi
c6929c36ae
Corrected test assert
2023-01-23 15:53:21 +05:30
Phanindra kumar Paladi
e8f4508cba
Fixed integration test case
2023-01-23 15:48:43 +05:30
stk
b8d33b8f7b
Extract helper function doRewordEditor
...
No behavior change, just a preparation for the next commit.
2023-01-22 15:59:32 +01:00
Phanindra kumar Paladi
946b8b5670
Fixed the lable in the custom_patch_options_panel.go
2023-01-18 21:13:31 +05:30
Phanindra kumar Paladi
d479a41cad
Added Integration testing the copy to clipboard in patchbuilding
2023-01-18 21:05:40 +05:30
Ryooooooga
7149cfeb11
fix: fix ReplacePlaceholderString
2023-01-18 20:56:22 +09:00
Phanindra kumar Paladi
265cdde7bc
Fixed typo
2023-01-18 10:14:48 +05:30
Phanindra kumar Paladi
e87fc4a229
Change key of clipboard copy
2023-01-18 05:50:47 +05:30
Phanindra kumar Paladi
f6f82091bc
Added copy to clipboard option to the patch options
2023-01-17 09:07:07 +05:30
Phanindra kumar Paladi
a11e91e651
replaced 'screenMode' to 'windowSize' in config
2023-01-16 20:07:21 +05:30
Phanindra kumar Paladi
f4ccb68464
Added screenMode configuration to gui configuration
2023-01-11 16:51:46 +05:30
Ryooooooga
21f8857d36
refactor: simplify log format
2023-01-06 11:15:33 +09:00
Ryooooooga
965f7bfcb2
feat(config): change git.commit.verbose
to accept "default"
2023-01-06 11:15:33 +09:00
Ryooooooga
00b922604a
fix: fix goroutine leaks
2023-01-06 10:51:09 +09:00
Paul Horn
bc7873144e
Override GIT_SEQUENCE_EDITOR for rebase commands
...
I noticed that `$GIT_SEQUENCE_EDITOR` is overridden in `PrepareInteractiveRebaseCommand`
but not in `runSkipEditorCommand`.
Before this change, some commands such as `SquashAllAboveFixupCommits`
would not work when a different sequence editor, e.g.
[git-interactive-rebase-tool](https://github.com/MitMaro/git-interactive-rebase-tool )
is configured.
2023-01-01 04:37:19 +01:00
Jesse Duffield
1bb138c79c
Merge pull request #2341 from knutwalker/commit-verbose
2023-01-01 13:57:49 +11:00
Paul Horn
d98130c3ef
Add option to allow --verbose commit in editor commits
2023-01-01 02:01:04 +01:00
Ryooooooga
7c5f33980f
fix: improve backward compatibility
2022-12-31 22:47:21 +09:00
Jesse Duffield
5c42e1a5dc
defend against possible nil function
2022-12-30 22:49:08 +11:00
Jesse Duffield
6c3671f807
appease linter
2022-12-30 22:47:56 +11:00
Jesse Duffield
89ba3a38b4
migrate filter path tests
2022-12-30 22:42:32 +11:00
Jesse Duffield
6f709456fe
migrate test for rename branch and pull
2022-12-30 22:42:32 +11:00
Jesse Duffield
277ca706eb
migrate fetchPrune integration test
2022-12-30 22:42:32 +11:00
Jesse Duffield
8a1c763942
more git ignore stuff in integration test
2022-12-30 22:42:32 +11:00
Ryooooooga
e00f248cf7
feat: support for push --force-if-includes
2022-12-30 20:01:15 +09:00
Ryooooooga
cd9111837e
feat: add GitVersion
struct
2022-12-30 20:01:14 +09:00
Ryooooooga
41222f07ed
chore(gui): remove unused gitConfig
2022-12-30 20:01:14 +09:00
Jesse Duffield
1da0427e3a
appease linter
2022-12-30 12:18:59 +11:00
Jesse Duffield
af5b3be286
integrate snake game into lazygit
2022-12-30 12:18:59 +11:00
Jesse Duffield
81281a49b2
add snake game
2022-12-29 14:32:33 +11:00
Jesse Duffield
0300bfdec2
update readme
2022-12-28 15:35:12 +11:00
Jesse Duffield
f770a6246b
rename function
2022-12-28 14:19:56 +11:00
Jesse Duffield
5e9a897348
migrate ignore gitignore integration test
2022-12-28 13:35:07 +11:00
Jesse Duffield
f2d0f362d4
migrate discard staged changes test
2022-12-28 13:24:23 +11:00
Jesse Duffield
ae07cf5506
migrate discard old file change test
2022-12-28 13:01:32 +11:00
Jesse Duffield
f3fa9ec2d1
Merge pull request #2311 from wakaka6/add_return_alt1
2022-12-28 11:54:16 +11:00
Jesse Duffield
e661916ba6
Merge pull request #2331 from Ryooooooga/remove-unused-config
2022-12-28 11:43:08 +11:00
Jesse Duffield
14a974742f
rename from asserter to driver
2022-12-28 11:27:48 +11:00
Jesse Duffield
9fef4447b6
move popup assertions into a struct
2022-12-28 11:00:22 +11:00
Jesse Duffield
7aa843c75a
create actions struct
2022-12-28 10:54:38 +11:00
Jesse Duffield
a27092a7ad
remove broken test
2022-12-28 10:43:14 +11:00
Jesse Duffield
a3450dfdfc
fix suggestions test
2022-12-28 10:41:42 +11:00
Jesse Duffield
b4e9806352
fix test
2022-12-28 10:32:36 +11:00
Jesse Duffield
f495945b87
fix bug
2022-12-28 10:29:32 +11:00
Jesse Duffield
47de61b57c
update integration test readme
2022-12-28 10:23:59 +11:00
Jesse Duffield
06c878c051
minor changes
2022-12-28 10:23:54 +11:00
Jesse Duffield
ed93e0a2b0
remove dependency on model
2022-12-27 22:52:20 +11:00
Jesse Duffield
c5050ecabd
move shell into test driver
2022-12-27 21:47:37 +11:00
Jesse Duffield
78b495f50a
rename input to t
2022-12-27 21:35:36 +11:00
Jesse Duffield
53e06b71ae
add tap function
2022-12-27 21:26:18 +11:00
Jesse Duffield
b166b8f776
combine assert and input structs, clean up interface
2022-12-27 21:26:18 +11:00
Jesse Duffield
c5c9f5bb94
rename
2022-12-27 21:26:18 +11:00
Jesse Duffield
09e80e5f2a
better namespacing for assertions
2022-12-27 21:26:18 +11:00
Jesse Duffield
be30cbb375
add view asserter getter struct
2022-12-27 21:26:18 +11:00
Jesse Duffield
b64f55518b
refactor commit message stuff in integration tests
2022-12-27 21:26:18 +11:00
Jesse Duffield
926ed7b9b2
more refactoring of popup stuff
2022-12-27 21:26:18 +11:00
Jesse Duffield
8052ac4fd6
add prompt asserter
2022-12-27 21:26:18 +11:00
Jesse Duffield
c976839a63
refactor prompt handling in integration tests
2022-12-27 21:26:17 +11:00
Ryooooooga
ac127f017e
chore(config): remove unused config
2022-12-26 16:14:30 +09:00
Jesse Duffield
cd418ec929
Merge pull request #2330 from jesseduffield/yet-more-test-migrations
2022-12-26 17:59:30 +11:00
Jesse Duffield
8c89069965
update readme
2022-12-26 17:51:19 +11:00
Jesse Duffield
09db4c4397
allow checking if line is selected in Lines and TopLines methods
2022-12-26 17:45:10 +11:00
Jesse Duffield
96310288ee
allow chaining matchers
2022-12-26 17:15:33 +11:00
Jesse Duffield
c841ba8237
add switch-to-view methods
2022-12-26 16:49:54 +11:00
Jesse Duffield
9a6f21ce42
cleaner test assertions
2022-12-26 12:20:13 +11:00
Jesse Duffield
fa0414777f
rename SelectedLine to CurrentLine in tests
2022-12-26 10:42:19 +11:00
Jesse Duffield
5d2584a188
introduce ViewLines functions
2022-12-25 11:38:00 +11:00
Jesse Duffield
fb15a2f4f8
Merge pull request #2326 from Ryooooooga/fix-scroll
...
fix https://github.com/jesseduffield/lazygit/issues/2309
2022-12-24 19:20:23 +11:00
Jesse Duffield
b623ecf898
add helper functions for popups in tests
2022-12-24 19:15:59 +11:00
Jesse Duffield
aedfce2845
refactor to not have Match at the start of assert method names, because it reads better that way
2022-12-24 19:14:52 +11:00
Jesse Duffield
fa97b0c76e
move background code into its own file
2022-12-24 19:14:52 +11:00
Jesse Duffield
13639ac924
faster test
2022-12-24 19:05:46 +11:00
Jesse Duffield
5c11b1ecb7
discard changes integration test
2022-12-24 19:05:46 +11:00
Jesse Duffield
7c7f7bf9b9
migrate diffing integration tests
2022-12-21 22:52:23 +11:00
Jesse Duffield
57a1817deb
don't kill long-running sandbox sessions
2022-12-21 22:51:39 +11:00
wakaka6
b6c73b3620
Change null as the default return-alt1
2022-12-20 21:39:24 +08:00
Ryooooooga
7bdba1abe4
fix( #2309 ): fix diff scroll
2022-12-20 22:25:49 +09:00
Jesse Duffield
f910b42c9c
migrate confirm-on-quit integration test
2022-12-20 23:08:39 +11:00
Jesse Duffield
dde70486a1
apply user config changes in sandbox mode
2022-12-20 23:07:43 +11:00
Jesse Duffield
186b7197e4
clean up some integration test stuff
2022-12-20 22:54:00 +11:00
Jesse Duffield
e3c6738535
remove snapshot approach for new integration tests
2022-12-20 22:45:03 +11:00
Jesse Duffield
bc4ace8357
add commit revert integration test
2022-12-20 22:45:02 +11:00
Jesse Duffield
b40190bd94
add multi-line commit integration test
2022-12-20 22:45:02 +11:00
Jesse Duffield
5679efe174
Merge pull request #2239 from bdach/u2f-key-prompts
...
close https://github.com/jesseduffield/lazygit/issues/2230
2022-12-20 21:44:29 +11:00
Jesse Duffield
b13cfdfea0
migrate branch reset integration test
2022-12-19 22:38:32 +11:00
navazjm
3a1921cab0
updated rebase confirmation message
2022-12-16 17:36:37 -06:00
wakaka6
6386a03805
add return alt1
2022-12-11 15:44:25 +08:00
Arnaud PERALTA
50b0d85cd3
integration tests for commit without pre-commit hooks in staging files menu
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
bfcbf228bf
commit integrations test with window name's assertion
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
87e0f6b92d
integration tests for commit in staged files and unstaged files menus
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
0af63daf18
workingtree controller fixed with new references for commit in staged menu
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
8b894d7bf5
wip: commit logic in helper and reported in files/staging controllers
2022-12-01 09:12:18 +11:00
Jesse Duffield
65d6d7fb2d
fix ignore file keybinding
2022-11-30 19:36:35 +11:00
Bartłomiej Dach
1a1f042f49
Add credential prompts for U2F-backed SSH keys
...
The 8.2 release of OpenSSH added support for FIDO/U2F hardware
authenticators, which manifests in being able to create new types of SSH
key, named `ecdsa-sk` nad `ed25519-sk`. This is relevant to lazygit,
as those SSH keys can be used to authorise git operations over SSH, as
well as signing git commits. Actual code changes are required for
correct support, as the authentication process for these types of keys
is different than the process for types supported previously.
When an operation requiring credentials is initialised with a U2F
authenticator-backed key, the first prompt is:
Enter PIN for ${key_type} key ${path_to_key}:
at which point the user is supposed to enter a numeric (and secret) PIN,
specific to the particular FIDO/U2F authenticator using which the SSH
keypair was generated. Upon entering the correct key, the user is
supposed to physically interact with the authenticator to confirm
presence. Sometimes this is accompanied by the following text prompt:
Confirm user presence for key ${key_type} ${key_fingerprint}
This second prompt does not always occur and it is presumed that the
user will know to perform this step even if not prompted specifically.
At this stage some authenticator devices may also begin to blink a LED
to indicate that they're waiting for input.
To facilitate lazygit's interoperability with these types of keys, add
support for the first PIN prompt, which allows "fetch", "pull", and
"push" git operations to complete.
2022-11-30 13:34:32 +11:00
Jesse Duffield
f96246c038
Merge pull request #2284 from arnaudperalta/defaultfgcolor-config
...
Closes https://github.com/jesseduffield/lazygit/issues/2279
2022-11-26 13:41:41 +11:00
Luka Markušić
b3d086bdc1
Resolve the prompt just before using it
...
In case a later command depends on a prompt input from a previous one we
need to evaluate it only after the previous prompt has been confirmed.
2022-11-25 22:46:36 +01:00
Nils Andresen
245563bc99
( #2288 ) quote remoteName before compiling regex
...
If the remote name contains special regex-chars,
the compilation of the regex might fail.
Quoting the remoteName ensures that all special chars
in the remoteName are properly escaped before compiling
the regex.
2022-11-24 12:56:28 +00:00
Arnaud PERALTA
37997dcbcd
[ #2279 ] defaultFgColor entry in theme config
2022-11-21 21:48:18 +01:00
Jesse Duffield
de22238589
Merge pull request #2224 from Ryooooooga/ambiguous-branch
2022-11-14 19:09:37 +11:00
Ryooooooga
52a2e4c1dc
fix: fix ambiguous branch name
...
test: add an integration test for checkout branch by name
fix: fix full ref name of detached head
refactor: refactor current branch loader
chore: use field name explicitly
2022-11-14 19:05:07 +11:00
Jesse Duffield
e953659ebf
Merge pull request #2273 from artvi/fix/show_loading_state_when_bottomline_disabled
2022-11-14 19:01:26 +11:00
Jesse Duffield
b33ec5a050
Merge pull request #1980 from ajhynes7/stash-untracked-changes
2022-11-14 18:46:53 +11:00
sudoburt
3e73dacce3
Merge loaders package into git_commands package
2022-11-14 18:11:45 +11:00
Andrew Hynes
684d1e955e
lint: try deleting blank line
2022-11-13 19:51:30 -03:30
Jesse Duffield
f67824b349
Merge pull request #2265 from nitinmewar/gitVersion
2022-11-14 10:00:58 +11:00
Art V
c53752a5f9
[ #2258 ] hide options panel when showBottom line is disabled
2022-11-14 01:04:56 +03:00
Art V
dc163bfc4d
[ #2258 ] show bottom line when having status
2022-11-14 00:53:55 +03:00
Andrew Hynes
3c436b3457
lint: delete unused argument from handleStashSave
2022-11-13 11:02:06 -03:30
nitin mewar
526d02de1c
added gitVersion for version flag
...
Signed-off-by: nitin mewar <nitinmewar28@gmail.com>
2022-11-13 19:27:12 +05:30
Jesse Duffield
a905a28e41
better hiding of underscores
2022-11-13 14:46:13 +11:00
Jesse Duffield
5964472ec1
hide underscores more
2022-11-13 14:41:43 +11:00
Jesse Duffield
d26350502c
stop switching focus to commits view when resetting
2022-11-13 03:26:50 +00:00
Jesse Duffield
df3cd941d7
use tempdir in tests to prevent polluting worktree
2022-11-13 14:10:21 +11:00
Jesse Duffield
863a65cf94
disable underscores in vscode while we wait for underscore glitch to be fixed
2022-11-13 13:41:49 +11:00
Jesse Duffield
fbac05fff7
Update README.md
2022-11-13 11:54:37 +11:00
Andrew Hynes
9e91aa8b43
fix: delete duplicate import
2022-11-12 18:11:34 -03:30
Andrew Hynes
7977c2deb5
fix: delete duplicate line
2022-11-12 18:10:34 -03:30
Andrew Hynes
d7fb441a3c
refactor: sort list of integration tests
2022-11-12 18:09:55 -03:30
Jesse Duffield
91f83c6be7
use better colour defaults
2022-11-12 18:09:16 -03:30
Jesse Duffield
f98b2edae5
fix broken CI (see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html )
...
try this
WIP
2022-11-12 18:09:15 -03:30
Jesse Duffield
97ced9e14f
fix could-not-access error
2022-11-12 18:09:15 -03:30
Andrew Hynes
66a253916e
test: add more assertions
2022-11-12 18:09:15 -03:30
nitin mewar
188890fc49
added gitVersion to version flag
...
Signed-off-by: nitin mewar <nitinmewar28@gmail.com>
2022-11-12 16:00:24 +05:30
Jesse Duffield
1ac3ae1ad1
use better colour defaults
2022-11-12 14:59:15 +11:00
Jesse Duffield
52316e628e
fix broken CI (see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html )
...
try this
WIP
2022-11-12 10:53:12 +11:00
Jesse Duffield
e8b97c9fe2
fix could-not-access error
2022-11-11 12:30:14 +11:00
Andrew Hynes
a47e72892a
Merge branch 'master' into stash-untracked-changes
2022-11-01 16:08:34 -02:30
Ryooooooga
14ec0cd92e
feat: allow null
in keybindings
2022-10-18 22:20:03 +09:00
Ryooooooga
2ec0b671e6
test: update stash/rename integration test
2022-10-16 16:26:17 +09:00
Ryooooooga
3103398e31
chore: refactor rename stash
2022-10-16 09:30:04 +09:00
Ryooooooga
e78e829e3a
test: add an integration test for rename stash
2022-10-16 09:30:03 +09:00
Ryooooooga
eceb3a5aa6
chore: refactor rename stash
2022-10-16 09:12:43 +09:00
Ryoga
8a9eefa4d2
chore: remove unnecessary space
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
2022-10-16 09:12:43 +09:00
Ryooooooga
11316b7a48
feat: add rename stash
2022-10-16 09:12:42 +09:00
Jesse Duffield
8f3ccd07db
Merge pull request #2223 from gusandrioli/use-lazycore-to-get-dir
2022-10-15 10:05:03 -07:00
Gustavo Andrioli
39e84e13f4
Use lazycore utils: Clamp and GetLazyRootDirectory
2022-10-15 13:55:44 -03:00
Ryooooooga
0c3eab4059
fix: fix initial origin of commit message panel
2022-10-15 20:09:23 +09:00
Ryooooooga
d90fedfbf8
feat: add stash icon
2022-10-14 21:58:58 +09:00
Ryooooooga
a4239c7a37
fix: fix stash with empty message
2022-10-13 22:23:56 +09:00
Jesse Duffield
fc0b14edef
Update README.md
2022-10-11 08:40:35 -07:00
Jesse Duffield
dba0edb998
use boxlayout from lazycore
2022-10-09 08:31:14 -07:00
Andrew Hynes
8c46a0110d
Merge branch 'master' into stash-untracked-changes
2022-10-06 22:59:06 -02:30
Andrew Hynes
a30d924afe
test: add test for stash including untracked files
2022-10-06 22:53:13 -02:30
Andrew Hynes
f4c188fa5b
fix(test): add stash name
2022-10-06 22:42:49 -02:30
Ryooooooga
e436922eb6
feat(editors.go): move by words
2022-10-05 22:29:55 +09:00
Jesse Duffield
e3f21f0588
strip NUL bytes instead of replacing with space
2022-10-03 09:29:41 -07:00
Jesse Duffield
ed98b60078
use thread safe map
2022-10-02 20:57:44 -07:00
Jesse Duffield
e76fa5a6cb
fix glitchy render of stale data when flicking through files and directories
2022-10-02 20:41:24 -07:00
Jesse Duffield
8858f03606
adjust test temporarily to unblock master
2022-10-02 20:34:14 -07:00
Jesse Duffield
c953871ec7
use lowercase 'quote' for consistency with existing custom command template functions
2022-10-02 18:43:25 -07:00
Ryooooooga
e16f1ba84f
test: add integration test for Quote
2022-10-01 20:55:49 +09:00
Ryooooooga
19df238b77
feat: allow OSCommand.Quote
to be invoked within a custom command
2022-09-30 21:16:45 +09:00
Jesse Duffield
23d39c79b2
update test
2022-09-24 23:37:17 +02:00
Luka Markušić
0141bbde0e
Add test for amending a merge commit
2022-09-24 23:37:17 +02:00
Luka Markušić
4c7d363959
Add CheckoutBranch and Merge helpers for integration tests
2022-09-24 23:37:17 +02:00
Luka Markušić
41f86f6535
Rebase merges by default
2022-09-24 23:37:17 +02:00
Jesse Duffield
90feb4bae6
Merge pull request #1636 from kawaemon/partially-fix-1629
2022-09-24 10:15:23 -07:00
Jesse Duffield
1d40bd1707
Merge pull request #2104 from LiamKearn/feat-emacs-char-nav
2022-09-24 10:08:13 -07:00
kawaemon
17df42e517
fix: scan to buffer to empty character input in stdin
2022-09-23 23:42:45 -07:00
Jesse Duffield
fd66499c8f
Merge pull request #2167 from xiaoliwang/remove_deprecated
2022-09-23 23:01:40 -07:00
Ryooooooga
212e19f598
feat: add support for emacs keybindings
2022-09-24 00:00:30 +09:00
Ryooooooga
438038a4f1
fix(loaders/file.go): changed to ignore stderr when loading git status
2022-09-19 18:46:32 +09:00
Jesse Duffield
f23547580a
Merge pull request #2092 from mark2185/fix-wrong-git-path
2022-09-17 15:12:04 -07:00
TomCao New Macbook Pro
3d79c6a3d3
formatter
2022-09-17 15:10:41 -07:00
jiepeng
bc8050d8ac
typo
2022-09-17 15:10:41 -07:00
jiepeng
b8900baf1a
remove deprecated calls
2022-09-17 15:10:41 -07:00
Mihai22125
7e9dffe1b9
Add Key field to CustomCommandPrompt struct
...
Add Form field to CustomCommandObjects struct
Write user prompts responses to Form field
Ensure that map keys exists
Add form prompts integration test
Remove redundant index
2022-09-17 14:58:44 -07:00
Jesse Duffield
a92f0f7c89
increase recording leeway
2022-09-17 10:50:04 -07:00
Jesse Duffield
6dca3e1766
allow two attempts on CI
2022-09-16 22:31:46 -07:00
Jesse Duffield
850a82784a
earlier failure
2022-09-16 22:22:20 -07:00
Jesse Duffield
74acb3e86a
add integration tests for cherry picking
2022-09-16 22:15:16 -07:00