Jesse Duffield
76ed204795
Add convenience builder for git commands
...
Adds a convenience builder for git commands. Applies it in a couple of places that benefit from it.
I've got a larger PR that does a more sweeping change but I want some reviews on that before I go ahead with it.
2023-05-20 16:12:34 +10:00
README-bot
b07c4fc001
Updated README.md
2023-05-20 03:01:38 +00:00
Jesse Duffield
2304ffc804
Merge pull request #2641 from stefanhaller/visualize-ignore-whitespace-config
2023-05-20 13:01:22 +10:00
Stefan Haller
401610c0ef
Remove the toast when toggling "ignore whitespace"
...
Now that we visualize the state, the toast is no longer needed.
2023-05-20 12:58:32 +10:00
Stefan Haller
64b2685c2d
Visualize the "ignore whitespace" state in the subtitle of the diff view
2023-05-20 12:58:32 +10:00
Stefan Haller
7d4bfb6621
Don't toggle "ignore whitespace" in the staging and patch building panels
...
The option doesn't have any affect in these views, so we don't need to toggle it
here. But the problem was the HandleFocus call at the end: this would activate
the wrong view, so we need to avoid it here.
Show an error if the user tries to turn the option on, to let them know that it
doesn't work here.
2023-05-20 12:58:32 +10:00
Stefan Haller
a2778f01c6
Disregard the "ignore whitespace" option in the patch building panel
...
It's not possible to reliably stage things into a custom patch when "ignore
whitespace" is on, so always treat it as off here (like we do in the staging
panel).
It looks like this is a regression that was introduced in 8edad826ca .
2023-05-19 18:22:28 +02:00
Jesse Duffield
d161afe37f
Support ignoring whitespace on stash
2023-05-19 17:49:22 +02:00
README-bot
3dd96a8010
Updated README.md
2023-05-17 07:12:19 +00: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
Lukas
0606b7a43b
remove empty message check as message of commit can be empty
2023-05-17 17:07:50 +10:00
Stefan Haller
33da56eeb4
Merge pull request #2619 from stefanhaller/config-for-base-branches
...
Add config for main branches
2023-05-16 13:23:56 +02:00
Stefan Haller
46b93bba0e
Add config git.mainBranches
...
It defaults to {"master", "main"}, but can be set to whatever branch names
are used as base branches, e.g. {"master", "devel", "v1.0-hotfixes"}. It is
used for color-coding the shas in the commit list, i.e. to decide whether
commits are green or yellow.
2023-05-16 13:20:03 +02:00
README-bot
d2d50aedd0
Updated README.md
2023-05-16 11:13:36 +00: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
Stefan Haller
9514284f8e
Merge pull request #2608 from stefanhaller/allow-selected-line-outside-view
...
Allow the selected line of a list view to be outside the visible area
2023-05-13 12:29:17 +02:00
README-bot
ece14844bb
Updated README.md
2023-05-13 02:33:48 +00:00
Jesse Duffield
9910a7c308
Merge pull request #2628 from stefanhaller/make-merged-take-precedence-over-unpushed
2023-05-13 12:33:34 +10:00
Stefan Haller
910a61dc46
Make "merged" take precedence over "unpushed"
...
Previously, when rebasing a branch onto a newer master, all commits from the
previous fork point up to its head were marked red (unpushed), including the
commits that are on master already. While this is technically correct from the
perspective of the current branch's upstream, it's not what most people expect,
intuitively; they want to see where the current branch starts, relative to
master. So all commits of master should be green, and then the commits of the
current branch in red.
2023-05-12 22:56:58 +02:00
Stefan Haller
e5dd4d3110
Allow the selected line of a list view to be outside the visible area
...
I don't see a reason why this restriction to have the selection be always
visible was necessary. Removing it has two benefits:
1. Scrolling a list view doesn't change the selection. A common scenario: you
look at one of the commits of your current branch; you want to see the how
many'th commit this is, but the beginning of the branch is scrolled off the
bottom of the commits panel. You scroll down to find the beginning of your
branch, but this changes the selection and shows a different commit now - not
what you want.
2. It is possible to scroll a panel that is not the current one without changing
the focus to it. That's how windows in other GUIs usually behave.
2023-05-11 13:23:58 +02:00
Stefan Haller
595c7ee73e
Extend one of the filtering tests to start on a commit other than the first
...
Enabling the filter selects the first entry in the filtered commits view. It's
useful to have a test that checks this, as I almost broke it in the following
commit (it needs an added FocusLine call in the setFiltering function in
filtering_menu_action.go).
2023-05-11 13:23:58 +02:00
README-bot
051af6a066
Updated README.md
2023-05-11 09:09:15 +00: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
Christian Rackerseder
1636931c2b
Include "kakoune" in supported edit presets
2023-05-04 08:28:58 +02:00
Christian Rackerseder
6e027f42da
Include "nvim" in supported edit presets
2023-05-03 13:30:51 +02: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
Stefan Haller
d607b366cb
Add own version for test move_to_earlier_commit for older git versions
2023-05-02 16:27:32 +02:00
Stefan Haller
c8f26aca68
Rename From to AtLeast
2023-05-02 16:27:32 +02:00
Ryooooooga
30656b5ac6
chore(git_commands): support old git version (git rebase --empty=keep)
2023-05-02 16:27:32 +02:00
Jesse Duffield
5dacbb6293
merge master into refactor-better-encapsulation
2023-05-02 19:05:42 +10:00
README-bot
88d4313970
Updated README.md
2023-05-02 08:59:25 +00:00
Jesse Duffield
4160fa518c
Merge pull request #2582 from stefanhaller/config-for-showing-branch-heads
2023-05-02 18:59:12 +10:00
Stefan Haller
fba1a2b5ac
Add config gui.experimentalShowBranchHeads
...
People find the new (*) display for branch heads in the commits list confusing,
so make it opt-in for now.
2023-05-02 18:58:54 +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
Sean
9d68b287db
Split commit message panel into commit summary and commit description panel
...
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting.
By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel,
and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message
from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel
and then 'enter' to submit the message.
We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept,
so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30 13:19:53 +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
README-bot
3ec416047f
Updated README.md
2023-04-30 02:22:54 +00: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
Sean
49da7b482d
Split commit message panel into commit summary and commit description panel
...
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting.
By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel,
and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message
from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel
and then 'enter' to submit the message.
We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept,
so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30 12:17:34 +10:00
Stefan Haller
d675117289
Fix activation of initial context
...
This broke with 40f6767cfc77; the symptom is that starting lazygit with a git
arg (e.g. "lazygit log") wouldn't activate the requested panel correctly. While
it would show in the expanded view, it didn't have a green frame, and keyboard
events would go to the files panel.
2023-04-29 07:37:44 +02:00
Jesse Duffield
e63858215e
refactor moveFixupCommitDown
2023-04-29 07:28:33 +02:00
Stefan Haller
3fe4db9316
Make RebaseCommands.AmendTo more robust
...
This fixes two problems with the "amend commit with staged changes" command:
1. Amending to a fixup commit didn't work (this would create a commmit with the
title "fixup! fixup! original title" and keep that at the top of the branch)
2. Unrelated fixup commits would be squashed too.
The added integration test verifies that both of these problems are fixed.
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
Stefan Haller
a8586ba57e
Refactor: simplify PrepareInteractiveRebaseCommand API
...
Instead of passing a bunch of different options in
PrepareInteractiveRebaseCommandOpts, where it was unclear how they interact if
several are set, have only a single field "instruction" which can be set to one
of various different instructions.
The functionality of replacing the entire todo file with our own is no longer
available; it is only possible to prepend todos to the existing file.
Also, instead of using different env vars for the various rebase operations that
we want to tell the daemon to do, use a single one that contains a json-encoded
struct with all available instructions. This makes the protocol much clearer,
and makes it easier to extend in the future.
2023-04-29 07:28:33 +02:00
Stefan Haller
dad7a70bf8
Implement moving commits up/down in terms of daemon
2023-04-29 07:28:33 +02:00
Stefan Haller
3791f0b2fa
Implement "move patch to selected commit" in terms of daemon
2023-04-29 07:28:33 +02:00
Stefan Haller
b8fbe9756e
Implement squash, fixup, drop, and reword in terms of daemon
2023-04-29 07:28:33 +02:00
Stefan Haller
ab25600ccb
Extract EditRebaseTodo into a function in utils.rebaseTodo
...
We want to reuse it from the daemon code in the next commit.
2023-04-29 07:28:33 +02:00
Stefan Haller
d50c58b4c6
Implement "edit commit" in terms of the new EditRebase function
2023-04-29 07:28:33 +02:00
Stefan Haller
5645a662de
Use --rebase-merges for interactive rebase
...
At the moment it doesn't make a big difference, because the vast majority of
callers create a list of todos themselves to completely replace what git came up
with. We're changing this in the following commits though, and then it's helpful
to preserve merges.
2023-04-29 07:28:33 +02:00
Stefan Haller
a41218551d
Put gitCommon.version back in deps_test.go
...
This was reverted in 3546ab8f21 , but shouldn't have.
2023-04-29 07:28:33 +02:00
Stefan Haller
d210107caa
Bump github.com/fsmiamoto/git-todo-parser to latest version
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
README-bot
32556480da
Updated README.md
2023-04-29 02:39:27 +00:00
Jesse Duffield
2553015029
Merge pull request #2577 from jbrains/add-editor-preset-for-kakoune
2023-04-29 12:39:10 +10:00
J. B. Rainsberger
6c010a788c
Add an editor preset for kakoune (kakoune.org).
2023-04-27 13:41:54 -03: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
README-bot
28d2b1432b
Updated README.md
2023-04-24 03:37:27 +00:00
Jesse Duffield
ed98e11fa0
Merge pull request #2555 from Ryooooooga/revert-force-if-includes
2023-04-24 13:37:14 +10:00
Andre Mueller
07a22e69e7
bump clipboard package for WSL support
2023-04-24 13:33:27 +10:00
Noah Gao
bf3dd79b7a
feat: add gitea to hosting service
2023-04-18 16:16:09 +00:00
Stefan Haller
21072226d2
Don't allow resetting non-HEAD commits (including rebase todos) during rebase
2023-04-18 17:34:07 +02:00
Stefan Haller
b09000194a
Allow resetting author of HEAD commit during rebase
2023-04-18 17:33:33 +02:00
Ryooooooga
3546ab8f21
Revert "feat: support for push --force-if-includes"
...
This reverts commit e00f248cf7 .
2023-04-17 19:37:33 +09:00
Personal
9a13447b97
Change push tag command
...
Signed-off-by: AKARSHITJOSHI <akarshitjoshi@gmail.com >
2023-04-16 10:37:11 +05:30
Jesse Duffield
1efb565b22
Merge pull request #2370 from AzraelSec/rebase-with-todo-edit
2023-04-15 19:17:06 +10:00
AzraelSec
08a445eb9d
test: check focus on commits after performing an advanced rebase
2023-04-15 11:01:55 +02:00
AzraelSec
28501fbf77
chore: add focus on local commits after interactively rebase
2023-04-15 10:42:36 +02: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
AzraelSec
b82b6a2992
test: add integration test to verify the interactive rebase correctly work
2023-04-15 17:26:08 +10:00
AzraelSec
ddcd6be245
refactor: introduce a struct to pack the
...
`PrepareInteractiveRebaseCommand` function
2023-04-15 17:26:08 +10:00
Jesse Duffield
711be78811
extract out function
2023-04-15 17:26:08 +10:00
AzraelSec
3422b1e218
test: update the UI to follow the new rebase type selection instead of confirm the previous popup
2023-04-15 17:26:08 +10:00
AzraelSec
a3fdf91714
feat: allow to perform a rebase with breaking before the first commit
2023-04-15 17:26:08 +10:00
AzraelSec
368f9c8cb3
feat: let interactive rebase prepend commands to the default todo file
2023-04-15 17:26:08 +10:00
README-bot
e18b4a4cc3
Updated README.md
2023-04-15 07:16:26 +00:00
Jesse Duffield
46718e25ca
Merge pull request #2547 from stefanhaller/more-robust-todo-rewriting
2023-04-15 17:16:11 +10:00
Stefan Haller
d675eb6507
Don't allow changing the type of certain rebase todos
...
We already show "merge" todo entries when starting an interactive rebase with
--rebase-merges outside of lazygit. Changing the type of a merge entry to "pick"
or "edit" doesn't make sense and shouldn't be allowed. Earlier in this branch we
have started to show "update-ref" entries, these can't be changed either (they
can be moved, though).
You might argue that it should be possible to change them to "drop", but in the
case of "update-ref" this doesn't make sense either, because "drop" needs a Sha
and we don't have one here. Also, you would then be able to later change it back
to "pick", so we would have to remember that this isn't allowed for this
particular drop entry; that's messy, so just disallow all editing.
2023-04-15 08:36:03 +02:00
Stefan Haller
dc4e88f8a4
Make moving todo commits more robust
2023-04-15 08:36:03 +02:00
Stefan Haller
120dd1530a
Make EditRebaseTodo more robust
...
It used to work on the assumption that rebasing commits in lazygit's model
correspond one-to-one to lines in the git-rebase-todo file, which isn't
necessarily true (e.g. when users use "git rebase --edit-todo" at the custom
command prompt and add a "break" between lines).
2023-04-15 08:36:03 +02:00
Stefan Haller
860a8d102b
Add integration test for dropping a todo commit when there's an update-ref
...
The test shows how we are accidentally dropping the wrong commit in this case.
We'll fix that in the next commit.
2023-04-15 08:36:03 +02:00
Stefan Haller
a304fed68c
Add GitVersion field to NewIntegrationTestArgs
...
It can be used to specify which git versions a given test should or should not run on.
2023-04-15 08:36:03 +02:00
Stefan Haller
227b0b781c
Show update-ref commands in rebase todo list
...
This is useful when working with stacked branches, because you can now move
"pick" entries across an update-ref command and you can tell exactly which
branch the commit will end up in.
It's also useful to spot situations where the --update-refs option didn't work
as desired. For example, if you duplicate a branch and want to rebase only one
of the branches but not the other (maybe for testing); if you have
rebase.updateRefs=true in your git config, then rebasing one branch will move
the other branch along. To solve this we'll have to introduce a way to delete
the update-ref entry (maybe by hitting backspace?); this is out of scope for
this PR, so for now users will have to type "git rebase --edit-todo" into the
custom command prompt to sort this out.
We will also have to prevent users from trying to turn update-ref commands into
other commands like "pick" or "drop"; we'll do this later in this branch.
2023-04-15 08:36:03 +02:00
Stefan Haller
740474c10c
Visualize branch heads in commits panel
...
Useful when working with stacked branches.
2023-04-15 08:36:03 +02:00
Stefan Haller
a0d179b6dc
Make getHydratedRebasingCommits more robust
...
So far the algorithm worked on the assumption that the output of the "git show"
command corresponds one-to-one to the lines of the rebase-todo file. This
assumption doesn't hold once we start to include todo lines that don't have a
sha (like update-ref), or when the todo file contains multiple entries for the
same sha. This should never happen normally, but it can if users manually edit
the todo file and duplicate a line.
2023-04-15 08:36:03 +02:00
Stefan Haller
c53c5e47ef
Store commit.Action as an enum instead of a string
...
The main reason for doing this (besides the reasons given for Status in the
previous commit) is that it allows us to easily convert from TodoCommand to
Action and back. This will be needed later in the branch. Fortunately,
TodoCommand is one-based, so this allows us to add an ActionNone constant with
the value 0.
2023-04-15 08:36:03 +02:00
Stefan Haller
188773511e
Store commit.Status as an enum instead of a string
...
This is unrelated to the changes in this PR, but since we are doing the same
thing for the commit.Action field in the next commit, it makes sense to do it
for Status too for consistency. Modelling this as an enum feels more natural
than modelling it as a string, since there's a finite set of possible values.
And it saves a little bit of memory (not very much, since none of the strings
were heap-allocated, but still).
2023-04-15 08:36:03 +02:00
Stefan Haller
62c5c32fbb
Bump github.com/fsmiamoto/git-todo-parser to latest main version
2023-04-15 08:36:03 +02: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
Stefan Haller
6a340ec840
Reorder tests
2023-04-13 19:17:08 +02:00
Stefan Haller
3535cd0f94
Rename test files to match test names
2023-04-13 19:17:08 +02:00
Stefan Haller
b1a56249f5
Add CI job to check that the test list is up to date
2023-04-13 19:17:08 +02: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
Luka Markušić
2b4ac986a2
Don't add custom command to history if it starts with space
...
Add tests for custom command with leading space
2023-04-13 21:20:46 +10:00
Jesse Duffield
caedf57484
Merge pull request #2539 from axieax/ssh-git-url-parsing-fix
2023-04-13 21:15:58 +10:00
Stefan Haller
046b0d9daa
Show warning about deprecated edit configs
...
We print this to the terminal after lazygit quits rather than showing it in a
panel at startup, so as to not annoy people too much. Hopefully it will still be
prominent enough this way.
2023-04-13 13:14:00 +02:00
Stefan Haller
e3c5e07b20
Update documentation
2023-04-13 13:14:00 +02:00
Stefan Haller
e4e16fa38e
Change OpenCommand to Open and OpenLinkCommand to OpenLink
...
We do this for consistency with the edit settings. The old names are kept as a
fallback for now.
2023-04-13 13:14:00 +02:00
Stefan Haller
b7e029adc7
Don't set platform defaults on OSConfig struct immediately
...
Instead, query the platform defaults only if the config is empty. This will be
necessary later to distinguish an empty config from a default config, so that we
can give deprecation warnings.
2023-04-13 13:14:00 +02:00
Stefan Haller
08d679c3a8
Remove line number support for "open" command
...
The "open" command is supposed to behave in the same way as double-clicking a
file in the Finder/Explorer. The concept of jumping to a specific line in the
file doesn't make sense for this; use "edit" instead.
2023-04-13 13:14:00 +02:00
Stefan Haller
2947b56134
Add support for falling back to legacy edit config
2023-04-13 13:14:00 +02:00
Stefan Haller
659d668e16
Implement edit presets
2023-04-13 13:14:00 +02:00
Stefan Haller
7bbcec965b
Cleanup: fix copy/paste error in comment
2023-04-13 13:14:00 +02:00
Stefan Haller
24de156592
Fix windows tests
...
Now that the tests run again, it turns out that they actually fail, so fix them.
2023-04-13 13:14:00 +02:00
Stefan Haller
8d3cce4a49
Rename test files so that test discovery works again
...
These files were renamed from os_windows_test.go to os_test_windows.go (etc.) in
95b2e9540a . Since then, the tests have no longer run, since go only looks for
tests in files ending with "test.go".
It isn't important that the file name ends with "_windows.go", since there are
already build constrains in the files themselves.
2023-04-13 13:14:00 +02:00
README-bot
95757ceb3b
Updated README.md
2023-04-13 11:05:22 +00:00
Jesse Duffield
2087a02f01
Merge pull request #2541 from stefanhaller/fix-debugger-config
2023-04-13 21:05:02 +10:00
Scott Callaway
6ffe98abac
feat: remove --no-renames flag from main panel diffs (to show renamed files)
2023-04-13 10:57:38 +01:00
Scott Callaway
046cb942c2
fix: organise commit test file
...
Pulled this out into a separate commit since it was unrelated to the
feature coming behind it.
This just cleans up the `commit_test.go` file slightly (for the method
that I was working on) so that the tests are built in a way that is
slightly more readable - testing each configuration option individually
without combining any of them.
2023-04-12 12:31:06 +01:00
Stefan Haller
fc2f8b7b20
Make debugger config work when changing repos while debugging
...
When changing repos while debugging, the current working directory changes,
which means that a daemon lazygit doesn't find the debugger_config.yml file any
more when you do an interactive rebase. Fix this by using an absolute path for
the --use-config-file option.
2023-04-04 10:26:42 +02:00
Andrew
298dae23e8
fix: generalize parsing of ssh git urls
2023-04-03 12:10:30 +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
README-bot
e0503b9922
Updated README.md
2023-04-02 00:26:39 +00:00
Jesse Duffield
ef239c04fb
Merge pull request #2485 from stefanhaller/interactive-rebase-improvements
2023-04-02 10:26:19 +10:00
Stefan Haller
d508badd62
Better error message when trying to amend a commit other than head during rebase
2023-04-01 08:16:15 +02:00
Luka Markušić
e7d0116312
Allow amending the head commit during interactive rebase
2023-04-01 08:16:15 +02:00
Stefan Haller
85fdb700ba
Extract amendHead function into new AmendHelper
2023-04-01 08:16:15 +02:00
Stefan Haller
7513d77567
Add integration test for amending from the files panel
2023-04-01 08:16:15 +02:00
Stefan Haller
c757063264
Better error message when trying to edit or move a non-todo commit during rebase
...
Previously we would have tried to do the rebase, resulting in a long and
somewhat cryptic error message from git; now we check ourselves and show a less
intimidating message.
2023-04-01 08:16:15 +02:00
Stefan Haller
b24955063c
Allow rewording the head commit during interactive rebase
2023-04-01 08:16:15 +02:00
Stefan Haller
605bc026a1
Set promptToReturnFromSubprocess to false for integration tests
...
There is no way how we could confirm the prompt in an integration test.
2023-04-01 08:16:15 +02:00
Stefan Haller
c6930e0538
Cleanup: use commit.isTODO() consistently
...
It seems cleaner than checking the Status for "rebasing".
2023-04-01 08:16:15 +02: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
README-bot
11bc8b87fa
Updated README.md
2023-03-24 07:55:25 +00: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
Stefan Haller
4adca84d68
Make sure scrollbars have the right size initially
...
We refresh the view after reading just enough to fill it, so that we see the
initial content as quickly as possible, but then we continue reading enough
lines so that we can tell how long the scrollbar needs to be, and then we
refresh again. This can result in slight flicker of the scrollbar when it is
first drawn with a bigger size and then jumps to a smaller size; however, that's
a good tradeoff for a solution that provides both good speed and accuracy.
2023-03-21 18:26:18 +01:00
Stefan Haller
b7c61aa883
Push initial context instead of just putting it in the context array
...
This makes sure activateContext gets called on it.
2023-03-20 20:14:13 +11:00
Stefan Haller
40f6767cfc
Avoid deactivating and activating when pushing the current context again
...
When calling PushContext, do nothing if the context to be pushed is already on
top of the stack. Avoids flicker in certain situations.
2023-03-20 20:14:13 +11:00
John Shin
776d8f4d2e
refresh the staging panel on successful commit
...
apply formatting
2023-03-20 20:13:59 +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
Stefan Haller
549ce09f71
Fix deprecated rand.Seed
2023-03-19 10:00:19 +01: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
Jesse Duffield
73c7dc9c5d
refactor patch code
2023-03-19 16:30:39 +11:00
Jesse Duffield
b542579db3
Better escape code parsing (thanks to Ryooooooga) ( #2514 )
2023-03-19 15:41:47 +11:00
Jesse Duffield
e6274af015
appease golangci-lint ( #2512 )
2023-03-19 11:20:29 +11:00
README-bot
4f57bf22c9
Updated README.md
2023-03-19 00:09:11 +00:00
Luka Markušić
8dbd7d44ff
Fix checking for credentials performance ( #2452 )
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com >
2023-03-19 11:08:54 +11:00
Stefan Haller
4b4dccfd7d
Fix "move patch into new commit" for partial hunk ( #2507 )
2023-03-18 18:17:47 +11:00
Shruti Chaturvedi
81ea3107ed
Uffizzi PR: Update Uffizzi Workflows ( #2502 )
2023-03-18 11:33:07 +11:00
Jens Kutilek
5c8bc790ff
Make arrows consistent ( #2501 )
2023-03-18 11:32:44 +11:00
yk-kd
b5d612e6d6
Add border config ( #2344 )
...
Co-authored-by: yk-kd <yosuke.komada@gmail.com >
2023-03-18 11:23:31 +11:00
README-bot
dea279920c
Updated README.md
2023-03-17 23:26:33 +00:00
Jesse Duffield
5834440767
Merge pull request #2500 from Ryooooooga/fix-commit-loader
2023-03-18 10:26:15 +11:00
Ryooooooga
55fb3ef4e6
fix(commit_loader): fix log command
2023-03-16 20:13:23 +09:00
Luka Markušić
f314cb3763
Remove alternative confirmation and return keymappings
2023-03-09 10:32:00 +01:00
README-bot
516e963392
Updated README.md
2023-03-08 09:45:26 +00:00
Jesse Duffield
804a134aa5
Merge pull request #2471 from stefanhaller/improve-custom-patch-conflict-handling
2023-03-08 20:45:10 +11:00
Jesse Duffield
82fc6fb111
Merge pull request #2491 from TylerBarnes/patch-1
2023-03-08 10:26:06 +11:00
Jesse Duffield
0bda93d4c3
Add more unit tests
2023-03-08 09:19:23 +11:00
Tyler Barnes
6735bf4c89
Update Config.md
2023-03-07 11:54:47 -08:00
Stefan Haller
4bd1322941
Rename WillBeAppliedReverse to Reverse
...
This is the only "reverse"-related option that is left, so use a less clumsy
name for it.
2023-03-07 13:40:07 +01:00
Stefan Haller
45cf993982
Remove the PatchOptions.Reverse option
...
All callers pass false now (except for the tests, which we simply remove), so we
don't need the option any more.
2023-03-07 13:39:45 +01:00
Stefan Haller
e4659145e8
Use WillBeAppliedReverse (and git apply --reverse) in the staging panel too
...
It's simpler to have only one way of reversing a patch.
2023-03-07 13:38:19 +01:00
Stefan Haller
bf6e9a1bd3
Reenable failing test
2023-03-07 09:49:34 +01:00
Stefan Haller
a68cd6af9c
Concatenate patches to apply them all at once
...
This fixes the problem that patching would stop at the first file that has a
conflict. We always want to patch all files.
Also, it's faster for large patches, and the code is a little bit simpler too.
2023-03-07 09:49:34 +01:00
Stefan Haller
4ca012dbfb
Add test for reverse-applying a patch that conflicts
...
The patch contains changes to two files; the first one conflicts, the second
doesn't. Note how it only applies changes to the first file at this point in the
branch; we'll fix this in the next commit.
This test would fail on master for multiple reasons.
2023-03-07 09:49:34 +01:00
Stefan Haller
6bd1c1d068
Remove parameters that are no longer needed
...
All callers in this file now use reverseOnGenerate=false and
keepOriginalHeader=true, so hard-code that in the call to ModifiedPatchForLines
and get rid of the parameters.
2023-03-07 09:49:34 +01:00
Stefan Haller
5d692e8961
Remove the keepOriginalHeader retry loop
...
The loop is pointless for two reasons:
- git apply --3way has this fallback built in already. If it can't do a
three-way merge, it will fall back to applying the patch normally.
- However, the only situation where it does this is when it can't do a 3-way
merge at all because it can't find the necessary ancestor blob. This can only
happen if you transfer a patch between different repos that don't have the
same blobs available; we are applying the patch to the same repo that is was
just generated from, so a 3-way merge is always possible. (Now that we fixed
the bug in the previous commit, that is.)
But the retry loop is not only pointless, it was actually harmful, because when
a 3-way patch fails with a conflict, git will put conflict markers in the
patched file and then exit with a non-zero exit status. So the retry loop would
try to patch the already patched file again, and this almost certainly fails,
but with a cryptic error message such as "error: main.go: does not exist in
index".
2023-03-07 09:49:34 +01:00
Stefan Haller
9cc33c479b
Use forward patches and --reverse flag for partial patches too
...
There's no reason to have two different ways of applying patches for whole-file
patches and partial patches; use --reverse for both. Not only does this simplify
the code a bit, but it fixes an actual problem: when reverseOnGenerate and
keepOriginalHeader are both true, the generated patch header is broken (the two
blobs in the line `index 6d1959b..6dc5f84 100644` are swapped). Git fails to do
a proper three-way merge in that case, as it expects the first of the two blobs
to be the common ancestor.
It would be possible to fix this by extending ModifiedPatchForLines to swap the
two blobs in this case; but this would prevent us from concatenating all patches
and apply them in one go, which we are going to do later in the branch.
2023-03-07 09:49:34 +01:00
Stefan Haller
c79e360584
Add patch option WillBeAppliedReverse
...
It's not used yet, but covered with tests already.
2023-03-07 09:49:34 +01:00
Stefan Haller
f76cc27956
Bundle the reverse and keepOriginalHeader flags into a PatchOptions struct
...
We are going to add one more flag in the next commit.
Note that we are not using the struct inside patch_manager.go; we keep passing
the individual flags there. The reason for this will become more obvious later
in this branch.
2023-03-07 09:49:34 +01:00
Stefan Haller
5a50bfd179
Fix opening the current test file from the integration test gui
2023-03-07 09:49:34 +01:00
Jesse Duffield
c36333af3d
Merge pull request #2433 from Ryooooooga/subcommits-limit
2023-03-06 18:22:57 +11:00
Jesse Duffield
4d78d76a44
Merge pull request #2486 from humblepenguinn/master
2023-03-06 17:34:08 +11:00
README-bot
d08a9849c3
Updated README.md
2023-03-06 06:32:51 +00:00
Jesse Duffield
3791b5057a
Merge pull request #2481 from stefanhaller/fix-accordion-mode-for-custom-patch
2023-03-06 17:32:28 +11:00
Humble Penguin
dfe5c805c4
generated cheatsheets and ran code formatting
2023-03-05 07:06:34 +05:00
Humble Penguin
e94ff63bc5
issue #2473
2023-03-05 06:47:21 +05:00
Stefan Haller
723504a290
Keep side context in context stack when pushing a main context
...
This fixes accordion mode for the commit files panel. When entering a file, the
commit files panel should stay expanded.
2023-03-04 15:07:48 +01:00
README-bot
40a29fd622
Updated README.md
2023-03-03 10:06:38 +00:00
Jesse Duffield
648748781d
Merge pull request #2483 from stefanhaller/fix-setting-selectedLineBgColor
2023-03-03 21:06:19 +11:00
Stefan Haller
63e8b8c01c
Fix setting gui.selectedRangeBgColor as a hex value
2023-03-03 08:46:43 +01:00
Stefan Haller
ed47529604
Add some tests for GetTextStyle
...
The tests show that setting a hex color doesn't work; we'll fix that in the next
commit.
2023-03-03 08:46:43 +01:00
Jesse Duffield
ff5d0155db
Merge pull request #2467 from jesseduffield/remove-file
2023-03-01 19:23:55 +11:00
Jesse Duffield
48acf3818f
Merge pull request #2479 from stefanhaller/fix-you-are-here-issues
2023-03-01 19:21:26 +11:00
Stefan Haller
de3e4838ad
Store WorkingTreeState in model
...
This is the working tree state at the time the model commits were loaded. This
avoids a visual glitch with the "You Are Here" label appearing at times when it
is not supposed to.
2023-03-01 09:12:00 +01:00
Stefan Haller
6af8f278d0
Don't put "<--- YOU ARE HERE" in the commit model's name
...
Instead, derive it from context at display time (if we're rebasing, it's the
first non-todo commit). This fixes the problem that unfolding the current
commit's files in the local commits panel would show junk in the frame's title.
Along the way we make sure to only display the "<--- YOU ARE HERE" string in the
local commits panel; previously it would show for the top commit of a branch or
tag if mid-rebase.
2023-03-01 09:12:00 +01:00
README-bot
e3c6887e5d
Updated README.md
2023-03-01 07:28:41 +00:00
Jesse Duffield
c34e0deca7
Merge pull request #2478 from stefanhaller/make-test-more-robust
2023-03-01 18:28:23 +11:00
README-bot
75b2c50a55
Updated README.md
2023-02-27 23:12:06 +00:00
Jesse Duffield
af7c71d1ee
Merge pull request #2476 from pereBohigas/feature/add_kotlin_icon
2023-02-28 10:11:47 +11:00
Stefan Haller
161bb684fa
Make integration test more robust
...
If you ran this test enough times it would eventually fail; this happened
whenever the resulting squashed commit had a sha that happened to start with
"02". We test that "commit 02" does not appear in the diff window, but in that
case it did, at the very top of the window.
A better fix might be to change the commit message that we use in CreateNCommits
to something other than "commit XY", but that would require touching tons of
tests, so this is the easier fix.
2023-02-27 08:53:06 +01:00
Ryooooooga
a624e0457f
feat(subcommits): load unlimited sub-commits
2023-02-27 15:29:00 +09:00
README-bot
f2aa7e7e28
Updated README.md
2023-02-26 02:07:25 +00:00
Jesse Duffield
75aa339b4e
Merge pull request #2477 from jesseduffield/migrate-merge-conflict-tests
2023-02-26 13:07:11 +11:00
Jesse Duffield
45d45d2397
show file tree by default in integration tests
2023-02-26 13:01:51 +11:00
Jesse Duffield
f7e8b2dd71
cleanup integration test code
2023-02-26 12:54:13 +11:00
Jesse Duffield
8b5d59c238
remove legacy integration tests
2023-02-26 11:34:18 +11:00
Jesse Duffield
f82f4f6dbc
disable auto-refresh in integration tests
2023-02-26 11:23:18 +11:00
Jesse Duffield
ff3c5d331e
migrate merge conflict tests
2023-02-26 11:22:24 +11:00
Pere Bohigas
adef3bd4ca
Add icon for Kotlin script files
2023-02-25 15:14:26 +01:00
README-bot
33f9f81c8c
Updated README.md
2023-02-25 10:40:16 +00:00
Jesse Duffield
f6fafc65ee
Merge pull request #2475 from jesseduffield/migrate-patch-building-tests
2023-02-25 21:40:02 +11:00
Jesse Duffield
9c645088bf
give CI longer wait times before failing assertions
2023-02-25 21:37:16 +11:00
Jesse Duffield
dd1bf629b8
migrate patch building tests
2023-02-25 21:37:16 +11:00
Pere Bohigas
c80a94aa7a
Add icon for Kotlin files
2023-02-25 10:51:43 +01:00
README-bot
6c0b805137
Updated README.md
2023-02-25 00:45:44 +00:00
Jesse Duffield
8a69d994c0
Merge pull request #2474 from jesseduffield/improve-staging-tests
2023-02-25 11:45:29 +11:00
Jesse Duffield
037e957282
fix PullMergeConflict integration test
2023-02-25 11:39:24 +11:00
Jesse Duffield
db011d8e34
Improve staging panel integration tests
2023-02-25 11:35:41 +11:00
Jesse Duffield
752526c880
Merge pull request #2470 from jesseduffield/migrate-staging-tests
2023-02-23 22:38:01 +11:00
Jesse Duffield
c63fed2074
migrate staging tests
2023-02-23 22:29:40 +11:00
Jesse Duffield
1b52a0d83f
Merge pull request #2463 from Ryooooooga/bump-tcell
2023-02-23 20:20:31 +11:00
Jesse Duffield
909a3b6791
remove erroneously added file
2023-02-22 22:35:08 +11:00
Jesse Duffield
558ceb64c7
Merge pull request #2466 from jesseduffield/migrate-reflog-tests
2023-02-22 22:33:57 +11:00
Jesse Duffield
1034962c7e
migrate more tests
2023-02-22 22:29:01 +11:00
Jesse Duffield
eabe7f462a
migrate more tests
2023-02-22 21:57:32 +11:00
Jesse Duffield
22c10479d5
migrate reflog integration tests
2023-02-22 21:15:03 +11:00
Jesse Duffield
f0572238cb
Merge pull request #2465 from jesseduffield/migrate-rebase-tests
2023-02-22 19:40:12 +11:00
Jesse Duffield
78f3a7a478
migrate interactive rebase integration tests
2023-02-22 19:36:31 +11:00
Ryooooooga
90772e1eaa
build: bump tcell version
2023-02-21 21:53:55 +09:00
Jesse Duffield
526c9dea9b
Merge pull request #2293 from jesseduffield/feature/make-discarding-harder
2023-02-21 22:03:25 +11:00
Jesse Duffield
c244c8f231
Merge pull request #2462 from jesseduffield/migrate-push-tests
2023-02-21 21:56:18 +11:00
Jesse Duffield
bfde06d049
migrate push tests
2023-02-21 21:50:03 +11:00
Jesse Duffield
6b8abb7887
Merge pull request #2458 from jesseduffield/migrate-stash-tests
2023-02-20 22:11:47 +11:00
Jesse Duffield
2b6a109e38
migrate stash tests
2023-02-20 21:52:27 +11:00
Jesse Duffield
71a30155dc
rerun test generator
2023-02-20 19:29:15 +11:00
Jesse Duffield
6ee20840b2
migrate switch tab from menu test
2023-02-20 19:28:52 +11:00
Jesse Duffield
56424eb1aa
remove x keybinding for opening menu so we now only use '?'
2023-02-20 19:28:45 +11:00
Jesse Duffield
38c7030b0f
mention path in tooltips
2023-02-20 19:28:45 +11:00
Luka Markušić
31b8524fe6
Add tooltips for discarding
2023-02-20 19:28:45 +11:00
Luka Markušić
0ae34aeeb7
Make discarding items less error prone
...
The menu is opened by `d` so this makes it harder to mess things up by
accidentally pressing `dd`.
2023-02-20 19:28:45 +11:00
Jesse Duffield
e1c376ef54
Merge pull request #2453 from stefanhaller/allow-rebasing-to-first-commit
2023-02-20 19:21:37 +11:00
Jesse Duffield
c13f550d63
Merge pull request #2455 from jesseduffield/wow-even-more-test-migrations
2023-02-20 19:06:35 +11:00
Jesse Duffield
06351c1adf
remove old tag tests
2023-02-20 19:01:08 +11:00
Jesse Duffield
0b55eaca1d
add create tag from commit test
2023-02-20 19:01:08 +11:00
Jesse Duffield
ee8c31880c
add reset to tag test
2023-02-20 19:01:08 +11:00
Jesse Duffield
daf8176dd7
add tag checkout test
2023-02-20 19:01:08 +11:00
Jesse Duffield
76109a4c44
sync test list whenever running a test in vscode
2023-02-20 19:01:08 +11:00
Jesse Duffield
082d342bf8
add tag tests
2023-02-20 19:01:08 +11:00
Jesse Duffield
39c56553b3
show tag message
2023-02-20 19:01:08 +11:00
Stefan Haller
c5cd217a65
Allow squashing fixups above the first commit of a repo
...
This includes amending changes into a given commit, since that's implemented in
terms of the former.
2023-02-20 08:29:43 +01:00
Jesse Duffield
9e2a3a87dd
improved commit test
2023-02-20 18:20:23 +11:00
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
README-bot
1c3db24e44
Updated README.md
2023-02-20 06:33:57 +00:00
Jesse Duffield
15962e489d
Merge pull request #2451 from stefanhaller/edit-by-breaking-after-current-commit
2023-02-20 17:33:37 +11: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
b54b8ae746
Merge pull request #2450 from jesseduffield/migrate-more-tests
2023-02-19 15:51:17 +11: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
e471567b5d
remove already migrated 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
0ac869a415
allow syncing tests from vscode
2023-02-19 13:38:07 +11:00
Jesse Duffield
9da9143aed
Merge pull request #2449 from jesseduffield/migrate-pull-tests
2023-02-19 12:49:49 +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
README-bot
1fc8823825
Updated README.md
2023-02-18 23:11:27 +00:00
Jesse Duffield
eeb9c02836
Merge pull request #2447 from stefanhaller/cleanup-leftovers-from-2444
2023-02-19 10:11:12 +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
README-bot
627cc285f7
Updated README.md
2023-02-17 23:34:46 +00:00
Jesse Duffield
bee338f93b
Merge pull request #2444 from stefanhaller/fix-selecting-next-stageable-line
2023-02-18 10:34:31 +11:00
Jesse Duffield
01bf7f21e6
bump gocui
2023-02-18 10:28:09 +11: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
README-bot
0d395e4051
Updated README.md
2023-02-14 09:54:05 +00:00
Jesse Duffield
09178a1276
Merge pull request #2435 from Ryooooooga/return-alt1
2023-02-14 20:53:42 +11:00
Jesse Duffield
b66aa42ee5
Merge pull request #2437 from jesseduffield/migrate-even-more-tests
2023-02-12 18:16:22 +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
README-bot
91d62da577
Updated README.md
2023-02-10 23:52:06 +00:00
Jesse Duffield
9f71ed6c41
Merge pull request #2432 from Ryooooooga/remove-unknown-view-error-msg
2023-02-11 10:51: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
README-bot
aed3d56840
Updated README.md
2023-02-09 10:48:48 +00:00
Jesse Duffield
3745ba506b
Merge pull request #2428 from jesseduffield/fix-linting
2023-02-09 21:48:28 +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
README-bot
f7af2b991d
Updated README.md
2023-02-04 23:30:57 +00:00
Jesse Duffield
75c3ab8a4a
Merge pull request #2411 from Ryooooooga/default-color
...
fix https://github.com/jesseduffield/lazygit/issues/2410
2023-02-05 10:30:42 +11:00
Ryooooooga
7bd0c779c7
fix: fix default color to be white
2023-02-03 23:36:59 +09:00
README-bot
16802a048e
Updated README.md
2023-02-01 10:52:32 +00: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
README-bot
77093451d4
Updated README.md
2023-01-31 06:03:06 +00:00
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
README-bot
9d5d61260a
Updated README.md
2023-01-29 02:43:45 +00: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
Jesse Duffield
b942df02a1
Merge pull request #2376 from Ryooooooga/fix-resolve-placeholder
2023-01-26 13:03:19 +11:00
Jesse Duffield
f12a2edefa
Merge pull request #2372 from Ryooooooga/fix-installation-ubuntu
2023-01-26 12:58:49 +11:00
README-bot
7e54b5641f
Updated README.md
2023-01-26 00:51:36 +00:00
Jesse Duffield
89a09be6a0
Merge pull request #2262 from daramayis/uffizzi
2023-01-26 11:51:17 +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
Ryooooooga
b45c5d8491
docs(README.md): fix installation scripts for Ubuntu
2023-01-17 16:42:51 +09:00
Phanindra kumar Paladi
f6f82091bc
Added copy to clipboard option to the patch options
2023-01-17 09:07:07 +05:30
README-bot
48df9b7f4e
Updated README.md
2023-01-16 22:19:40 +00:00
Jesse Duffield
fd86d29400
Merge pull request #2343 from Ryooooooga/commit-verbose
2023-01-17 09:19:22 +11:00
Phanindra kumar Paladi
a11e91e651
replaced 'screenMode' to 'windowSize' in config
2023-01-16 20:07:21 +05:30
README-bot
6127e487dd
Updated README.md
2023-01-16 08:10:18 +00:00
Jesse Duffield
1d89a5daa1
Merge pull request #2356 from Ryooooooga/missing-config-docs
2023-01-16 19:09:56 +11:00
Phanindra kumar Paladi
f4ccb68464
Added screenMode configuration to gui configuration
2023-01-11 16:51:46 +05:30
Aramayis
b90af5461a
feat: uffizzi integration
2023-01-10 19:29:45 +04:00
Ryooooooga
acbcf9933d
docs(Config.md): add missing keybindings
2023-01-10 20:43:23 +09:00
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
README-bot
c769a78db5
Updated README.md
2023-01-06 02:10:51 +00:00
Jesse Duffield
1cf24a02d3
Merge pull request #2345 from Ryooooooga/fix-goroutine-leaks
2023-01-06 13:10:27 +11:00
Ryooooooga
657b1e897f
build: bump gocui
2023-01-06 10:59:09 +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
README-bot
c8fc1c3f5a
Updated README.md
2023-01-01 01:38:27 +00:00
Jesse Duffield
c5ea80fa67
Merge pull request #2340 from Ryooooooga/improve-backward-compatibility
2023-01-01 12:38:10 +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
cceff63823
Merge pull request #2339 from jesseduffield/integration-tests-5
2022-12-30 22:57:17 +11: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
Jesse Duffield
31bdd27e88
Merge pull request #2333 from Ryooooooga/push-force-if-includes
2022-12-30 22:33:04 +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
README-bot
ae780fdb81
Updated README.md
2022-12-30 03:28:33 +00:00
Jesse Duffield
a05bdc3ee4
Merge pull request #2338 from jesseduffield/snake
2022-12-30 14:28:14 +11: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
ff8823093c
Merge pull request #2336 from jesseduffield/migrate-even-more-tests
2022-12-28 16:01:11 +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
0a8731eecf
Merge pull request #2335 from jesseduffield/alas-more-test-refactoring
2022-12-28 11:30:51 +11:00
Jesse Duffield
14a974742f
rename from asserter to driver
2022-12-28 11:27:48 +11:00
Jesse Duffield
534703a023
Merge pull request #2334 from jesseduffield/more-test-refactoring
2022-12-28 11:23:39 +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
README-bot
17140e1d8d
Updated README.md
2022-12-26 06:59:43 +00: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
README-bot
ef62a35d79
Updated README.md
2022-12-24 08:19:34 +00:00
Jesse Duffield
05425cfba0
Merge pull request #2329 from jesseduffield/yet-more-test-migrations
2022-12-24 19:19:15 +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
c19f52255c
add task for opening deprecated tests TUI
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
588850b090
focus terminal when running a test
2022-12-24 19:05:46 +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
c77df59b9b
Merge pull request #2325 from jesseduffield/migrate-even-more-tests
2022-12-20 23:14:10 +11: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
6ec88ce8ba
Merge pull request #2323 from jesseduffield/migrate-more-tests
2022-12-20 22:51:04 +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
abbd598992
bump gocui
2022-12-20 22:06:44 +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
wakaka6
6bf28d325f
Ament description about return-alt1
2022-12-20 14:08:33 +08:00
Jesse Duffield
43b5a80738
Merge pull request #2320 from jesseduffield/migrate-yet-another-integration-test
2022-12-19 23:01:42 +11:00
Jesse Duffield
b13cfdfea0
migrate branch reset integration test
2022-12-19 22:38:32 +11:00
README-bot
b647241521
Updated README.md
2022-12-19 11:26:28 +00:00
Jesse Duffield
1e85bc3d62
Merge pull request #2315 from navazjm/iss2302
2022-12-19 22:26:09 +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
Jesse Duffield
d69b2fef9a
Merge pull request #2298 from arnaudperalta/commit-in-staged-menu
...
Closes undefined
2022-12-01 10:01:55 +11: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
d0499286e2
keybindings cheatsheet for commit in unstaged/staged
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
README-bot
f7449ed53a
Updated README.md
2022-11-30 08:40:32 +00:00
Jesse Duffield
ff25016a6a
Merge pull request #2303 from jesseduffield/fix-ignore-keybinding
2022-11-30 19:40:12 +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
5b3f684afb
Merge pull request #2276 from Ryooooooga/bump-gocui
2022-11-26 13:42:38 +11:00
README-bot
618b845f5e
Updated README.md
2022-11-26 02:42:33 +00: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
Jesse Duffield
773eb0310f
Merge pull request #2296 from jesseduffield/fix-prompt-response-not-stored
2022-11-26 13:41:30 +11:00
Jesse Duffield
03ce22f3c9
Update docs/Config.md
2022-11-26 13:39:00 +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
Ryooooooga
cf048e4807
bump gocui
2022-11-25 21:48:44 +09:00
README-bot
a6ebc5869e
Updated README.md
2022-11-24 22:54:15 +00:00
Jesse Duffield
ffc2a6805a
Merge pull request #2290 from nils-a/buxfix/quote-regex
2022-11-25 09:53:57 +11:00
Nils Andresen
d24feb14e5
added test data
2022-11-24 13:17:02 +00: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
924a152ae9
Update CONTRIBUTING.md
2022-11-15 16:00:46 +11:00
Jesse Duffield
2b8e412ed3
Update CONTRIBUTING.md
2022-11-14 20:54:27 +11:00
Jesse Duffield
d1a8b05401
use github native to generate release notes
2022-11-14 20:21:33 +11: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
Jesse Duffield
fbfec75a99
Merge pull request #2261 from sudoburt/merge-loaders-git-commands
2022-11-14 18:17:54 +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
c77c02c879
Merge pull request #2272 from jesseduffield/no-push-commits-when-resetting
2022-11-13 14:33:48 +11:00
Jesse Duffield
d26350502c
stop switching focus to commits view when resetting
2022-11-13 03:26:50 +00:00
Jesse Duffield
2ddd3ddfc0
Merge pull request #2271 from jesseduffield/less-pollution-in-tests
2022-11-13 14:15:04 +11:00
Jesse Duffield
df3cd941d7
use tempdir in tests to prevent polluting worktree
2022-11-13 14:10:21 +11:00
Jesse Duffield
ea28529cbb
set default branch in dev container for the sake of integration tests
2022-11-13 03:00:58 +00:00
Jesse Duffield
db592e1dc6
Merge pull request #2269 from jesseduffield/disable-underscores-in-vscode
2022-11-13 13:45:08 +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
5eeaebde98
Update CONTRIBUTING.md
2022-11-13 12:05:14 +11:00
Jesse Duffield
e059641f3f
more tasks
2022-11-13 12:05:07 +11:00
Jesse Duffield
fbac05fff7
Update README.md
2022-11-13 11:54:37 +11:00
README-bot
99e05ee138
Updated README.md
2022-11-13 00:51:52 +00:00
Jesse Duffield
7144691ae5
Merge pull request #2266 from jesseduffield/codespaces
2022-11-13 11:51:38 +11:00
Jesse Duffield
fb170b55a2
add some tasks
2022-11-13 11:37:52 +11:00
Jesse Duffield
903e65ae8d
add devcontainer folder
2022-11-13 10:56:22 +11:00
Andrew Hynes
e56b05cbac
Merge branch 'master' into stash-untracked-changes
2022-11-12 18:14:51 -03:30
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
Lukasz Piatkowski
f03e1e4e42
Update go-git to handle negative refspecs
2022-11-12 18:09:16 -03:30
Jesse Duffield
91f83c6be7
use better colour defaults
2022-11-12 18:09:16 -03:30
README-bot
fd581ef70c
Updated README.md
2022-11-12 18:09:15 -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
Jesse Duffield
ea09686770
Update README.md
2022-11-12 18:09:15 -03:30
Jesse Duffield
c769e5828c
Update README.md
2022-11-12 18:09:15 -03:30
README-bot
33410213f1
Updated README.md
2022-11-12 18:09:15 -03:30
Jesse Duffield
af57dbd225
Update README.md
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
3e15315339
Merge pull request #2232 from lukaspiatkowski/fix-negative-refspec
...
fix https://github.com/jesseduffield/go-git/pull/1
2022-11-12 19:11:52 +11:00
Lukasz Piatkowski
4fa8586191
Update go-git to handle negative refspecs
2022-11-12 07:24:14 +01:00
Jesse Duffield
3a295f34df
Merge pull request #2257 from jesseduffield/better-colour-defaults
2022-11-12 15:04:22 +11:00
Jesse Duffield
1ac3ae1ad1
use better colour defaults
2022-11-12 14:59:15 +11:00
README-bot
34404162e6
Updated README.md
2022-11-11 23:58:16 +00:00
Jesse Duffield
e6e95343af
Merge pull request #2260 from jesseduffield/could-not-access
2022-11-12 10:58:01 +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
Jesse Duffield
ab03cf8bcf
Update README.md
2022-11-09 21:14:14 +11:00
Jesse Duffield
cc01c0de6d
Update README.md
2022-11-09 19:57:26 +11:00
README-bot
4f471f352f
Updated README.md
2022-11-09 08:54:28 +00:00
Jesse Duffield
a63d5c5644
Update README.md
2022-11-09 19:54:11 +11:00
Andrew Hynes
a47e72892a
Merge branch 'master' into stash-untracked-changes
2022-11-01 16:08:34 -02:30
README-bot
c4e71356bb
Updated README.md
2022-10-25 05:49:39 +00:00
Jesse Duffield
b0f7cf092f
Merge pull request #2222 from Ryooooooga/disable-keybindings
2022-10-24 22:49:20 -07:00
Ryooooooga
808b35d8f2
docs: add examples of disabling keybindings
2022-10-18 22:23:56 +09:00
Ryooooooga
4aa9147dfa
build: $ ./scripts/bump_gocui.sh
2022-10-18 22:20:04 +09:00
Ryooooooga
14ec0cd92e
feat: allow null in keybindings
2022-10-18 22:20:03 +09:00
Jesse Duffield
36c6462a53
Merge pull request #2220 from Ryooooooga/rename-stash
2022-10-16 09:56:32 -07: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
Jesse Duffield
79334b84f0
Merge pull request #2221 from Ryooooooga/commit-message-prompt
2022-10-15 10:00:14 -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
Jesse Duffield
05089b9a9a
Merge pull request #2219 from Ryooooooga/stash-icon
2022-10-14 08:41:39 -07:00
Ryooooooga
d90fedfbf8
feat: add stash icon
2022-10-14 21:58:58 +09:00
README-bot
6af0afdb1c
Updated README.md
2022-10-14 00:46:34 +00:00
Jesse Duffield
6cb5e628b3
Merge pull request #2218 from Ryooooooga/feature/empty-stash-message
2022-10-13 17:46:13 -07: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
6b9f43c73b
Merge pull request #2213 from jesseduffield/go-mod-vendor
2022-10-11 08:38:46 -07:00
README-bot
1358662a21
Updated README.md
2022-10-11 15:17:01 +00:00
Jesse Duffield
ffe5e16688
add profiling guide to contributor docs
2022-10-11 08:16:34 -07:00
Jesse Duffield
575afa1377
update vendor directory
2022-10-11 08:12:56 -07:00
README-bot
d22f6d73ff
Updated README.md
2022-10-09 16:00:39 +00:00
Jesse Duffield
867975ad31
Merge pull request #2210 from jesseduffield/move-box-layout-into-lazycore
2022-10-09 09:00:24 -07:00
Jesse Duffield
24a07ae85a
update docs for lazycore
2022-10-09 08:49:49 -07:00
Jesse Duffield
c370a5e728
add bump lazycore script
2022-10-09 08:47:38 -07:00
Jesse Duffield
dba0edb998
use boxlayout from lazycore
2022-10-09 08:31:14 -07:00
Andrew Hynes
69040f094d
clean: delete old integration artifacts
2022-10-06 23:03:46 -02:30
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
README-bot
7b4b42abd6
Updated README.md
2022-10-06 18:26:36 +00:00
Jesse Duffield
2f76ef58f1
Merge pull request #2204 from Ryooooooga/move-by-word
2022-10-06 11:26:10 -07:00
Ryooooooga
e436922eb6
feat(editors.go): move by words
2022-10-05 22:29:55 +09:00
Jesse Duffield
056cc14821
Merge pull request #2199 from TomBaxter/master
2022-10-03 20:15:50 -07:00
TomBaxter
c686c7f9ed
Replace regex for retrieving latest version
2022-10-03 13:58:04 -04:00
Jesse Duffield
b27a2ce39a
Merge pull request #2197 from jesseduffield/fix-extra-spaces-in-tests
2022-10-03 09:41:12 -07:00
Jesse Duffield
e3f21f0588
strip NUL bytes instead of replacing with space
2022-10-03 09:29:41 -07:00
Jesse Duffield
3375cc1b3d
Merge pull request #2196 from jesseduffield/no-glitchy-render-to-main
2022-10-02 21:05:54 -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
README-bot
a77aa4d75a
Updated README.md
2022-10-03 03:37:49 +00:00
Jesse Duffield
68a2a4c6b5
Merge pull request #2195 from jesseduffield/bumo-gocui
2022-10-02 20:37:31 -07:00
Jesse Duffield
8858f03606
adjust test temporarily to unblock master
2022-10-02 20:34:14 -07:00
Jesse Duffield
5670c0a301
bump gocui
2022-10-02 18:43:25 -07:00
Jesse Duffield
c953871ec7
use lowercase 'quote' for consistency with existing custom command template functions
2022-10-02 18:43:25 -07:00
README-bot
b0c19b291f
Updated README.md
2022-10-02 19:42:47 +00:00
Jesse Duffield
8a022ddf0e
Merge pull request #2193 from Ryooooooga/feature/template-funcs
2022-10-02 12:42:28 -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
092363a986
Merge pull request #2164 from mark2185/fix-rebasing-over-merge-commits
2022-09-24 23:59:13 -07: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
README-bot
e001183768
Updated README.md
2022-09-24 02:27:14 +00:00
Jesse Duffield
268d8f99b8
Merge pull request #2183 from Ryooooooga/emacs-keybindings
2022-09-23 19:26:52 -07:00
Ryooooooga
212e19f598
feat: add support for emacs keybindings
2022-09-24 00:00:30 +09:00
Ryooooooga
1c82924307
build: $ ./scripts/bump_gocui.sh
2022-09-23 20:01:44 +09:00
Jesse Duffield
c8066c54b5
Merge pull request #2081 from Ryooooooga/feature/fix-loading-files
2022-09-19 08:17:40 -07: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
Jesse Duffield
dcbebef897
Merge pull request #2109 from Mihai22125/improve_custom_commands_interface
2022-09-17 15:06:43 -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
c81333fefe
Merge pull request #2169 from 0123takaokeita/feature/mod_config_dir
2022-09-17 11:20:42 -07:00
README-bot
5639af9918
Updated README.md
2022-09-17 18:10:08 +00:00
Jesse Duffield
ee348751a0
Merge pull request #2137 from jesseduffield/more-integration-tests
2022-09-17 11:09:49 -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
Jesse Duffield
9351af3829
yet another retry to reduce flakiness
2022-09-16 08:55:16 -07:00
Jesse Duffield
7af7af27c6
various changes to improve integration tests
2022-09-16 08:42:39 -07:00
Andrew Hynes
db9373662a
test: add test for basic stash
2022-09-15 23:11:27 -02:30
Andrew Hynes
e189546acb
refactor: move checks for clean working tree
2022-09-15 21:48:49 -02:30
Andrew Hynes
c7733aa5e5
refactor: rename method to StashIncludeUntrackedChanges
2022-09-15 21:48:49 -02:30
Andrew Hynes
a0fd47348b
test: add stash message
2022-09-15 21:48:49 -02:30
Andrew Hynes
6feb301c2a
fix: use message in git stash command
2022-09-15 21:48:49 -02:30
Andrew Hynes
e66b162726
refactor: remove redundant if statement
2022-09-15 21:48:49 -02:30
Andrew Hynes
4f8816ebf2
refactor: use extended flag name
2022-09-15 21:48:49 -02:30
Andrew Hynes
50cf7ac5bc
refactor: change command order
2022-09-15 21:48:49 -02:30
Andrew Hynes
088445b7be
test: add integration test
2022-09-15 21:48:49 -02:30
Andrew Hynes
c7fd218308
fix: add condition to if statement
2022-09-15 21:48:49 -02:30
Andrew Hynes
7ddb80a13e
feat: add stash option to include untracked changes
2022-09-15 21:48:48 -02:30
Takao
fecf2ab810
fix: how to change the config dir for MacOS
2022-09-15 00:15:50 +09:00
Luka Markušić
3232f46a8b
Validate --path argument when starting lazygit
2022-09-12 17:18:42 +02:00
Jesse Duffield
7b757d1cfe
add branch rebase integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
843488bff4
add branch delete integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
a9d4ff2aee
cleaning up imports
2022-09-09 20:55:47 -07:00
Jesse Duffield
5d5471c017
remove already migrated test
2022-09-09 20:55:47 -07:00
Jesse Duffield
8cdfc6758f
add another bisect integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
010f430d1f
add bisect integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
79620fc6cf
don't quit integration test tui upon error
2022-09-09 20:55:47 -07:00
Jesse Duffield
47f84b6aea
better assertions
2022-09-09 20:55:47 -07:00
README-bot
de6d278e57
Updated README.md
2022-09-07 22:55:18 +00:00
Jesse Duffield
46b08e7d70
Merge pull request #2146 from Ryooooooga/fix-initial-origin-editor
2022-09-07 15:54:57 -07:00
Ryooooooga
eb9fbb0a33
fix(confirmation_panel.go): fix initial origin of editor box
2022-09-01 19:44:17 +09:00
Jesse Duffield
448ff80d7d
Merge pull request #2123 from Ryooooooga/feature/edit-initial-scroll
2022-08-31 22:43:06 -07:00
Jesse Duffield
74f9b8a3b4
Merge pull request #2143 from Abirdcfly/master
2022-08-31 22:42:32 -07:00
README-bot
25c4aa532e
Updated README.md
2022-09-01 05:42:26 +00:00
Jesse Duffield
e7aacafc2e
Merge pull request #2132 from jtraub/fix-open-gitlab-commit
2022-08-31 22:42:05 -07:00
Abirdcfly
d78d694959
chore: remove duplicate word in comments
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2022-08-30 13:23:37 +08:00
Konstantin Mikhailov
a67a08eeac
Fix open commit in browser for some Gitlab repos
2022-08-24 11:23:02 +10:00
Jesse Duffield
f6d6b5dec0
Merge pull request #2126 from yofreee/master
2022-08-19 08:30:30 +10:00
Jesse Duffield
ce98279896
Merge pull request #2124 from Ryooooooga/feature/improve-integration-test-portability
2022-08-19 08:25:50 +10:00
README-bot
e0e4138396
Updated README.md
2022-08-18 22:25:16 +00:00
Jesse Duffield
014daf7bc0
Merge pull request #2067 from nullishamy/feat/detect-bare-repo
2022-08-19 08:24:53 +10:00
Yofre Ormaza
67d6b69115
docs(readme): Added lazygit install method on ubuntu
2022-08-18 14:43:38 -05:00
nullishamy
956372cf8a
Run gofumpt
2022-08-18 18:26:34 +01:00
nullishamy
290e865584
Merge branch 'master' into feat/detect-bare-repo
2022-08-18 17:46:07 +01:00
Ryooooooga
6248091e9c
test: improve integration test portability
2022-08-18 23:48:53 +09:00
Ryooooooga
3ada4dde12
fix: fix initial scroll position of edit box
2022-08-18 23:39:15 +09:00
Jesse Duffield
ef82f39431
better PR template
2022-08-16 08:08:39 +10:00
nullishamy
21a4522a51
Merge branch 'master' into feat/detect-bare-repo
2022-08-15 14:00:34 +01:00
nullishamy
154bd975a6
Apply refactoring suggestions
2022-08-15 13:59:34 +01:00
Jesse Duffield
fbe54512a8
formatting
2022-08-15 20:10:25 +10:00
Jesse Duffield
7fd0e55b7f
add PR template
2022-08-15 20:09:17 +10:00
Jesse Duffield
13b04e9e8c
Merge pull request #2116 from jesseduffield/test-go-mod-vendor
2022-08-15 20:05:06 +10:00
Jesse Duffield
8a1937787d
fix gocui mismatch
2022-08-15 20:01:43 +10:00
Jesse Duffield
a94c703afb
fail on vendor directory mismatch
...
try this
or this
more
2022-08-15 19:55:27 +10:00
Jesse Duffield
6d7a7afbbc
update test readme
2022-08-15 19:24:36 +10:00
Jesse Duffield
6abcfd5cba
missed a spot
2022-08-14 21:39:07 +10:00
Jesse Duffield
a95d3e26b3
Merge pull request #2114 from jesseduffield/more-test-examples
2022-08-14 21:37:09 +10:00
Jesse Duffield
af45692e24
fix CI
2022-08-14 21:34:37 +10:00
Jesse Duffield
fed2aaf37f
migrate menuFromCommand integration test
2022-08-14 21:30:37 +10:00
Jesse Duffield
b2ae651686
add slow flag to integration tests
2022-08-14 20:49:20 +10:00
Jesse Duffield
e875d6b448
ensuring you can't accidentally forget to add a test to the tests list
2022-08-14 20:49:20 +10:00
Jesse Duffield
53979f7cec
a more complex custom command test
2022-08-14 20:49:20 +10:00
Jesse Duffield
9c0d860980
basic custom command test
2022-08-14 20:49:20 +10:00
Jesse Duffield
4aea005f26
Merge pull request #2098 from Ryooooooga/feature/not-a-repository-quit
2022-08-14 17:37:07 +10:00
Jesse Duffield
39e9266089
Merge pull request #2110 from mark2185/fix-ignore-or-exclude-file-menu
2022-08-14 17:35:35 +10:00
Jesse Duffield
f999c90a7b
Merge pull request #2113 from jesseduffield/better-test-structure
2022-08-14 17:31:53 +10:00
Jesse Duffield
502723421b
build integration binaries on CI to ensure they compile
2022-08-14 17:20:52 +10:00
Jesse Duffield
5173d7f5e1
better CLI interface
2022-08-14 17:20:52 +10:00
Jesse Duffield
349a7d2453
even better structure
2022-08-14 11:24:07 +10:00
Jesse Duffield
f3837000dd
bump gocui
2022-08-13 20:12:04 +10:00
Jesse Duffield
d1b093e703
no need for this
2022-08-13 19:30:51 +10:00
README-bot
c66a2c3465
Updated README.md
2022-08-13 04:18:48 +00:00
Jesse Duffield
ba7d639940
Merge pull request #2094 from jesseduffield/better-integration-tests
2022-08-13 14:18:27 +10:00
Jesse Duffield
cad84c9e74
ensure we don't try to run another test when lazygit is invoked as a daemon
2022-08-13 14:12:35 +10:00
Jesse Duffield
5e475355bf
add tests for my tests
2022-08-13 13:56:50 +10:00
Jesse Duffield
304d74370e
refactor to ensure code doesn't depend on integration code
2022-08-13 13:56:50 +10:00
Jesse Duffield
2bdefe2049
add assertion to prevent flakiness
2022-08-13 13:56:50 +10:00
Jesse Duffield
faed509bfd
fix CI
2022-08-13 13:56:50 +10:00
Jesse Duffield
b8d9443999
rename helpers to components
2022-08-13 13:55:17 +10:00
Jesse Duffield
de84b6c4b9
remove buggy-ass action
2022-08-13 13:55:09 +10:00
Jesse Duffield
610eddfe05
fix CI
2022-08-13 13:55:09 +10:00
Jesse Duffield
1ef6f4c0e1
renaming
2022-08-13 13:55:08 +10:00
Jesse Duffield
ae798157d2
update comments
2022-08-13 13:55:08 +10:00
Jesse Duffield
a45b22e12f
re-name Input and improve documentation
2022-08-13 13:55:08 +10:00
Jesse Duffield
ba96baee32
move code from main into app package to allow test to be injected
2022-08-13 13:55:08 +10:00
Jesse Duffield
d890238c7b
move input and assert into integration tests package
2022-08-13 13:52:13 +10:00
Jesse Duffield
46ae55f91e
introduce gui adapter
2022-08-13 13:51:56 +10:00
Luka Markušić
0ff5b74d80
IgnoreOrExclude should be a menu
2022-08-11 14:23:02 +02:00
Jesse Duffield
225c563c63
another integration test
2022-08-11 21:24:16 +10:00
Jesse Duffield
77881a9c7d
add new integration test pattern
2022-08-11 21:24:15 +10:00
Jesse Duffield
c7f9d5801b
Merge pull request #2108 from eetann/fix-document-link
2022-08-10 16:04:39 +10:00
eetann
77622e5638
fix: document link
2022-08-10 13:17:07 +09:00
lkearn
6422b399e7
Feat: Add emacs character navigation, because I'm weird like that :)
2022-08-09 17:58:43 +10:00
nullishamy
3016469708
Merge branch 'master' into feat/detect-bare-repo
2022-08-08 13:51:14 +01:00
Ryooooooga
8b371ada73
feat(config): add notARepository: quit
2022-08-08 18:11:58 +09:00
Jesse Duffield
fc49068a6f
better bug report template
2022-08-08 18:53:22 +10:00
Jesse Duffield
95297f72a3
even better
2022-08-08 18:50:48 +10:00
Jesse Duffield
121872ac27
new feature request template
2022-08-08 18:46:11 +10:00
nullishamy
d072b0c75e
Merge branch 'master' into feat/detect-bare-repo
2022-08-07 16:20:59 +01:00
Jesse Duffield
70a46028e1
Merge pull request #2093 from jesseduffield/fix-hidden-suggestions
2022-08-07 19:30:43 +10:00
Jesse Duffield
e4e04cfa8f
fix hidden suggestions
2022-08-07 19:20:02 +10:00
Jesse Duffield
2e7b935bfb
Merge pull request #2089 from jesseduffield/render-to-main-refactor
2022-08-07 13:03:28 +10:00
Jesse Duffield
71a9389ca4
Merge pull request #2087 from xxdavid/bitbucket_custom_username
2022-08-07 13:01:04 +10:00
Jesse Duffield
b77f3160f1
Merge pull request #2004 from mark2185/fix-add-to-gitignore-newline
2022-08-07 12:49:39 +10:00
Jesse Duffield
92bde6dda4
Merge pull request #2086 from luzpaz/README
2022-08-07 12:48:04 +10:00
Jesse Duffield
d73a236d7c
allow rendering to main panels from anywhere
2022-08-07 12:05:51 +10:00
Jesse Duffield
fcf20f3b93
Merge pull request #2088 from jesseduffield/merge-conflict-refactor
2022-08-07 11:26:46 +10:00
Jesse Duffield
9578329cd9
update cheatsheet
2022-08-07 11:20:25 +10:00
Jesse Duffield
4c5fa83566
ensure we remove temporary directory
2022-08-07 11:16:14 +10:00
Jesse Duffield
755ae0ef84
add deadlock mutex package
...
write to deadlock stderr after closing gocui
more deadlock checking
2022-08-07 11:16:14 +10:00
Jesse Duffield
7410acd1aa
move merge conflicts code into controller
2022-08-07 11:16:03 +10:00
David Pavlík
4db22aec0e
support custom SSH usernames on BitBucket, fixes #1890
2022-08-06 22:54:57 +02:00
nullishamy
a91d977f89
Merge branch 'master' into feat/detect-bare-repo
2022-08-06 14:08:59 +01:00
Jesse Duffield
445a625b56
rename merging context to mergeConflicts
2022-08-06 18:05:00 +10:00
README-bot
cd2c01d1cf
Updated README.md
2022-08-06 03:56:13 +00:00
Jesse Duffield
17316ca061
Merge pull request #2023 from jesseduffield/one-context-per-view
2022-08-06 13:55:56 +10:00
Jesse Duffield
54fb73080a
use ptmx map so that we can have multiple ptmx's stored for resizing
2022-08-06 13:49:11 +10:00
Jesse Duffield
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
luz paz
7fcd1d2a6e
fix typo in README.md
...
'Maintenance' is spelled incorrectly.
2022-08-05 13:25:59 -04:00
Luka Markušić
fdf6a9cc2b
Test appending to empty file
2022-08-04 13:52:04 +02:00
Luka Markušić
57f86b8f90
Rerun integration test
2022-08-03 14:08:52 +02:00
Luka Markušić
6160d85d4f
Use tmpdir for tests
2022-08-03 14:06:12 +02:00
Luka Markušić
64224e7caa
Update pkg/commands/oscommands/os.go
...
Co-authored-by: Ryoga <eial5q265e5+github@gmail.com >
2022-08-03 13:57:26 +02:00
Luka Markušić
d56bb0b8ef
Fix the integration test
2022-08-03 07:55:51 +02:00
Luka Markušić
d238d8952b
Add AppendLineToFile tests
2022-08-03 07:55:51 +02:00
Luka Markušić
86d5654d20
Preserve trailing newline setting when adding to gitignore
2022-08-03 07:55:51 +02:00
Jesse Duffield
6dfef08efc
Merge pull request #2079 from jesseduffield/fix-menu-popup-focus-issue
2022-08-02 09:21:33 +10:00
Jesse Duffield
c1c6e2fac2
make exception for searching from menu
2022-08-02 09:16:01 +10:00
nullishamy
0b4f9f8c76
Refactor branching logic
2022-08-01 21:58:00 +01:00
nullishamy
a658cd4076
Factor out opening of recent repos
2022-08-01 20:05:35 +01:00
nullishamy
69718fb557
Factor out redundant statement
2022-08-01 19:39:39 +01:00
nullishamy
b9b2f58bc8
Format, bug fixes
2022-08-01 17:41:20 +01:00
nullishamy
bdb0b9ae6e
Merge branch 'master' into feat/detect-bare-repo
2022-08-01 17:05:33 +01:00
nullishamy
2866827ca8
Apply suggestions from code review
2022-08-01 17:05:16 +01:00
Jesse Duffield
932b0b593e
add integration test to ensure we don't run into issues with popup focus
2022-08-01 22:17:06 +10:00
Jesse Duffield
3ee2ad511e
prevent crash when opening recent repos panel if no recent repos are present
2022-08-01 22:10:08 +10:00
Jesse Duffield
debc58b6c5
fix popup focus issue
2022-08-01 22:09:48 +10:00
Jesse Duffield
fab2e14b55
fix issue caused by opening a menu over a prompt
2022-08-01 21:38:57 +10:00
Jesse Duffield
81f80ce968
Merge pull request #2077 from jesseduffield/file-node-fix
...
handle nil properly with file nodes
2022-08-01 20:36:26 +10:00
Jesse Duffield
95426c5e46
handle nil properly with file nodes
2022-08-01 20:32:01 +10:00
Jesse Duffield
4ffc9a5395
Merge pull request #2076 from jesseduffield/build-info
2022-08-01 20:22:27 +10:00
Jesse Duffield
86ac309e08
add build info when building from source
2022-08-01 20:16:50 +10:00
nullishamy
9987e65c35
Merge branch 'master' into feat/detect-bare-repo
2022-08-01 03:14:49 +01:00
Jesse Duffield
69f4292fe3
Merge pull request #2075 from jesseduffield/generic-trees
2022-07-31 19:47:06 +10:00
Jesse Duffield
682be18507
refactor to use generics for file nodes
...
use less generic names
2022-07-31 19:43:14 +10:00
Jesse Duffield
2ca2acaca5
Merge pull request #2072 from jesseduffield/optimistic-file-rendering
2022-07-31 19:31:23 +10:00
Jesse Duffield
5f4c29d7b5
Merge pull request #2005 from mark2185/feature/recent-repos-path
...
Show active branch for recent repo
2022-07-31 19:30:30 +10:00
Luka Markušić
44de380c2b
Add i18n for unknown branch
2022-07-31 08:57:57 +02:00
Luka Markušić
37bdbd9a21
Display short SHA when in detached HEAD state
2022-07-31 08:51:27 +02:00
Luka Markušić
767ef31661
Use filepath.Join instead of manual concat
2022-07-31 08:43:31 +02:00
README-bot
bb64fe4309
Updated README.md
2022-07-31 06:20:16 +00:00
Jesse Duffield
c81c046615
Merge pull request #2059 from sportshead/master
2022-07-31 16:19:59 +10:00
Jesse Duffield
a905165046
remove double negatives
2022-07-31 16:11:39 +10:00
Jesse Duffield
7077ea428f
add optimistic rendering for staging and unstaging files
2022-07-31 14:34:57 +10:00
sportshead
f2880ecb46
Add empty output message and refreshing to showOutput
2022-07-31 12:04:40 +08:00
Luka Markušić
966733240c
Refactor a bit, enable worktrees
2022-07-30 19:02:19 +02:00
Luka Markušić
25ddac0d8f
Gotta go fast
2022-07-30 17:42:15 +02:00
Luka Markušić
7c09ce3871
Parallelize fetching current branch
2022-07-30 17:05:17 +02:00
Luka Markušić
e6e4513f45
Show active branch for recent repo
...
Split recent repo menu into three columns
2022-07-30 17:05:17 +02:00
Luka Markušić
9c6239df3d
Worktrees should not be filtered out
...
But non-git directories should
2022-07-30 17:03:30 +02:00
Jesse Duffield
c26650258d
Merge pull request #2064 from jesseduffield/fix-update-gocui
...
Update gocui
2022-07-30 21:08:47 +10:00
Jesse Duffield
c943cdd8d2
Merge pull request #2071 from jesseduffield/ellipsis-with-menu
...
Add better support for OpensMenu option when creating a menu
2022-07-30 20:40:54 +10:00
Jesse Duffield
ab5a8091f5
add better support for OpensMenu option when creating a menu
2022-07-30 20:27:51 +10:00
Jesse Duffield
95678b1b43
Merge pull request #2065 from jesseduffield/fix-rewording-merge-commit-with-editor
...
Fix rewording a merge commit with editor
2022-07-30 19:51:59 +10:00
Jesse Duffield
f947214ce0
Merge pull request #2070 from mark2185/feature/document-SelectedPath
...
Add SelectedPath to the list of placeholder values
2022-07-30 19:50:01 +10:00
Jesse Duffield
8c65f63e76
Merge pull request #2062 from jesseduffield/mark2185-patch-1
...
Update bug_report.md
2022-07-30 19:48:58 +10:00
Luka Markušić
085904d209
Add link to the installation instructions
2022-07-30 08:46:53 +02:00
Luka Markušić
cc377b5c49
Fix rewording a merge commit with editor
2022-07-30 08:43:42 +02:00
README-bot
1f97ddd9b1
Updated README.md
2022-07-30 06:38:57 +00:00
Jesse Duffield
5cef0f2921
Merge pull request #2069 from mark2185/fix-github-linter
...
Fix github linter errors
2022-07-30 16:38:41 +10:00
Luka Markušić
61e14c46b2
Add SelectedPath to the list of placeholder values
2022-07-30 08:25:40 +02:00
Luka Markušić
1f482e585e
Fix github linter errors
2022-07-30 08:10:29 +02:00
nullishamy
41b54d742f
Check for bare repositories
2022-07-29 23:55:34 +01:00
Luka Markušić
83dfc3b28b
Update gocui
2022-07-29 06:59:52 +02:00
Luka Markušić
017d44ff17
Update bug_report.md
...
Add the `please try updating` tidbit to the bug report because that's one of the most common answers (and it cuts down debugging time)
2022-07-28 21:17:15 +02:00
sportshead
168fbe0a6c
Add showOutput option to docs
2022-07-28 18:57:16 +08:00
sportshead
e1f41b653c
Add showOutput option to custom commands ( #1163 )
2022-07-28 18:40:30 +08:00
README-bot
367b0d3318
Updated README.md
2022-07-18 23:36:44 +00:00
Jesse Duffield
97d8c591b6
Merge pull request #2039 from Ryooooooga/master
2022-07-19 09:36:23 +10:00
Ryooooooga
04772154b7
ci: change not to run Generate Sponsors action on the fork repository
2022-07-18 21:51:32 +09:00
Jesse Duffield
c087dca60a
Merge pull request #2027 from jesseduffield/gozes-jesse
...
Attempt at fixing CI
2022-07-05 19:37:09 +10:00
Jesse Duffield
5bd3eedd71
update docs
2022-07-05 19:33:44 +10:00
Jesse Duffield
a99255c18b
try having at least one commit created
2022-07-05 19:33:44 +10:00
Jesse Duffield
6d133fd611
better handling of gitignore files
2022-07-05 19:33:44 +10:00
Jesse Duffield
bd9e85a2d2
init repo before setting username
2022-07-05 19:33:44 +10:00
Juan Sanchez Montalvo
11d766053e
Allow adding a file to the .git/info/exclude file
2022-07-05 19:33:44 +10:00
Jesse Duffield
86038b3fae
Merge pull request #2017 from m-mead/feat/m-mead/1858/add-confirm-prompt
...
feat: add confirm prompt for custom keybindings
2022-07-05 08:26:07 +10:00
Jesse Duffield
39ba397cf7
Update pkg/config/user_config.go
2022-07-04 11:36:18 -07:00
Michael Mead
9d304098bb
feat: add confirm prompt for custom keybindings
...
- Supports configuring a custom confirmation prompt via `config.yml` for
custom keybindings. A new `CustomCommandPrompt.Body` field is
used to store the immutable body text of the confirmation popup.
- Adds a sample 'confirm' prompt to the example `config.yml`.
- Updates the `Prompts` section of the documentation to include
'confirm' prompt type and also describe which fields pertain to it
(i.e. `initialValue`).
Closes: https://github.com/jesseduffield/lazygit/issues/1858
Signed-off-by: Michael Mead <mmead.developer@gmail.com >
2022-07-04 11:36:13 -07:00
Jesse Duffield
582b1991a4
Merge pull request #1997 from shinhs0506/wsl-support
2022-07-04 18:13:55 +10:00
Jesse Duffield
6e6e8ce8ca
Update CONTRIBUTING.md
2022-07-04 18:09:24 +10:00
John Shin
1eb47deae4
apply gofumpt
2022-07-03 02:00:40 -07:00
README-bot
7fbb073b18
Updated README.md
2022-07-03 08:39:40 +00:00
Jesse Duffield
bc989dd846
Merge pull request #2022 from Ryooooooga/fix-config-env
...
docs(Config.md): fix docs on specifying config file
2022-07-03 18:39:19 +10:00
Ryooooooga
60049f8f4f
docs(Config.md): fix docs on specifying config file
2022-07-02 19:53:54 +09:00
Jesse Duffield
f565290737
Merge pull request #2002 from Ryooooooga/update-config-docs
2022-07-01 17:22:19 +10:00
Jesse Duffield
a6eb2c7e9d
Merge pull request #2006 from jesseduffield/better-killing
2022-07-01 17:16:29 +10:00
README-bot
3ab1b39ac7
Updated README.md
2022-07-01 07:15:58 +00:00
Jesse Duffield
36c8f592cf
Merge pull request #2020 from mark2185/feature/default-branch
2022-07-01 17:15:39 +10:00
Luka Markušić
f1efa02640
Ask for initial branch name
2022-06-30 13:53:58 +02:00
Jesse Duffield
41071c3703
Update README.md
2022-06-19 17:41:04 +10:00
README-bot
9618338b4f
Updated README.md
2022-06-19 07:34:48 +00:00
Jesse Duffield
6d2bc6dca3
Update README.md
2022-06-19 17:34:32 +10:00
Jesse Duffield
c9d891a913
better process killing
2022-06-18 13:39:22 +10:00
Ryooooooga
92b0e0edd0
docs(Config.md): add missing keybinding.branches.renameBranch
2022-06-16 23:29:48 +09:00
Jesse Duffield
a5821f5ec8
Merge pull request #1960 from fsmiamoto/fix-interactive-rebase
2022-06-13 12:44:07 +10:00
Francisco Miamoto
d8dfed79b3
fix: use todo parser to properly read rebase todo file
2022-06-12 20:01:32 -03:00
Francisco Miamoto
0b08a0b298
build: add github.com/fsmiamoto/git-todo-parser
2022-06-12 20:01:32 -03:00
John Shin
4d54b3801f
apply formatting
2022-06-11 23:23:22 -07:00
John Shin
3067c2c321
support open file and link on WSL
2022-06-11 23:18:29 -07:00
Jesse Duffield
2bccbee32b
Merge pull request #1992 from jesseduffield/fix-ci
2022-06-11 13:23:59 +10:00
Jesse Duffield
2fc77796b1
fix ci
2022-06-11 13:20:49 +10:00
Jesse Duffield
2864366e95
Merge pull request #1991 from jesseduffield/parallel-tests
2022-06-11 13:17:36 +10:00
Jesse Duffield
3d61893589
add more cache paths
2022-06-11 13:11:56 +10:00
Jesse Duffield
ef36ac955d
remove unused file
2022-06-11 13:11:51 +10:00
Jesse Duffield
02c5559704
run integration tests in parallel and properly cache windows build
2022-06-11 13:06:29 +10:00
Jesse Duffield
32c0b39dbd
Merge pull request #1950 from HiromasaNojima/add_subcommand_into_specific_layout_directly
2022-06-11 11:51:14 +10:00
Jesse Duffield
baa02ac154
Merge pull request #1969 from mark2185/fix-windows-create-new-git-repo
2022-06-11 11:50:53 +10:00
Jesse Duffield
d0748c6c28
verbose tests
2022-06-11 11:23:56 +10:00
Jesse Duffield
b1e4968d0b
allow opening lazygit to a specific panel
2022-06-11 11:23:56 +10:00
Luka Markušić
a955dbcfd7
Validate recent repo before blindly opening it
2022-06-11 09:42:51 +10:00
Luka Markušić
658a6b239b
Fix parsing of 'y/n' when starting in non-repo
2022-06-11 09:42:51 +10:00
Jesse Duffield
36aa01c3ac
Merge pull request #1970 from mark2185/fix-helpful-unmarshall-error
2022-06-11 09:19:30 +10:00
Jesse Duffield
de3114edc3
Merge pull request #1972 from lei4519/feature/display-whole-graph-by-default
2022-06-09 20:17:25 +10:00
Jesse Duffield
cdec70cc06
Merge pull request #1975 from mark2185/fix-unmatching-remote-branch-name
2022-06-09 20:12:56 +10:00
Jesse Duffield
24e3afbb56
Merge pull request #1983 from David-Else/master
2022-06-09 20:10:47 +10:00
Jesse Duffield
f15fafd7cb
Merge pull request #1929 from jesseduffield/set-author
2022-06-09 19:28:54 +10:00
Jesse Duffield
9591cc381a
support setting the author of a commit
...
update copy
2022-06-09 19:12:20 +10:00
README-bot
901ab3ac1b
Updated README.md
2022-06-08 06:18:32 +00:00
Jesse Duffield
9a8625b35c
Merge pull request #1986 from Shin-JaeHeon/feature/korean
...
Add Korean translation
2022-06-08 16:18:14 +10:00
Shin-JaeHeon
b6b1f5dc37
improve korean translation
2022-06-07 23:46:32 +09:00
Shin-JaeHeon
d2a873cb40
improve korean translation
2022-06-07 23:36:24 +09:00
Shin-JaeHeon
d533427173
Korean translation
2022-06-07 23:31:56 +09:00
David
d669d9dab7
Update Fedora/RHEL installation information
2022-06-06 10:49:06 +01:00
Luka Markušić
55a941d5dc
Fetch the correct remote branch
2022-06-01 20:35:09 +02:00
README-bot
f9a3188b56
Updated README.md
2022-06-01 09:14:26 +00:00
Jesse Duffield
f6ce220807
Update Custom_Command_Keybindings.md
2022-06-01 19:14:08 +10:00
Luka Markušić
abf203e012
Update pkg/config/app_config.go
...
Print out error to narrow down the search
Co-authored-by: Ryoga <eial5q265e5+github@gmail.com >
2022-05-31 13:28:24 +02:00
Lay
684ea284af
fix: lint error
2022-05-30 23:19:48 +08:00
Jesse Duffield
b6b3be9ac7
Update docs/Config.md
2022-05-30 17:34:30 +10:00
Lay
666180cfd0
Add config param that displays the whole git graph by default
2022-05-30 13:52:39 +08:00
Luka Markušić
abeb03b090
Add helpful message on unmarshall error
2022-05-28 17:29:30 +02:00
Jesse Duffield
8fd9dea641
Merge pull request #1936 from Ryooooooga/feature/tab-i18n
2022-05-18 22:24:45 +10:00
Jesse Duffield
499d51ecf6
Merge pull request #1931 from mark2185/fix-non-existant-recent-repo
2022-05-18 22:22:28 +10:00
Jesse Duffield
e1e16a34da
Merge pull request #1948 from Ryooooooga/feature/time-format
2022-05-18 22:20:51 +10:00
README-bot
15ff8a143e
Updated README.md
2022-05-18 12:19:55 +00:00
Jesse Duffield
5d8c2eeccc
Merge pull request #1945 from Ryooooooga/feature/fix-lint
2022-05-18 22:19:36 +10:00
Ryooooooga
bfefef92a6
chore(i18n): move InitialViewTabContextMap to gui package
2022-05-18 21:09:48 +09:00
Ryooooooga
5275161a88
chore(i18n): localize panel titles
2022-05-18 20:55:42 +09:00
Ryooooooga
e57931f56d
test: fix timezone for time format tests
2022-05-18 20:55:29 +09:00
Ryooooooga
1f1d871837
feat: add ability to customize time format
2022-05-18 20:55:27 +09:00
Ryooooooga
9693afd671
fix: fix lint error
2022-05-18 20:34:35 +09:00
Jesse Duffield
e28d1334e9
better debug setup
2022-05-17 22:14:24 +10:00
Jesse Duffield
6e29830f63
ignore some codespaces stuff
2022-05-17 11:55:31 +00:00
Jesse Duffield
95e816ae91
remove commented out line
2022-05-17 21:52:14 +10:00
Jesse Duffield
e89d817d78
update launch.json
2022-05-17 11:45:47 +00:00
Jesse Duffield
2fe286f395
add launch.json
2022-05-17 21:38:37 +10:00
Luka Markušić
1de5ca3511
Don't panic when there are no valid git repos
2022-05-17 07:28:52 +02:00
Jesse Duffield
f31dcd3091
Merge pull request #1930 from mark2185/feature/discard-staged-only
2022-05-15 20:33:25 +10:00
Luka Markušić
241d182da7
Make tooltip i18n-able
2022-05-15 12:16:20 +02:00
Jesse Duffield
8e7f6822fc
Merge pull request #1944 from Ryooooooga/feature/fix-ambiguous-refname
2022-05-15 19:45:30 +10:00
Jesse Duffield
73491fed25
Merge pull request #1927 from HiromasaNojima/option_always_show_unstaged_staged_panels
2022-05-15 19:24:56 +10:00
Jesse Duffield
d72ffdc4a7
refactor
2022-05-15 19:10:04 +10:00
Jesse Duffield
7b0bb68741
Merge pull request #1911 from Ryooooooga/feature/fix-log-show-signature
2022-05-15 18:50:36 +10:00
Ryooooooga
61970a4439
fix: fix ambiguous refname
2022-05-13 21:05:51 +09:00
README-bot
5529088e43
Updated README.md
2022-05-11 13:15:16 +00:00
Jesse Duffield
5f2102d1c1
rearrange
2022-05-11 23:13:06 +10:00
Jesse Duffield
96147bc11a
add sponsors thingo
2022-05-11 23:11:24 +10:00
Ryooooooga
490a964432
chore(loaders): add -c log.showSignature=false flag to the rebasing commit loader
2022-05-10 19:47:10 +09:00
Ryooooooga
f789e21377
perf: improve loading speed of commits and reflog when log.showSignature=true
2022-05-10 19:47:07 +09:00
Jesse Duffield
8c04118bb1
Update README.md
2022-05-09 22:53:42 +10:00
Jesse Duffield
d622fefbeb
Update README.md
2022-05-09 10:08:56 +10:00
Luka Markušić
ca191159f5
Discard staged changes only
2022-05-08 14:24:28 +02:00
HiromasaNojima
1ef585969f
add option to always show unstaged/staged panels
2022-05-08 17:24:55 +09:00
Jesse Duffield
f7c44f2407
Merge pull request #1926 from jesseduffield/prep-for-author-setting
2022-05-08 14:30:58 +10:00
Jesse Duffield
e67fef776b
add author email to commits
2022-05-08 14:26:18 +10:00
Jesse Duffield
6f8063217d
rename displayString to label for menu items
2022-05-08 14:26:18 +10:00
Jesse Duffield
125e948d82
Merge pull request #1893 from JensPfeifle/reset_author
2022-05-08 13:39:22 +10:00
Jesse Duffield
25b213b992
fix cheatsheet
2022-05-08 13:31:13 +10:00
Jesse Duffield
20db9fc939
update copy
2022-05-08 13:29:57 +10:00
Jesse Duffield
8ef0032ee2
update snapshot to include author name and email in git log
2022-05-08 13:29:57 +10:00
Jens Pfeifle
ec4b5ca134
Update cheatsheets.
2022-05-08 13:29:57 +10:00
Jens Pfeifle
fbe23b3754
fixup! Add command to reset the commit author from the commits panel.
2022-05-08 13:29:57 +10:00
Jens Pfeifle
1e08b90f67
Add integration test for reset author command.
2022-05-08 13:29:57 +10:00
Jens Pfeifle
7ac487545c
fixup! Add command to reset the commit author from the commits panel.
2022-05-08 13:29:56 +10:00
Jens Pfeifle
7c573a5bea
Add command to reset the commit author from the commits panel.
2022-05-08 13:29:56 +10:00
Jesse Duffield
8247089e53
Merge pull request #1925 from jesseduffield/details-view
2022-05-08 13:24:51 +10:00
Jesse Duffield
22d98249fe
better popup resizing logic
2022-05-08 13:24:36 +10:00
Jesse Duffield
f257740ea7
add tooltip view for showing menu item descriptions
2022-05-08 13:24:36 +10:00
Jesse Duffield
517e9445df
refactor view definitions
2022-05-08 11:41:13 +10:00
Jesse Duffield
549409a6f3
Merge pull request #1923 from Ryooooooga/feature/fix-author-name
2022-05-07 23:41:16 +10:00
Jesse Duffield
b91fb81230
Merge pull request #1920 from Ryooooooga/feature/fix-prompt-height
2022-05-07 23:40:26 +10:00
Dawid Dziurla
119002d98c
README: delete Ubuntu installation
2022-05-07 12:02:37 +02:00
Dawid Dziurla
96f8201626
workflows: bump brew formula on Ubuntu
2022-05-07 11:59:40 +02:00
Ryooooooga
5717e72366
fix: fix copying author name to clipboard
2022-05-07 18:08:05 +09:00
Ryooooooga
540d2e379a
fix: fix collision of Donate and Ask Question
2022-05-07 18:02:09 +09:00
Ryooooooga
04babdfb82
fix: fix the appStatus width calculation
2022-05-07 17:37:53 +09:00
Ryooooooga
265e6d8360
fix: fix the prompt height calculation
2022-05-07 16:36:20 +09:00
Jesse Duffield
5eefe5b5b1
Merge pull request #1919 from jesseduffield/more-documentation
2022-05-07 16:12:18 +10:00
Jesse Duffield
3bf0c9ef44
more documentation
2022-05-07 16:02:04 +10:00
Jesse Duffield
cd5b041b0f
clearer separation of concerns when bootstrapping application
2022-05-07 16:02:04 +10:00
Jesse Duffield
cf80978f15
Merge pull request #1918 from RhydianJenkins/name-bug-fix
2022-05-07 11:02:24 +10:00
Jesse Duffield
9956a5bfb2
Merge pull request #1912 from Ryooooooga/feature/edit-hunk
2022-05-07 11:01:26 +10:00
Rhydian Jenkins
7d495573ab
Bug fix - unused name param
2022-05-06 23:00:44 +01:00
Ryooooooga
b07e0ea032
fix: fix context of edit hunk
2022-05-06 21:58:40 +09:00
Ryooooooga
d458e78d95
feat: add ability to edit hunk
2022-05-06 21:53:00 +09:00
Jesse Duffield
0940e0182b
Merge pull request #1870 from mark2185/feature/stash-unstaged
2022-05-06 20:17:33 +10:00
Jesse Duffield
f7fae0b82e
Merge pull request #1869 from mark2185/feature/unset-upstream
2022-05-06 20:14:13 +10:00
Luka Markušić
8b8a405b7c
Update stashing tests to apply instead of pop
2022-05-06 12:03:18 +02:00
Jesse Duffield
6253258d4b
Merge pull request #1913 from Ryooooooga/feature/japanese
2022-05-06 08:40:43 +10:00
Jesse Duffield
593eb19ca4
Merge pull request #1910 from Ryooooooga/feature/named-author-colors
2022-05-06 08:39:26 +10:00
Jesse Duffield
8c6260ed8d
Merge pull request #1914 from Ryooooooga/feature/fix-crash-empty-panel
2022-05-06 08:38:06 +10:00
Ryooooooga
2eb866fc62
fix: fix a crash when pressing enter in empty commits, reflog, or stash panel
2022-05-05 21:41:44 +09:00
Ryooooooga
cda359fbc9
feat(i18n): japanese translation
2022-05-05 18:42:27 +09:00
Ryooooooga
494368a241
feat: accept named colors for gui.authorColors
2022-05-04 19:03:00 +09:00
Jesse Duffield
f143d04d87
Merge pull request #1904 from jesseduffield/yank-author
2022-05-01 15:11:00 +10:00
Jesse Duffield
4dd09ee0d5
allow copying commit author to clipboard
2022-05-01 14:14:29 +10:00
Jesse Duffield
d85f4792af
Merge pull request #1894 from Ryooooooga/feature/icons
2022-05-01 12:21:32 +10:00
Ryooooooga
5524f007f3
docs(Config.md): add docs about nerd fonts
2022-04-30 23:13:49 +09:00
Jesse Duffield
babb9d8656
Merge pull request #1891 from Ryooooooga/feature/improve-default-edit-command-template
2022-04-30 13:53:24 +10:00
Ryooooooga
db3568e4f2
chore(gui): remove todo
2022-04-29 17:53:43 +09:00
Ryooooooga
86af186683
feat(file_icons.go): add Cargo.toml icons
2022-04-24 18:23:14 +09:00
Ryooooooga
e5730cb80b
fix: improve default editCommandTemplate
2022-04-23 17:39:12 +09:00
Ryooooooga
f972d6ae68
feat(gui): show remote icons
2022-04-23 12:25:42 +09:00
Ryooooooga
11d0e7e17d
feat(gui): show branch icons
2022-04-23 12:25:41 +09:00
Ryooooooga
cb13fe7f46
feat(gui): show commit icons
2022-04-23 12:25:41 +09:00
Ryooooooga
b07aeda5a6
feat(gui): show file icons
2022-04-23 12:25:40 +09:00
Jesse Duffield
09bc6f2aef
Merge pull request #1885 from briandipalma/patch-1
2022-04-21 08:34:33 +10:00
Brian Di Palma
a5d4eccfa6
Update Custom_Command_Keybindings.md
2022-04-19 12:17:06 +01:00
Luka Markušić
eb038d1950
Update stashPop and stashDrop setups
2022-04-18 10:29:36 +02:00
Luka Markušić
196d56d014
Add integration tests
2022-04-18 10:22:25 +02:00
Jesse Duffield
8b103b16bd
add highlighting docs
2022-04-18 11:08:54 +10:00
Jesse Duffield
dfb293c985
better upstream changes presentation
2022-04-18 11:03:28 +10:00
Jesse Duffield
9b947b74a2
allow hiding bottom line
2022-04-18 09:58:36 +10:00
Luka Markušić
f5f6409c27
Remove stash_Copy test
2022-04-17 12:21:43 +02:00
Luka Markušić
bd9daf80b7
Add integration tests
2022-04-17 11:08:36 +02:00
Jesse Duffield
3477cbc81f
better weight distribution in window arrangement
2022-04-17 12:48:04 +10:00
Jesse Duffield
2fa6d8037c
always show list counts
2022-04-16 17:29:17 +10:00
Jesse Duffield
d3b6acf096
restore highlighting of popup messages
2022-04-16 17:29:17 +10:00
Jesse Duffield
e68093fe99
add scrollbars
2022-04-16 17:29:17 +10:00
Jesse Duffield
b838b74801
do not highlight line if there are no items to display
2022-04-16 15:19:32 +10:00
Jesse Duffield
00afa30ebf
better appearance for reverse attribute
2022-04-16 15:19:32 +10:00
Jesse Duffield
6a153acc8f
clearer highlighting of current line
2022-04-16 15:19:32 +10:00
Ryooooooga
b3e18bd258
fix(loaders/file.go): fix not to trim renamed file names
2022-04-15 08:58:49 +10:00
Jesse Duffield
90c9c46ffc
update integration test notes
2022-04-15 08:54:45 +10:00
Mukhlis Akbarrudin
21336d3aa2
refactor: explicitly add alternative keybinding
2022-04-15 08:23:27 +10:00
Mukhlis Akbarrudin
af5f4af6c0
docs: add alternative keybinding to scroll up/down main panel
2022-04-15 08:23:27 +10:00
Luka Markušić
1ae2dc9941
The four horsemen of stashing
2022-04-14 21:45:55 +02:00
Luka Markušić
e114b5b5e8
Refresh BRANCHES and COMMITS after (un)staging upstream
2022-04-13 15:54:32 +02:00
Luka Markušić
c4b958e3fd
There's gotta be a better way for initial content
2022-04-13 15:21:01 +02:00
Luka Markušić
f83308c8df
Add option to (un)set upstream for a local branch
2022-04-11 14:04:06 +02:00
TheBlob42
d0e099d2fc
doc: add missing provider
2022-04-11 17:17:40 +10:00
TheBlob42
bcc0466498
feat: pull request support for bitbucket server
2022-04-11 17:17:40 +10:00
Luka Markušić
6f7038c827
Add option to stash only unstaged files
2022-04-10 09:35:59 +02:00
Luka Markušić
58ed23a47a
Make worktrees work
2022-04-09 09:53:03 +10:00
Jesse Duffield
336f2772e8
bump gocui
2022-04-08 12:15:23 +10:00
Jesse Duffield
8433367dac
Update CONTRIBUTING.md
2022-04-07 08:41:02 +10:00
casswedson
b7928042f0
chore: typo hunting ft. codespell
2022-04-06 08:52:41 +10:00
Ryooooooga
3b5a019e1a
feat(merge_panel): Add open/edit files in merge conflict panel
2022-04-06 08:27:03 +10:00
Ryooooooga
53257db99d
fix: fix diff of renamed files
2022-04-06 08:26:13 +10:00
Ryooooooga
954d1a8147
fix commit description
2022-04-02 17:04:42 +11:00
Ryooooooga
09d24ebd1d
fix test
2022-04-02 17:04:42 +11:00
Ryooooooga
4835fc00b8
introduce Ref interface
2022-04-02 17:04:42 +11:00
Ryooooooga
30be50b641
add Commit.ParentRefName()
2022-04-02 17:04:42 +11:00
Ryooooooga
99ecc1cfdf
fix loaders
2022-04-02 17:04:42 +11:00
Ryooooooga
86c259623c
feat: fix permission problem of temp dirs
2022-04-02 08:48:38 +11:00
Ryooooooga
2fbb52fa2c
chore: remove dead code
2022-04-02 08:48:38 +11:00
Moritz Haase
e35ab3c5fe
pkg/gui: Use 'alert' popups instead of 'confirm' popups where appropriate
...
Invocations of 'IPopupHandler::Confirm()' that use neither 'HandleConfirm' nor
'HandleClose' can be replaced by 'Alert()'.
2022-03-30 20:13:43 +11:00
Moritz Haase
8fb2acc224
pkg/gui: Rename IPopupHandler::Ask() to Confirm()
...
Follow the JavaScript naming scheme for user interaction (alert, prompt,
confirm) as discussed in #1832 .
2022-03-30 20:13:43 +11:00
Moritz Haase
f2fb6453a1
pkg/gui: Show notification popup when update was successful
...
Show a proper notification popup once an update has been installed successfully
so the user knows we're done (so far a popup is only shown if an error occurred).
The popup also reminds him to restart lazygit for the changes to take effect.
2022-03-28 09:13:34 +11:00
Moritz Haase
b7079634ee
i18n: Make user-facing strings in the updater translatable
...
Convert a number of static (english) user-facing string in the updater code to
translatable ones.
2022-03-28 09:13:34 +11:00
Moritz Haase
9bccc20888
pkg/gui: Add support for 'notification' popups
...
Add a new 'Notification()' method to 'IPopupHandler' that makes it easier to
show a modal info message to the user. This is simply a convenience wrapper
around 'Ask()', so the popup can be closed using both 'Enter' and 'ESC'.
2022-03-28 09:13:34 +11:00
Adrian
ac406f57ff
[fix] Fixed Dockerfile
2022-03-27 22:03:16 +11:00
Jesse Duffield
5a0ac6fe67
Update README.md
2022-03-27 19:36:08 +11:00
Jesse Duffield
b3636a537b
reduce glitchiness of patch building mode
2022-03-27 19:18:07 +11:00
Jesse Duffield
48a244a923
update cheatsheets
2022-03-27 18:50:49 +11:00
Jesse Duffield
7c3d14ee19
allow amending and reverting commits when filtering by file
2022-03-27 18:50:29 +11:00
Jesse Duffield
897c4402a4
better colour
2022-03-27 18:16:16 +11:00
Jesse Duffield
860d1e0145
fix copy for merge confirmation
2022-03-27 18:16:16 +11:00
Jesse Duffield
e011acbab2
better logging for stash flow
2022-03-27 18:16:16 +11:00
Jesse Duffield
3e5d4b2c74
add menu keybindings for various things
2022-03-27 18:16:16 +11:00
Jesse Duffield
e94312b664
use colour
2022-03-27 18:16:16 +11:00
Jesse Duffield
9c226eed37
allow menu to store keybindings for quick menu navigation
2022-03-27 18:16:16 +11:00
Jesse Duffield
e43ce23642
require hitting escape to exit menu panel
2022-03-27 18:16:16 +11:00
Jesse Duffield
0dfb7c08b7
remove controllers struct
2022-03-27 18:16:16 +11:00
Jesse Duffield
f0a4dcfdc3
refactor menu context
2022-03-27 18:16:16 +11:00
Jesse Duffield
98e7ec0905
add type alias for Key
2022-03-27 18:16:16 +11:00
Jesse Duffield
7128d822cb
show stdout in error message if stderr is blank
2022-03-27 14:58:20 +11:00
Jesse Duffield
20ec6d98ad
refactor integration tests
2022-03-27 14:58:20 +11:00
Jesse Duffield
2b3d457aa4
honour push.default matching config value
2022-03-27 14:58:20 +11:00
Jesse Duffield
ae10a5ea88
add git fetch prune integration test
2022-03-27 10:28:46 +11:00
Moritz Haase
4abd80e2c4
pkg/gui: Fix crash if auto-fetch interval is non-positive
...
Check whether the auto-fetch interval configured is actually positive before
starting the background fetcher. If it is not, an error is logged. Also improve
the config option documentation a bit to make it easier to understand how to
disable auto-fetch.
2022-03-27 10:14:33 +11:00
Moritz Haase
240483953f
config: Add option 'git.autoRefresh' to en-/disable auto-refresh
...
Adds a new 'autoRefresh' option to the 'git' config section that allows user to
disable auto-refresh (defaults to on). If auto-refresh is enabled, the
refreshInterval is now checked before starting the timer to prevent crashes when
it is non-positive.
Fixes #1417
2022-03-27 10:14:33 +11:00
Jesse Duffield
51baa8c17d
update cheatsheet
2022-03-26 18:00:46 +11:00
Jesse Duffield
102c33433b
remove dead code
2022-03-26 18:00:46 +11:00
Jesse Duffield
fe87114074
don't hide transient views upon losing focus
2022-03-26 18:00:46 +11:00
Jesse Duffield
ad7703df65
show namesake for child views
2022-03-26 18:00:46 +11:00
Jesse Duffield
13b90ac37f
support viewing commits of reflog entry and show better view title
2022-03-26 18:00:46 +11:00
Jesse Duffield
e039429885
better wording again
2022-03-26 17:22:42 +11:00
Jesse Duffield
e0b05f4464
fix cherry picking bug
2022-03-26 17:22:42 +11:00
Jesse Duffield
077b6eb8a3
refactor to make code clearer
2022-03-26 17:22:42 +11:00
Jesse Duffield
45dab51214
add basic commits controller for handling actions that apply to all commit contexts
2022-03-26 17:22:42 +11:00
Luka Markušić
540edb0bf4
Add copy commit attributes option
2022-03-26 17:22:42 +11:00
Crystal-RainSlide
bbaa651943
Update chinese.go
2022-03-26 13:38:22 +11:00
Jesse Duffield
f9979879a1
no more naked returns
2022-03-25 23:27:28 +11:00
Jesse Duffield
cf74c2cf96
reorder
2022-03-24 20:14:41 +11:00
Jesse Duffield
43d3f2bcb6
refactor todo file generation
2022-03-24 20:14:41 +11:00
Jesse Duffield
99e55725fb
simplify
2022-03-24 20:14:41 +11:00
Jesse Duffield
340a145bc8
refactor cheatsheet generator
2022-03-24 20:14:41 +11:00
Jesse Duffield
cb26c7a1f2
more things
2022-03-24 20:14:41 +11:00
Jesse Duffield
e392b9f86a
no more filterThenMap
2022-03-24 20:14:41 +11:00
Jesse Duffield
67a76523fb
rename
2022-03-24 20:14:41 +11:00
Jesse Duffield
94a53484a1
would you believe that I'm adding even more generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
1b75ed3740
many more generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
bf4f06ab4e
more generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
eda8f4a5d4
lots more generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
c7a629c440
make more use of generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
dde30fa104
add gone branches status
2022-03-24 17:50:25 +11:00
Jesse Duffield
13a9bbb984
skip flakey bisect test
2022-03-24 09:45:27 +11:00
Jesse Duffield
f113ff21bf
add confirmation before performing undo or redo action
2022-03-24 09:45:27 +11:00
Jesse Duffield
12ecd665c8
safe reword
2022-03-23 23:43:21 +11:00
Jesse Duffield
cc5d13c833
allow adding whole diff to patch
...
this was causing a panic
add integration test for toggling all commit files
2022-03-23 23:36:58 +11:00
Jesse Duffield
5ded030a88
diff colour for reflog commits
2022-03-23 18:53:29 +11:00
Moritz Haase
8fb47fb7d6
pkg/commands: Don't duplicate line breaks when retrieving commit message
...
When using the "copy commit message to clipboard" action, the message will end
up in the clipboard with duplicate line breaks. The same issue also affects the
"Reword Commit" command. GetCommitMessage(), the function used to retrieve the
commit message first splits the output returned by git into separate lines -
without removing the line breaks. After removing the first line (which contains
the commit SHA), it joins the lines of the message itself back together - adding
a second set of line breaks along the way. Stop this from happening.
Fixes #1808 .
2022-03-23 08:19:17 +11:00
Moritz Haase
ac687a5a2a
docs: Add section about code formatting to contributors guide
...
Explain that gofumpt is used instead of gofmt and how to configure VSCode to use it.
2022-03-23 08:18:06 +11:00
Jesse Duffield
a34bdf1a04
update linters
2022-03-19 12:12:57 +11:00
Jesse Duffield
d93fef4c61
use generics to DRY up context code
2022-03-19 12:12:57 +11:00
Moritz Haase
4b56d428ff
pkg/updates: Fix resource availability check in Updater
...
When trying to download an update, a 'Could not find any binary at ...' error
message is shown erroneously. This happens since when checking the availability,
a response code of 403 ('Forbidden') instead of 200 ('OK') is expected. Since
'http.Head()' handles redirects automatically, there is no need to also accept
3xx status codes.
Fixes #1450 .
2022-03-18 22:19:45 +11:00
Jesse Duffield
4fde97b066
update go to v1.18
2022-03-18 21:36:28 +11:00
Jesse Duffield
205c7d60aa
update cheatsheets
2022-03-17 19:13:40 +11:00
Jesse Duffield
729da3549a
go mod vendor
2022-03-17 19:13:40 +11:00
Jesse Duffield
7bdd7088e7
prevent early exit from setup script
2022-03-17 19:13:40 +11:00
Jesse Duffield
31ab43d0c5
add host helper
2022-03-17 19:13:40 +11:00
Jesse Duffield
fb3752c11f
clean up keybindings menu
2022-03-17 19:13:40 +11:00
Jesse Duffield
36c149836a
softcode keybinding
2022-03-17 19:13:40 +11:00
Jesse Duffield
ea503633aa
move keybindings
2022-03-17 19:13:40 +11:00
Jesse Duffield
59d4df2a44
fix click handling
2022-03-17 19:13:40 +11:00
Jesse Duffield
cf00949b85
fix integration tests
2022-03-17 19:13:40 +11:00
Jesse Duffield
c7b03bd3c2
rename handlers
2022-03-17 19:13:40 +11:00
Jesse Duffield
1ad4518d35
update cheatsheet
2022-03-17 19:13:40 +11:00
Jesse Duffield
8fd6338527
move workspace reset menu into controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
ee1337b931
add remote branches controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
d543e767d4
update cheatsheets
2022-03-17 19:13:40 +11:00
Jesse Duffield
d59c0e2725
remove dead code
2022-03-17 19:13:40 +11:00
Jesse Duffield
675510ba53
fix integration test
2022-03-17 19:13:40 +11:00
Jesse Duffield
a3885e8ea3
abbrev all commits to length 40 for consistency
2022-03-17 19:13:40 +11:00
Jesse Duffield
4805db7d97
use correct context
2022-03-17 19:13:40 +11:00
Jesse Duffield
3e26f39dee
remove dead code
2022-03-17 19:13:40 +11:00
Jesse Duffield
ef7c4c9ca9
refactor custom commands
...
more custom command refactoring
2022-03-17 19:13:40 +11:00
Jesse Duffield
952a4f3f23
prevent interrupting confirmation panel
2022-03-17 19:13:40 +11:00
Jesse Duffield
46e9946854
refactor credential handling
2022-03-17 19:13:40 +11:00
Jesse Duffield
d0805616e4
move function
2022-03-17 19:13:40 +11:00
Jesse Duffield
1a7fe2835c
integration test for multiline commit message
2022-03-17 19:13:40 +11:00
Jesse Duffield
bff5351ab3
better naming
2022-03-17 19:13:40 +11:00
Jesse Duffield
d991d74b06
add commit message controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
120078f011
use PopContext
2022-03-17 19:13:40 +11:00
Jesse Duffield
ecaff7fc6c
add commit files controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
85f2319897
refactor custom commands panel
2022-03-17 19:13:40 +11:00
Jesse Duffield
c685a413c9
stash controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
a643957f89
include stash in commitish controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
e842d1bc9e
move git flow
2022-03-17 19:13:40 +11:00
Jesse Duffield
8a555dd62e
refactor
2022-03-17 19:13:40 +11:00
Jesse Duffield
bef26b9634
add common commit controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
574c5ca0de
add subcommits controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
1253100431
cleanup
2022-03-17 19:13:40 +11:00
Jesse Duffield
eab00de273
reflog controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
371b8d638b
more consistent naming
2022-03-17 19:13:40 +11:00
Jesse Duffield
55af07a1bb
fix CI
2022-03-17 19:13:40 +11:00
Jesse Duffield
33a223e981
remove dead code
2022-03-17 19:13:40 +11:00
Jesse Duffield
943a8e83da
ensure we retain state when returning to submodule parent
2022-03-17 19:13:40 +11:00
Jesse Duffield
94d66b267d
defend against view not yet having a context defined against it
2022-03-17 19:13:40 +11:00
Jesse Duffield
41527270ed
appease linter
2022-03-17 19:13:40 +11:00
Jesse Duffield
3188526ecb
fix cheatsheet crash
2022-03-17 19:13:40 +11:00
Jesse Duffield
722410aded
refactor controllers
2022-03-17 19:13:40 +11:00
Jesse Duffield
b93b8cc00a
controller for viewing sub commits
2022-03-17 19:13:40 +11:00
Jesse Duffield
cd31a762b9
rename OSCommand field to os
2022-03-17 19:13:40 +11:00
Jesse Duffield
d82f175e79
refactor contexts
2022-03-17 19:13:40 +11:00
Jesse Duffield
145c69d9ae
working again
2022-03-17 19:13:40 +11:00
Jesse Duffield
482bdc4f1e
more refactoring
2022-03-17 19:13:40 +11:00
Jesse Duffield
8e3484d8e9
add global controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
226985bf76
refactor keybindings
2022-03-17 19:13:40 +11:00
Jesse Duffield
2db4636815
no more indirection
2022-03-17 19:13:40 +11:00
Jesse Duffield
2a1e3faa0c
resetting controllers on new repo
2022-03-17 19:13:40 +11:00
Jesse Duffield
eb056576cf
fix integration test
2022-03-17 19:13:40 +11:00
Jesse Duffield
c703cd8f88
fix suggestions panel
2022-03-17 19:13:40 +11:00
Jesse Duffield
0a8cff6ab6
some more refactoring
2022-03-17 19:13:40 +11:00
Jesse Duffield
e2f5fe1016
pretty sure we can rely on our views existing before our contexts do
2022-03-17 19:13:40 +11:00
Jesse Duffield
182c999ee0
fix linting
2022-03-17 19:13:40 +11:00
Jesse Duffield
b5515da00b
move commit files context into new structure
2022-03-17 19:13:40 +11:00
Jesse Duffield
c084abb378
move more view model logic into the files view model
2022-03-17 19:13:40 +11:00
Jesse Duffield
8ea7b7a62e
migrate files context to new structure
2022-03-17 19:13:40 +11:00
Jesse Duffield
09dc160da9
cleaning up
2022-03-17 19:13:40 +11:00
Jesse Duffield
e187293456
moving more into controllers package
2022-03-17 19:13:40 +11:00
Jesse Duffield
b04038d08f
no need to invoke sync controller here
2022-03-17 19:13:40 +11:00
Jesse Duffield
55b393c929
always fast forward
2022-03-17 19:13:40 +11:00
Jesse Duffield
f0c81ea6dc
remove redundant popup checks
2022-03-17 19:13:40 +11:00
Jesse Duffield
f97de692e3
move helpers into their own struct
2022-03-17 19:13:40 +11:00
Jesse Duffield
2692637fbe
standardise naming
2022-03-17 19:13:40 +11:00
Jesse Duffield
77d0732fa8
add actions abstraction
2022-03-17 19:13:40 +11:00
Jesse Duffield
51547e3822
move all refresh code into the one file
2022-03-17 19:13:40 +11:00
Jesse Duffield
e363606fb6
move context keys into context package
2022-03-17 19:13:40 +11:00
Jesse Duffield
138be04e65
refactor contexts code
2022-03-17 19:13:40 +11:00
Jesse Duffield
1a74ed3214
avoid deadlock
2022-03-17 19:13:40 +11:00
Jesse Duffield
cb0d3a480a
use type switch instead of type key
2022-03-17 19:13:40 +11:00
Jesse Duffield
a2318d75b5
fix some things
2022-03-17 19:13:40 +11:00
Jesse Duffield
1dd7307fde
start moving commit panel handlers into controller
...
more
and more
move rebase commit refreshing into existing abstraction
and more
and more
WIP
and more
handling clicks
properly fix merge conflicts
update cheatsheet
lots more preparation to start moving things into controllers
WIP
better typing
expand on remotes controller
moving more code into controllers
2022-03-17 19:13:40 +11:00
Jesse Duffield
a90b6efded
start refactoring gui
2022-03-17 19:13:40 +11:00
Jesse Duffield
fa8571e1f4
rename field
2022-03-17 19:01:28 +11:00
David Roman
d8d0d4686d
Only read env once when recording dirs
2022-03-17 19:01:28 +11:00
David Roman
b8fc829f86
Record current directory on switch
2022-03-17 19:01:28 +11:00
Jesse Duffield
950bb5090d
Update README.md
2022-03-17 18:08:26 +11:00
Ram Bhosale
7be25a105d
allow skipping confirmation prompt after opening subprocess
2022-03-17 17:52:31 +11:00
Jesse Duffield
28c9d85141
fix tests
2022-03-16 20:52:49 +11:00
tiwood
f0d0d45ba7
refactor: 💡 Use new approach introduced via #1637
...
fix: 🐛 The root URI for Azure DevOps repositories contains _git
refactor so that we don't have conditional logic based on service definition
no need for this commend anymore
add comment
Fixed RegEx for HTTP remote git URL
Added Tests
pretty sure we can do this safely
2022-03-16 20:52:49 +11:00
Moritz Haase
08ee3309cb
docs: Let 'Tag' badge in README.md link to Github 'Releases' page
...
Clicking the badge that shows the current tag (i.e. release) will now direct you
to the 'Releases' page.
2022-03-16 20:44:49 +11:00
Moritz Haase
7544d853fc
docs: Remove 'GolangCI' badge from README.md
...
The service has apparently closed down some time ago.
See: https://medium.com/golangci/golangci-com-is-closing-d1fc1bd30e0e
2022-03-16 20:44:49 +11:00
Francisco Miamoto
ca8180e1b7
Use editFileAtLine method for line by line panel
2022-03-16 20:43:53 +11:00
Jesse Duffield
f53b10072d
open code in existing window
2022-03-16 19:55:58 +11:00
Jesse Duffield
11acac0091
more explicit
2022-03-16 19:55:58 +11:00
Luka Markušić
866f4b9f0e
Support line offset for most common editors by default
2022-03-16 19:55:58 +11:00
Jesse Duffield
f56988039a
ignore current user language when generating cheatsheets
2022-03-16 19:46:11 +11:00
Akash Soedamah
7e6b43d13b
Just spotted some small typos in NL translation
...
I'm learning the LazyGit keybindings right now
2022-03-16 19:46:11 +11:00
Daniel Kiss
f5a5b7f966
Add unstagedChangesColor config option
2022-03-16 19:21:39 +11:00
Moritz Haase
91dab7fef9
docs: Update 'VS Code launch configuration' in contribution guide
...
To simplify debugging via VS Code, add '--debug' argument to example launch
configuration. Also, reword the hint regarding the 'console' key slightly. It
has apparently been available for a long time in stable releases and is also
listed in the documentation. It is however, still marked as an experimental
feature, even in the current release v1.65.2.
See: https://code.visualstudio.com/updates/v1_5#_launch-debug-target-in-integrated-terminal
See: https://code.visualstudio.com/Docs/editor/debugging#_launchjson-attributes
2022-03-15 19:42:52 +11:00
Moritz Haase
75e654634f
docs: Update link to GoDoc in README.md to use HTTPS instead of HTTP
2022-03-15 19:42:23 +11:00
Moritz Haase
c9f1a40ffa
docs: Minor formatting fixes for README.md
...
Running 'mdformat' on README.md adds and removes a few line breaks to improve
readability. Also, '$' doesn't need to be escaped.
2022-03-15 19:42:23 +11:00
Moritz Haase
eb182abf48
docs: Fix typos in README.md
2022-03-15 19:42:23 +11:00
MATSUDA Takashi
2c7c99522b
chore: go mod vendor
2022-03-15 13:31:11 +11:00
MATSUDA Takashi
a9fa3b2af1
chore: go get github.com/gdamore/tcell/v2@2a1a1b58
2022-03-15 13:31:11 +11:00
Jesse Duffield
f4011643dd
whoops
2022-02-05 19:14:08 +11:00
Mark Kopenga
f8b8307a29
Merge pull request #1757 from bnoctis/i18n/polish-intro
...
Fix & polish Chinese intro message
2022-02-03 10:21:29 +01:00
Blair Noctis
471fe313d8
fix & polish Chinese intro message
...
- Fix first sentence of 3), #1756
- Use 你 instead of 您 to pose a closer feel, as fellow programmers
- Polish a little so it feels more natural
2022-02-02 18:59:15 +08:00
Matt Cles
9adf4a1908
Add shared function for loading map of custom colors
2022-02-01 18:55:45 +11:00
Matt Cles
4df7646654
Add configurable colors for branch prefixes
...
Branches can now be colored based on their prefix, if it matches
a user defined prefix in the config file. If no user defined
prefix matches, then it will fallback to the defaults: green for
'feature', yellow for 'bugfix', and red for 'hotfix'. All
remaining branches will be set to the default text color.
2022-02-01 18:55:45 +11:00
Mark Kopenga
c7c4a375a9
Merge pull request #1750 from mark2185/fix-issue-template
...
'git-rev parse' should be 'git rev-parse'
2022-01-31 19:24:20 +01:00
Luka Markušić
a2fd3541d5
'git-rev parse' should be 'git rev-parse'
2022-01-31 18:07:35 +01:00
Jing Mi
15ca38ba2e
Update README.md
...
Use `go install` instead of `go get` to install as `$GOPATH/bin/lazygit`, since using `go get` to install binary is deprecated
2022-01-31 08:59:55 +11:00
Jesse Duffield
e0ae134ee4
generate snapshot for expected dir in separate tmp dir
2022-01-29 00:17:32 +11:00
Jesse Duffield
1d90e1b565
add submodule integration tests
2022-01-29 00:17:32 +11:00
Jesse Duffield
1b09674ce8
simplify submodule remove
2022-01-29 00:17:32 +11:00
Jesse Duffield
d13a648132
ensure stash panel refreshes
2022-01-28 20:07:30 +11:00
Jesse Duffield
bed185eb28
stop retrying due to index lock for now
2022-01-27 21:25:04 +11:00
Jesse Duffield
84a1992055
better locking of merge panel state
2022-01-27 21:25:04 +11:00
Jesse Duffield
7f85bf5563
Update CONTRIBUTING.md
2022-01-27 19:32:30 +11:00
Jesse Duffield
3e21143a0e
add debugging section to contributor guide
2022-01-27 19:30:25 +11:00
Jesse Duffield
fa2e7ae1e7
show only merge conflict files when there are merge conflicts
2022-01-26 20:28:32 +11:00
Jesse Duffield
5a3f81d1f7
select current bisect commit even if bisect was started on another branch
2022-01-26 19:29:17 +11:00
Jesse Duffield
ebbdf829e7
fix panic on rebase
2022-01-26 17:20:58 +11:00
Jesse Duffield
5e6e1617aa
add another bisect integration test
2022-01-26 16:52:20 +11:00
Jesse Duffield
5e9cfab283
better rendering of bisect markets in commits panel
2022-01-26 16:52:20 +11:00
Jesse Duffield
ca7cfc3232
only show commits from start ref if bad commit is reachable from there
2022-01-26 16:52:20 +11:00
Jesse Duffield
dc765c4166
add a file close that was missed
2022-01-26 14:50:47 +11:00
Jesse Duffield
c8cc18920f
improve merge conflict flow
2022-01-26 14:50:47 +11:00
Jesse Duffield
ce3bcfe37c
fix reflog failing to properly refresh
2022-01-26 10:58:33 +11:00
Jesse Duffield
f4ddf2f0d4
redo commit revert integration test
2022-01-26 09:23:55 +11:00
Jesse Duffield
54b1bc31cd
allow running integration tests at original speed
2022-01-26 09:23:55 +11:00
glendsoza
eb57e3ead0
Fixed the issue with linting
2022-01-26 09:04:12 +11:00
glendsoza
0caa391c4d
Changes as per review
2022-01-26 09:04:12 +11:00
glendsoza
0c6bdac2f7
Changes as per review
2022-01-26 09:04:12 +11:00
glendsoza
257e222f8d
ISSUE 1706: Ask confirmation before reverting a commit
2022-01-26 09:04:12 +11:00
Mikael Elkiaer
874e230aef
run go fmt
2022-01-25 23:23:55 +11:00
Mikael Elkiaer
4da5795ef1
fixed indentation by swapping spaces for tabs
2022-01-25 23:23:55 +11:00
Mikael Elkiaer
03c9acad26
add tests specific for URL escaping in PRs
2022-01-25 23:23:55 +11:00
Mikael Elkiaer
d53322675d
update unit tests not expecting url escaping
2022-01-25 23:23:55 +11:00
Mikael Elkiaer
ae18ad5b66
add URL encoding in pull request branch names
2022-01-25 23:23:55 +11:00
MATSUDA Takashi
b70075eba6
go mod vendor
2022-01-25 22:54:09 +11:00
MATSUDA Takashi
e413c216ba
go get github.com/gdamore/tcell/v2@66f061b1
2022-01-25 22:54:09 +11:00
Jesse Duffield
14b9a0b647
stop skipping stash warnings
2022-01-24 19:18:09 +11:00
Jesse Duffield
58bdcbf1dd
always refresh after stash action
2022-01-24 19:18:09 +11:00
Jesse Duffield
88d685df53
better bisect script
2022-01-23 14:41:48 +11:00
Jesse Duffield
61ccc1efd2
exclude interactive rebase TODO commits from commit graph
2022-01-22 15:12:24 +11:00
Jesse Duffield
5b7dd9e43c
properly resolve cyclic dependency
2022-01-22 10:48:51 +11:00
Jesse Duffield
4ab5e54139
add support for git bisect
2022-01-22 10:48:51 +11:00
Birger Skogeng Pedersen
ab84410b41
check returned error (if any) from UpdateWindowTitle
2022-01-21 23:13:39 +11:00
Birger Skogeng Pedersen
a78cbf4882
remove redundant title-setting shell command args
2022-01-21 23:13:39 +11:00
Birger Skogeng Pedersen
62a7d9bbcc
invoke title-setting shell command appropriately
2022-01-21 23:13:39 +11:00
Birger Skogeng Pedersen
555d8bbc96
set repo name as window title when loading repo, fix #1691
2022-01-21 23:13:39 +11:00
bin101
ad23bd03a0
fix: custom service usage
2022-01-21 23:13:00 +11:00
Jesse Duffield
1f923bdc4b
softer auto-generation message
2022-01-19 21:40:50 +11:00
Jesse Duffield
b5a8ecf786
update contributing docs
2022-01-18 22:06:17 +11:00
Jesse Duffield
3e80a9e886
refactor to group up more commonly used git command stuff
2022-01-18 22:01:09 +11:00
Jesse Duffield
9706416a41
the gods will judge me
2022-01-18 21:42:23 +11:00
Jesse Duffield
56f2ecb06c
another integration test
2022-01-18 21:25:52 +11:00
Jesse Duffield
d7c79ba20b
fix integration test which was actually asserting incorrect behaviour
2022-01-18 21:25:52 +11:00
Jesse Duffield
b6fb7f1365
fix integration test
2022-01-18 21:25:52 +11:00
Jesse Duffield
dbb8b17d83
add integration test for deleting a range of lines in the staging panel
2022-01-18 21:25:52 +11:00
Jesse Duffield
d019626342
do not show branch graph when in filtering mode
2022-01-17 22:00:53 +11:00
Jesse Duffield
595aca2a4b
make integration test pass
2022-01-17 19:14:59 +11:00
Jesse Duffield
2691477aff
allow sandbox mode with integration tests
2022-01-17 19:14:59 +11:00
Jesse Duffield
8ca71eeb36
add git bisect run script
2022-01-17 19:14:59 +11:00
Jesse Duffield
d3a3c8d87d
add integration test for merge conflicts resolved externally
2022-01-17 19:14:59 +11:00
Jesse Duffield
ee622d044e
add integration test for staging view
2022-01-17 19:14:59 +11:00
Jesse Duffield
99035959a1
fix merge scroll bug
2022-01-16 23:16:05 +11:00
Jesse Duffield
0092c9d08d
fix bug with subprocess
2022-01-16 03:32:09 +00:00
Jesse Duffield
befa35645e
fix bug which prevented quitting with confirm
2022-01-15 20:35:25 +11:00
Jesse Duffield
7a690f9078
appease CI
2022-01-15 15:34:01 +11:00
Jesse Duffield
dafac52a4c
see if this fixes CI linting
2022-01-15 15:34:01 +11:00
Jesse Duffield
1c84f77319
always specify upstream when pushing/pulling
2022-01-15 15:34:01 +11:00
Jesse Duffield
8d8bdb948b
avoid deadlock in merge panel
2022-01-15 14:15:41 +11:00
Jesse Duffield
cdcfeb396f
stop refreshing the screen so much
2022-01-15 14:15:41 +11:00
Jesse Duffield
f5b9ad8c00
add complex custom command integration test
2022-01-15 10:14:19 +11:00
Jesse Duffield
8263d15b03
fix issue where custom command would not open a menu
2022-01-15 10:14:19 +11:00
TicClick
4744b39f03
work with absolute paths when invoked with --path
2022-01-09 14:35:57 +11:00
Jesse Duffield
2436ff197a
fewer panics
2022-01-09 14:14:47 +11:00
Jesse Duffield
3b30b9bba2
add integration test for rewording old commit
2022-01-09 14:14:47 +11:00
Jesse Duffield
e5096e71ab
add integration test for discarding old files
2022-01-09 14:14:47 +11:00
Jesse Duffield
ceb927fec0
fix formatting
2022-01-09 14:14:47 +11:00
Jesse Duffield
0dfd02c42d
allow rewording old commits
2022-01-09 14:14:47 +11:00
Jesse Duffield
ee15202207
add newline after message because it looks like the message doesn't appear otherwise for some reason
2022-01-09 14:09:53 +11:00
Jesse Duffield
a936c0592f
more refactoring
2022-01-09 14:09:53 +11:00
Jesse Duffield
06687c8a59
add integration test for entering credentials
2022-01-09 14:09:53 +11:00
Jesse Duffield
4d80c87736
use a string builder for credential checking
2022-01-09 14:09:53 +11:00
Jesse Duffield
267ecbe694
refactor code for handling credential requests
2022-01-09 14:09:53 +11:00
Jesse Duffield
ccf90466fa
fix test
2022-01-09 14:09:53 +11:00
Jesse Duffield
16c9b5404d
restore field
2022-01-09 14:09:53 +11:00
Jesse Duffield
18f48a43d5
add some more linters
2022-01-09 14:09:53 +11:00
Jesse Duffield
5d6d894286
fix test
2022-01-09 14:09:53 +11:00
Jesse Duffield
e4e521f58a
pass repo to struct
2022-01-09 14:09:53 +11:00
Jesse Duffield
fdf79fdeee
fix bug that caused credentials popup to be raised unexpectedly
2022-01-09 14:09:53 +11:00
Jesse Duffield
0dd1c12e2f
fix format issue
2022-01-09 14:09:53 +11:00
Jesse Duffield
364c5db19c
shorten name
2022-01-09 14:09:53 +11:00
Jesse Duffield
c9a0cc6b30
refactor
2022-01-09 14:09:53 +11:00
Jesse Duffield
3621854dc7
fix tests
2022-01-09 14:09:53 +11:00
Jesse Duffield
c6b57d9b57
WIP
2022-01-09 14:09:53 +11:00
Jesse Duffield
a7a61cdc83
rearrange
2022-01-09 14:09:53 +11:00
Jesse Duffield
ee8ff6512f
trim down gitcommand struct some more
2022-01-09 14:09:53 +11:00
Jesse Duffield
e8229f0ee0
support general git config calls
2022-01-09 14:09:53 +11:00
Jesse Duffield
610e503296
refactor git flow
2022-01-09 14:09:53 +11:00
Jesse Duffield
e92076d2c2
start removing direct calls to cmd.New from gui
2022-01-09 14:09:53 +11:00
Jesse Duffield
d9089098c3
remove field
2022-01-09 14:09:53 +11:00
Jesse Duffield
3f44eac95b
remove repo field
2022-01-09 14:09:53 +11:00
Jesse Duffield
946a35b59d
remove OSCommand field
2022-01-09 14:09:53 +11:00
Jesse Duffield
007235df23
refactor
2022-01-09 14:09:53 +11:00
Jesse Duffield
f503ff1ecb
start breaking up git struct
2022-01-09 14:09:53 +11:00
Jesse Duffield
4a1d23dc27
bump gocui
2022-01-08 16:05:11 +11:00
Pieter van Loon
7539929703
use bright colors for highlighting
2022-01-08 16:05:11 +11:00
Jesse Duffield
48a4565d1f
remove log of error now that we're returning it normally
2022-01-07 11:01:42 +11:00
Jakob Kogler
673c4a1296
also test for empty prefill after successful commit
2022-01-07 11:01:42 +11:00
Jakob Kogler
ee7a6391a8
remove redundant commit
2022-01-07 11:01:42 +11:00
Jakob Kogler
68fc6059d3
rename variable to failedCommitMessage
2022-01-07 11:01:42 +11:00
Jakob Kogler
d517531c16
test remembering the commit message for a failing commit
2022-01-07 11:01:42 +11:00
Jakob Kogler
f981255a5b
don't ignore error when commit with subprocess fails
...
If signing by GPG is enabled, the git commit command will be executed in
a subprocess, differently from when it is executed without GPG signing.
In case of an error, e.g. a failing pre-commit hook, the error needs to
be passed along, and not just ignored.
2022-01-07 11:01:42 +11:00
Jakob Kogler
beedc2553d
remember the message if commit fails
...
In case a commit fails, e.g. because a pre-commit hook returns an error,
lazygit will now remember the commit message and will suggest it during
the next commit (e.g. after fixing the error of the pre-commit hook).
2022-01-07 11:01:42 +11:00
Jesse Duffield
0d3e5e6a1d
simplify fetch
2022-01-07 10:52:51 +11:00
Jesse Duffield
93729ba61b
fix some things
2022-01-07 10:52:51 +11:00
Jesse Duffield
91fe68576c
refactor
2022-01-07 10:52:51 +11:00
Jesse Duffield
bbb5eee23a
privatise some fields
2022-01-07 10:52:51 +11:00
Jesse Duffield
05fa483f48
simplify how we log commands
2022-01-07 10:52:51 +11:00
Jesse Duffield
e524e39842
move lint into ci yaml
2022-01-04 11:12:04 +11:00
Jesse Duffield
e8a1a4ffc0
add cheatsheet check script
2022-01-04 11:12:04 +11:00
Jesse Duffield
8e66d2761e
make it clear that keybinding cheat sheets are auto-generated
2022-01-04 09:33:35 +11:00
Jesse Duffield
95b2e9540a
update tests
2022-01-04 09:07:15 +11:00
Jesse Duffield
3911575041
appease golangci-lint
2022-01-04 09:07:15 +11:00
Jesse Duffield
efa743b52e
small change
2022-01-04 09:07:15 +11:00
Jesse Duffield
6da6c1f2f2
small copy changes
2022-01-04 09:07:15 +11:00
Jesse Duffield
c82606a92a
fix broken format call
2022-01-04 09:07:15 +11:00
Jesse Duffield
194ff1630c
do dependency injection up front and in one place
2022-01-04 09:07:15 +11:00
Jesse Duffield
2cb8aff940
no more mocking command
2022-01-04 09:07:15 +11:00
Jesse Duffield
25195eacee
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
ad9b2df104
more test refactoring
2022-01-04 09:07:15 +11:00
Jesse Duffield
9c4a819683
refactor sync test
2022-01-04 09:07:15 +11:00
Jesse Duffield
38bc48312e
refactor files_test.go
2022-01-04 09:07:15 +11:00
Jesse Duffield
547e0153ec
stash and tags loaders
2022-01-04 09:07:15 +11:00
Jesse Duffield
44b6d26b10
move remotes loader into loaders package
2022-01-04 09:07:15 +11:00
Jesse Duffield
d69ce7a529
move reflog commit loader into loaders package
2022-01-04 09:07:15 +11:00
Jesse Duffield
9b2b0fc122
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
96c2887fd0
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
66e840bc3f
more refactoring
2022-01-04 09:07:15 +11:00
Jesse Duffield
5b35724243
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
b028f37ba8
updating specs
2022-01-04 09:07:15 +11:00
Jesse Duffield
1fc0d786ae
better typing for rebase mode
2022-01-04 09:07:15 +11:00
Jesse Duffield
9d4ff6b465
fix logging
2022-01-04 09:07:15 +11:00
Jesse Duffield
95f4ceea34
refactor
2022-01-04 09:07:15 +11:00
Jesse Duffield
43a4fa970d
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
192a548c99
refactoring the config struct
2022-01-04 09:07:15 +11:00
Jesse Duffield
01ea5813a8
align Gui struct with GitCommand
2022-01-04 09:07:15 +11:00
Jesse Duffield
03b946cc8f
no more config in git command struct
2022-01-04 09:07:15 +11:00
Jesse Duffield
18ab086126
introduce Common struct for passing around common stuff
2022-01-04 09:07:15 +11:00
Jesse Duffield
b4c078d565
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
157dd309f7
fix integration test
2022-01-03 15:26:53 +11:00
Jesse Duffield
9ef65574db
refactor to rename pull_request to hosting_service and apply SRP
2021-12-29 09:01:06 +11:00
Jesse Duffield
f89747451a
allow opening a commit in the browser
2021-12-29 09:01:06 +11:00
Francisco Miamoto
8a76b5a4ee
use custom handler only for branch commits context
2021-12-28 15:54:19 +11:00
Francisco Miamoto
1a7d0cd7ae
add binding to go to bottom on lists
...
Related to #1584
2021-12-28 15:54:19 +11:00
Francisco Miamoto
2696a63a0a
fix pushTag test by adding extra enter
2021-12-26 17:08:31 +11:00
Francisco Miamoto
8c8b925b3a
set tag index directly
...
We can do this since they are already sorted by date created.
2021-12-26 17:08:31 +11:00
Francisco Miamoto
b8735cc609
fix tags integration tests
2021-12-26 17:08:31 +11:00
Francisco Miamoto
517dab7d05
add annotated tag integration test
2021-12-26 17:08:31 +11:00
Francisco Miamoto
e5f0301c66
update docs on integration tests
...
The instructions provided were not working as expected.
2021-12-26 17:08:31 +11:00
Francisco Miamoto
eff6c4283b
change formatting for menu items
2021-12-26 17:08:31 +11:00
Francisco Miamoto
7888ff6cb9
set show cancel as true for tag menu
2021-12-26 17:08:31 +11:00
Francisco Miamoto
e7a005f44d
update translations to match conventions
2021-12-26 17:08:31 +11:00
Francisco Miamoto
3e58797096
show tag menu for creation on tags tab
2021-12-26 17:08:31 +11:00
Francisco Miamoto
b1d6ccddfb
support creating annotated tags
2021-12-26 17:08:31 +11:00
Jesse Duffield
4df003cc44
handle ssh protocol
2021-12-26 17:05:05 +11:00
Jesse Duffield
d9db5ccfbe
refactor to use regex for matching git service URL
2021-12-26 16:48:23 +11:00
Jesse Duffield
7bc8b96aba
add FindNamedMatches function in utils
2021-12-26 16:48:23 +11:00
Marius Bergmann
38743ec99f
Suggest existing remote for non-tracking branch
...
Currently, when pushing or pulling a branch that has no tracking remote,
lazygit suggests the (hard-coded) remote named 'origin'. However, a
repository might not have a remote with this name, in which case the
suggestion makes no sense. This happens to me quite regularly when I
choose a more meaningful name than 'origin' for a remote.
This change keeps the current behavior by suggesting 'origin' when there
is either a remote with that name or no remote at all. However, when
'origin' does not exist, the name of the first remote is suggested.
Suggest existing remote for non-tracking branch
Currently, when pushing or pulling a branch that has no tracking remote,
lazygit suggests the (hard-coded) remote named 'origin'. However, a
repository might not have a remote with this name, in which case the
suggestion makes no sense. This happens to me quite regularly when I
choose a more meaningful name than 'origin' for a remote.
This change keeps the current behavior by suggesting 'origin' when there
is either a remote with that name or no remote at all. However, when
'origin' does not exist, the name of the first existing remote is
suggested.
2021-12-26 15:47:58 +11:00
justinsb
630de34bf2
Use "reword" for amending a commit message everywhere
...
We were inconsistent about "rename" vs "reword" for commits. reword
is the term used in git itself (for example, in rebase).
2021-12-25 22:34:41 +11:00
Tsvetomir Bonev
fca2f90f57
chore: add funtoo linux instructions
2021-12-25 22:26:46 +11:00
Mark Sagi-Kazar
fdf0d4a2c3
implement signoff
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-25 12:01:55 +11:00
Mark Sagi-Kazar
b4ea565c99
add signoff config
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-25 12:01:55 +11:00
Cokile
76e6745526
fix typo
2021-12-25 11:54:27 +11:00
Cokile
3771f9c98b
support config unified color for commit authors
2021-12-25 11:54:27 +11:00
Chris Burgin
4f627e5d27
wrap branch names in quotes
2021-12-25 11:50:06 +11:00
Erik Scrafford
089e3bf4fe
change branch regex to only grab the first remote on each line of branch command
2021-12-23 19:30:47 +11:00
Mark Kopenga
d5c1cfda4b
Merge pull request #1624 from sirodoht/fix-filetree-docs
...
Fix `showFileTree` default value in docs
2021-12-13 14:34:30 +01:00
Theodore Keloglou
3926d0f278
fix show filetree default value in docs
2021-12-13 13:28:14 +00:00
Jesse Duffield
18283ad41b
add popup handler for easier testing
2021-12-06 22:37:28 +11:00
Jesse Duffield
1996eddd91
more efficient context diff size changing
2021-12-06 22:37:28 +11:00
DerTeta
de0e885c65
Refresh staging- or patch building panel when rendering their respective context
2021-12-06 22:37:28 +11:00
DerTeta
f7ffbbd72a
Add a menu entry and keybinding to { for decreasing the context size
2021-12-06 22:37:28 +11:00
DerTeta
0fbde05928
Add a menu item and keybinding to } to increase the context size
2021-12-06 22:37:28 +11:00
DerTeta
ba844c18a5
Add the DecreaseContextInDiffView function
2021-12-06 22:37:28 +11:00
DerTeta
e1cf6912db
Add the IncreaseContextInDiffView function
2021-12-06 22:37:28 +11:00
DerTeta
c99d373e13
Use DiffContextSize in ShowStashEntryCmdStr
2021-12-06 22:37:28 +11:00
DerTeta
ecfafb6fbe
Use DiffContextSize in ShowCmdStr
2021-12-06 22:37:28 +11:00
DerTeta
14d9e776be
Use DiffContextSize in ShowFileDiffStr
2021-12-06 22:37:28 +11:00
DerTeta
ca88620e8f
Use DiffContextSize in WorkTreeFileDiffCmdStr
2021-12-06 22:37:28 +11:00
DerTeta
9feaf5d70f
Add the DiffContextSize setting to GitConfig
...
It defaults to 3 lines, which is the default value for git.
2021-12-06 22:37:28 +11:00
DerTeta
3e3151f86a
Fix: Don't access a view if it's nil
...
The way the `if` expression in `deactivateContext` was composed,
it was possible to have it to evaluate to `true` even though the
`view` variable was `nil`.
As far as I can tell, this seems to be only possible during tests.
Nonetheless, I think the expression looks more "correct" this way.
2021-12-06 22:37:28 +11:00
alextrastero
28cdcddb0a
Update README.md
...
add a link to ubuntu installation instructions
2021-12-01 18:00:50 +11:00
Jesse Duffield
02bf6a5c17
fix delta again
2021-11-22 21:07:04 +11:00
Mark Kopenga
8abc953582
Merge pull request #1581 from black-desk/translate
...
fix chinese translate
2021-11-16 11:29:21 +01:00
black_desk
9c4f837d45
fix chinese translate
2021-11-16 17:06:46 +08:00
Jesse Duffield
2f45db8f7c
fix scrolling in sub commits panel
2021-11-10 08:54:14 +11:00
Jesse Duffield
3fb478a30e
add tests
2021-11-07 13:32:36 +11:00
Jesse Duffield
5d12a6bf99
restore some code that was erroneously removed
2021-11-07 13:32:36 +11:00
Jesse Duffield
1d40d03bb2
refactor
2021-11-05 07:58:21 +11:00
Jesse Duffield
9a9e3d506d
more consistent rendering
2021-11-05 07:58:21 +11:00
Jesse Duffield
06ca71e955
fix bug
2021-11-05 07:58:21 +11:00
Jesse Duffield
308a3b51b3
some more throttling stuff
2021-11-05 07:58:21 +11:00
Jesse Duffield
ccd80a0e4b
add menu options for log stuff
2021-11-05 07:58:21 +11:00
Jesse Duffield
37be9dbea1
support scrolling left and right
2021-11-05 07:58:21 +11:00
Jesse Duffield
f6ec7babf5
add some config
2021-11-05 07:58:21 +11:00
Jesse Duffield
802cfb1a04
render commit graph
2021-11-05 07:58:21 +11:00
Jesse Duffield
2fc1498517
some refactoring in anticipation of the graph feature
2021-11-01 10:03:49 +11:00
Jesse Duffield
7a464ae5b7
add graph algorithm
2021-11-01 10:03:49 +11:00
Jesse Duffield
927ee63106
support aborting a merge or rebase with esc
2021-11-01 09:18:30 +11:00
Jesse Duffield
9989c96321
better formatting
2021-10-31 22:33:39 +11:00
Jesse Duffield
f91892b8f1
fix truncation
2021-10-30 20:19:40 +11:00
Jesse Duffield
72bce201df
support scrolling the list in the integrations app
2021-10-30 18:26:06 +11:00
Jesse Duffield
5df0fe0765
fix crash
2021-10-30 18:26:06 +11:00
Jesse Duffield
c47c539e12
support user-configurable author colours
2021-10-30 18:26:06 +11:00
Jesse Duffield
c96496c3a7
show author info in rebase commits
2021-10-30 18:26:06 +11:00
Jesse Duffield
7561703e8d
move author name colouring code into its own file
2021-10-30 18:26:06 +11:00
Jesse Duffield
b04b457246
fix yet another issue with indentation
2021-10-30 18:26:06 +11:00
Jesse Duffield
6457800748
fix another issue with indentation
2021-10-30 18:26:06 +11:00
Jesse Duffield
7d9461877a
fix issue with indentation
2021-10-30 18:26:06 +11:00
Jesse Duffield
e122f421e6
only use a single initial for double sized runes
2021-10-30 18:26:06 +11:00
Ryooooooga
6171690b00
Fix multibyte initial characters
2021-10-30 18:26:06 +11:00
Jesse Duffield
253504a094
associate random colours with authors
2021-10-30 18:26:06 +11:00
Jesse Duffield
f704707d29
stream output from certain git commands in command log panel
2021-10-30 18:26:06 +11:00
Jesse Duffield
01d82749b1
fix commit message prefix thingo
2021-10-25 22:40:15 +00:00
Jesse Duffield
3eb124c732
easier hiding of command log
2021-10-23 12:54:57 +11:00
Jesse Duffield
ef544e6ce9
add more suggestions
2021-10-23 12:29:52 +11:00
Jesse Duffield
629494144f
show suggestions when typing in an origin
2021-10-23 12:29:52 +11:00
Jesse Duffield
b6a5e9d615
use cached git config
2021-10-23 10:26:47 +11:00
Jesse Duffield
5011cac7ea
show filetree by default
2021-10-22 22:39:17 +11:00
Sam Burville
5df0475612
Add variable to simplify JumpToBlock keybinding
...
This removes the magic '5' and instead uses the number of windows.
2021-10-22 22:38:26 +11:00
Sam Burville
f6e316dfe5
Improve JumpToBlock keybinding functionality
...
Improve experience when yaml file has != 5 keybindings and change view
helper to use the length of the array instead of hardcoded value.
2021-10-22 22:38:26 +11:00
Sam Burville
91e8765d9c
Add JumpToBlock keybinding
...
This should allow users to decide their own keybinding for jumping
between blocks/panels.
E.g. A user could choose 5-9 instead of 1-5.
2021-10-22 22:38:26 +11:00
Jesse Duffield
80a8e9b04d
fix merge conflict scrolling
2021-10-22 22:16:52 +11:00
Jesse Duffield
2008c39516
add tests for dealing with remotes
2021-10-22 21:33:17 +11:00
Jesse Duffield
6388af70ac
simplify pull logic
2021-10-22 21:33:17 +11:00
Jesse Duffield
5ee559b896
fix issue where upstream origin and branch were quoted together
...
fix issue where upstream origin and branch were quoted together
2021-10-20 09:29:17 +11:00
Jesse Duffield
ca7252ef8e
suggest files when picking a path to filter on
...
async fetching of suggestions
remove limit
cache the trie for future use
more
more
2021-10-19 09:02:42 +11:00
Mark Kopenga
a496858c62
Merge pull request #1529 from Ryooooooga/feature/backward-compatibility
...
Improve backward compatibility
2021-10-18 18:58:46 +02:00
Ryooooooga
40bc3aa5a9
Improve backward compatibility
2021-10-18 22:44:01 +09:00
Jesse Duffield
e4888e924e
update docs
2021-10-18 22:24:51 +11:00
Jesse Duffield
71fdc5c038
better title rendering
2021-10-18 09:21:33 +11:00
Jesse Duffield
a05f22efa2
support home/end keys in editors
2021-10-17 20:14:31 +11:00
Jesse Duffield
c0cd9dd835
stop opening suggestions tab when no suggestions present
2021-10-17 20:05:09 +11:00
Jesse Duffield
305f211615
surface error when trying to set upstream
2021-10-17 09:00:08 +00:00
Jesse Duffield
d672b7342f
stop resetting scroll all the time
2021-10-17 19:45:57 +11:00
Jesse Duffield
e7c27b6f4a
small fixes
2021-10-17 06:41:21 +00:00
Jesse Duffield
345c90ac05
fix editor
2021-10-17 04:17:59 +00:00
Ryooooooga
7564e506b5
Enable/disable os specific tests at compile time
2021-10-17 11:00:20 +11:00
Ryooooooga
1e50764b4d
Fix tests
2021-10-17 11:00:20 +11:00
Ryooooooga
9619d3447f
Run tests on Windows
2021-10-17 11:00:20 +11:00
Ryooooooga
4171b7613c
Use replacer
2021-10-16 22:40:50 +11:00
Ryooooooga
92f03a7872
Escape special characters
2021-10-16 22:40:50 +11:00
Ryooooooga
2dc8396deb
Fix test
2021-10-16 22:40:50 +11:00
Ryooooooga
7b615e3186
Fix open link command in Windows
2021-10-16 22:40:50 +11:00
Adam Łyskawa
a2108362de
Update polish.go
...
Previous translation was completely unacceptable. As a native Polish speaker I consulted various Polish documentation files and translated almost all content.
My translation may contain minor errors due to the possible lack of context for some text.
2021-10-16 22:32:34 +11:00
Jesse Duffield
87e9d9bdc2
minor changes
2021-10-16 21:18:43 +11:00
Hrishikesh Hiraskar
b6454755ca
copy selected text to clipboard
2021-10-16 21:18:43 +11:00
Jesse Duffield
3621084096
small changes
2021-10-16 12:22:34 +11:00
Jesse Duffield
8c25aaa687
extra comment
2021-10-16 12:22:34 +11:00
Jesse Duffield
d02e52989e
small changes
2021-10-16 12:22:34 +11:00
mjarkk
913a2fd065
Allow having multiple config files
2021-10-16 12:22:34 +11:00
Mark Kopenga
db736896bc
Merge pull request #1501 from Ryooooooga/feature/fix-command
...
Improved command execution
2021-10-09 11:10:29 +02:00
Ryooooooga
154b6b09cb
Quote ref names and branches
2021-10-09 12:55:00 +09:00
Ryooooooga
292b780bd8
Quote branch names and remote names
2021-10-08 18:36:05 +09:00
Mark Kopenga
c421f396af
Merge pull request #1473 from black-desk/tmp
...
Improve Chinese translation
2021-10-08 09:53:48 +02:00
black_desk
a1ae2aa277
Improve Chinese translation
2021-10-08 08:49:22 +08:00
Ryooooooga
e19b4fe369
Fix git-remote commands
2021-10-06 23:20:19 +09:00
Ryooooooga
eb7531b206
Fix error prompt when new tag name starts with '--'
2021-10-06 22:57:02 +09:00
Ryooooooga
428ce2d0f2
Fix crash when new submodule url contains double quotes
2021-10-06 22:51:24 +09:00
Ryooooooga
f1fbf1e9f5
Fix crash when try to ignore tracked files
2021-10-06 22:43:30 +09:00
Sam Burville
268d4080b3
Fix text formatting
2021-09-30 01:26:05 +10:00
Jesse Duffield
2c72990838
Update pkg/theme/theme.go
2021-09-30 01:26:05 +10:00
Jesse Duffield
046edd8120
Update pkg/theme/theme.go
2021-09-30 01:26:05 +10:00
samburville
c4552aad28
Use simpler short variable declaration
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com >
2021-09-30 01:26:05 +10:00
Sam Burville
5c57c973d6
Tidy of spacing on GetDefaultConfig in user_config
2021-09-30 01:26:05 +10:00
Sam Burville
c5f7ad5adb
Make cherry pick commit color customisable
...
Two new settings in the config, which allow the cherry picked
foreground and background to be custom colors.
Issue #856
2021-09-30 01:26:05 +10:00
Ryooooooga
663c036ca5
Save patch files in TempDir
2021-09-29 22:05:58 +10:00
Jesse Duffield
c8e9d1b4fc
bump gocui
2021-09-27 19:58:24 +10:00
Jesse Duffield
ab0117c416
fix some encodings
2021-09-27 19:58:24 +10:00
Jesse Duffield
652c97d239
honour options menu press
2021-09-27 19:41:38 +10:00
Jesse Duffield
bd67bba751
Update README.md
2021-09-25 13:14:26 +10:00
Mark Kopenga
5193353020
Merge pull request #1478 from black-desk/remove-unused-strings
...
Remove unused strings
2021-09-23 22:23:52 +02:00
Mark Kopenga
a5719c530a
Merge pull request #1481 from Ryooooooga/feature/fix-remove-tracked-files
...
Fix crash on remove tracked files #1480
2021-09-21 12:18:28 +02:00
Ryooooooga
add3e8783e
Fix crash on remove tracked files #1480
2021-09-21 18:51:18 +09:00
black_desk
5eff56b557
Remove unused strings
2021-09-19 19:05:11 +08:00
Mark Kopenga
60c87b3e70
Merge pull request #1479 from black-desk/format-code
...
Format code to pass lint
2021-09-19 11:40:49 +02:00
black_desk
66d0fd2133
Format code to pass lint
2021-09-16 21:38:43 +08:00
Mark Kopenga
f44ae68e99
Merge pull request #1463 from Ryooooooga/feature/fix-delete-branch
2021-09-04 20:43:48 +02:00
Ryooooooga
57f7051590
Fix deletion of unmerged branches in languages other than English
2021-09-04 21:01:38 +09:00
Mark Kopenga
0543d43f10
Merge pull request #1459 from btwise/master
...
fix chinese translate
2021-09-02 09:27:46 +02:00
Mark Kopenga
ab8f2b7cc4
Merge pull request #1461 from mjarkk/remove-ununsed-gomod-replace
...
Remove unused dep replacement in go.mod
2021-09-02 09:19:34 +02:00
mjarkk
16dbb6f76e
remove unused dep replacement in go.mod
2021-09-02 09:13:18 +02:00
Mark Kopenga
51383f24bf
Merge pull request #1458 from codesoap/master
...
Fix misspells
2021-09-02 09:09:24 +02:00
btwise
151486dcfb
fix chinese translate
2021-09-02 12:16:53 +08:00
codesoap
c1d2aa61f3
Fix misspells
2021-09-01 22:51:24 +02:00
Dwarven YANG
63072af5bc
allow user to configure the gui language
2021-08-30 09:12:29 +10:00
Jesse Duffield
44d08edfb0
Address feedback
2021-08-25 22:23:55 +10:00
Jesse Duffield
f08fdb2873
Minor refactor
2021-08-25 22:23:55 +10:00
Ryooooooga
df4eb70ba2
Fix translations
2021-08-25 22:23:55 +10:00
Ryooooooga
6ca42ff720
Fix pick all hunks
2021-08-25 22:23:55 +10:00
Ryooooooga
a533f8e1a5
simplify merge panel logic
2021-08-25 22:23:55 +10:00
Ryooooooga
cf8ded0b79
add mergeConflict#hasAncestor
2021-08-25 22:23:55 +10:00
Ryooooooga
73548fa15f
Fix conflict resolution
2021-08-25 22:23:55 +10:00
Ryooooooga
a0e7604f61
Support git config merge.conflictStyle diff3
2021-08-25 22:23:55 +10:00
Daniel Bast
aedeba4fe3
Limit to security updates
2021-08-25 21:43:58 +10:00
Daniel Bast
7033a4bd58
Add dependabot config for dependency updates
2021-08-25 21:43:58 +10:00
Ryooooooga
c3d7de1c18
Change not to use cat command
2021-08-25 21:32:48 +10:00
Liberatys
711bd5a670
Lint
2021-08-25 20:13:50 +10:00
Liberatys
6b68f4f25d
Update as per review and add tests
2021-08-25 20:13:50 +10:00
Liberatys
89ee0a1dee
Move field names to translation
2021-08-25 20:13:50 +10:00
Liberatys
2dc6f5f079
Implement state filtering for commit files
2021-08-25 20:13:50 +10:00
Mark Kopenga
bdea3b7dcf
Merge pull request #1448 from Ryooooooga/feature/fix-open-files-in-windows
...
Fix open command in Windows #1403
2021-08-23 15:37:07 +02:00
Ryooooooga
51f05ce08b
Fix open command in Windows
2021-08-23 21:21:34 +09:00
Mark Kopenga
487ad196a7
Merge pull request #1413 from Ryooooooga/feature/edit-line
...
Make os.editCommand customizable using template
2021-08-23 10:15:38 +02:00
Ryoga
44140adb92
Update docs/Config.md
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com >
2021-08-23 08:33:05 +09:00
Mark Kopenga
508af269fb
Merge pull request #1446 from Ryooooooga/feature/fix-panic-in-merge-conflict
...
Fix panic during merge conflict #1375
2021-08-21 18:07:21 +02:00
Ryooooooga
0af0e66586
Fix panic in merge conflict
2021-08-21 18:34:30 +09:00
Ryooooooga
821a59f21d
apply suggestion for the document of editCommandTemplate
2021-08-21 01:01:34 +09:00
Ryooooooga
5ea3dc7579
add documentation of editCommandTemplate
2021-08-20 22:39:08 +09:00
Mark Kopenga
2eeff1257b
Merge pull request #1432 from black-desk/moved-submodule
...
fix moved submodule
2021-08-17 10:10:22 +02:00
Mark Kopenga
c878f34ff1
Merge pull request #1438 from Ryooooooga/feature/rename-files-with-modification
...
Fix staged renamed file with unstaged in file pane #1408
2021-08-16 17:29:08 +02:00
Mark Kopenga
f8db3592e3
Merge pull request #1440 from Ryooooooga/feature/quote-git-C-path
...
Fix stash submodule #1436
2021-08-16 16:43:12 +02:00
Ryooooooga
d073932cec
Fix stash submodule #1436
2021-08-16 23:36:16 +09:00
Ryooooooga
a2f7fcd730
Remove unused constant
2021-08-16 23:21:46 +09:00
Ryooooooga
f96674b24b
Fix error when filename contains ->
2021-08-16 23:15:37 +09:00
Ryooooooga
a553f7fb77
Fix staged renamed file with unstaged changes displays incorrectly in Files view #1408
2021-08-16 20:05:59 +09:00
Mark Kopenga
6c415d1341
Merge pull request #1434 from Ryooooooga/feature/fix-quote-in-filename
...
the patch panel would crash if the filename contained an odd number of double quotes
2021-08-16 09:52:06 +02:00
Mark Kopenga
617e8a05ee
Merge pull request #1437 from Ryooooooga/feature/fix-submodule-update
...
Fix submodule command escaping #1436
2021-08-16 09:48:50 +02:00
Ryooooooga
b21ac990ea
fix submodule command escaping #1436
2021-08-16 12:34:52 +09:00
Ryooooooga
0740409f43
fix test
2021-08-13 22:15:06 +09:00
Ryooooooga
37700908cc
fix checkout file command
2021-08-13 21:49:40 +09:00
Ryooooooga
488c43aaa2
fix crash when double quotes in filename #1433
2021-08-13 21:39:38 +09:00
black_desk
bb4fe2653b
fix moved submodule
2021-08-13 17:03:37 +08:00
Mark Kopenga
a2ee52142c
Merge pull request #1433 from black-desk/fix-space-in-filename
...
fix empty patch panel when spaces in filename
2021-08-13 10:47:40 +02:00
black_desk
66d735acb5
Update pkg/commands/files.go
...
Co-authored-by: Mark Kopenga <mkopenga@gmail.com >
2021-08-13 16:41:23 +08:00
black_desk
d51b065f2a
fix empty patch panel when spaces in filename
2021-08-13 14:02:11 +08:00
Mark Kopenga
a3a14e9ff4
Merge pull request #1423 from FoamScience/feature/colorsInMenuFromCommand
...
Support match colors in `labelFormat` entry in menuFromCommand prompts
2021-08-09 21:13:32 +02:00
mjarkk
e58376f9f7
add tests for TemplateFuncMapAddColors
2021-08-09 21:09:52 +02:00
Elwardi
e8e4fa5957
Add color functions to templates funcMaps
2021-08-09 11:52:00 +01:00
Elwardi
b5d8849c06
Support match colors in labelFormat entry in menuFromCommand prompts
2021-08-07 16:06:36 +01:00
Mark Kopenga
5d1a9639b6
Merge pull request #1416 from FoamScience/feature_menuOptions
2021-08-07 15:24:42 +02:00
mjarkk
ea136e4e77
Improve code quality
...
- Make CommandMenuEntry private
- create candidates only once we really need it
- Use only 1 buffer
- Clearify CommandMenuEntry creation fields
2021-08-06 21:50:58 +02:00
Elwardi
dcd3b7c058
Show only labels in menuFromCommand prompts
2021-08-06 18:38:26 +01:00
Mark Kopenga
fd8cb6e6d7
Merge pull request #1419 from mrgarelli/1418_bug_tests_ForceSetColorLevel
...
1418 Fixing test failure due to ColorLevel in test renderers
2021-08-06 14:30:26 +02:00
Elwardi
906ec30cac
Minor changes to menuFromCommand prompts
2021-08-06 10:53:32 +01:00
Matthew Garelli
46c146a8c1
fixed test failing due to ForceSetColorLevel in pkg/gui/style/style_test.go
2021-08-06 02:18:04 -07:00
Elwardi
a8ec044f0e
Make menuFromCommand format menu items and their description
2021-08-05 15:45:18 +01:00
Ryooooooga
ac609bd37c
fix backward compatibility
2021-08-04 18:43:34 +09:00
Ryooooooga
67cc65930a
fix out of range error
2021-08-03 22:00:28 +09:00
Ryooooooga
4f66093335
introduce edit command template to open a specifig line of a file
2021-08-03 21:42:14 +09:00
Jesse Duffield
d626bcac00
color fixups
2021-08-01 16:14:56 +10:00
Jesse Duffield
123d624141
make import explicit
2021-08-01 13:23:59 +10:00
Jesse Duffield
e798aa4b15
more color tests
2021-08-01 13:21:06 +10:00
Mark Kopenga
04e474aa66
Merge pull request #1401 from jesseduffield/switch-text-color-library
...
Switch to gookit/color for terminal text styling
2021-07-31 20:58:40 +02:00
mjarkk
0662733ad9
add tests for color changes
2021-07-31 20:53:49 +02:00
Mark Kopenga
3c78ba7ed3
Merge pull request #1409 from jesseduffield/jesse-switch-text-color-library
2021-07-31 11:02:16 +02:00
Jesse Duffield
550c0fd4dc
refactor
2021-07-31 17:56:47 +10:00
Jesse Duffield
0bc0e4ac88
more efficient
2021-07-31 17:33:20 +10:00
Jesse Duffield
117c0bd4f7
simplify code a bit
2021-07-31 17:33:13 +10:00
mjarkk
79848087bc
Switch to github.com/gookit/color for terminal colors
2021-07-30 15:14:46 +02:00
mjarkk
a3b820fb5f
add missing universal keybindings to doc
2021-07-29 14:15:26 +02:00
Mark Kopenga
de5133ff90
Merge pull request #1402 from jesseduffield/ci-build-less-binaries
...
PRs CI Build less types of go binaries
2021-07-28 15:45:51 +02:00
mjarkk
1183de151a
revert changes from bfc9881
2021-07-28 15:42:37 +02:00
mjarkk
bfc9881213
added changes that should fail the ci on windows
2021-07-28 15:41:23 +02:00
mjarkk
3db40a79fe
Sperate gh action build step
2021-07-28 15:40:06 +02:00
Jesse Duffield
62393cf28a
more treeish files
2021-07-27 21:52:42 +10:00
Jesse Duffield
ec82f8099c
update keybindings
2021-07-27 21:30:08 +10:00
Jesse Duffield
b81bac3d65
more i18n
2021-07-27 21:30:08 +10:00
Jesse Duffield
58ddbae4d1
Minor refactor
2021-07-27 21:30:08 +10:00
Denis Palashevskii
3802b563b0
Add error message if target branch not found with prompt
2021-07-27 21:30:08 +10:00
Denis Palashevskii
d1134daa53
review fixes: PR URL refactoring, target branch selection prompt
2021-07-27 21:30:08 +10:00
Denis Palashevskii
63cb304a82
Fix translations, make formatter happy
2021-07-27 21:30:08 +10:00
Denis Palashevskii
6e579dc6e4
Update localized Keybinding file
2021-07-27 21:30:08 +10:00
Denis Palashevskii
d5ec0fdcd1
Remove doubled string formatting in pull request URL generation
2021-07-27 21:30:08 +10:00
Denis Palashevskii
0a63f701e5
Apply suggestions from code review
...
Co-authored-by: Mark Kopenga <mkopenga@gmail.com >
2021-07-27 21:30:08 +10:00
Denis Palashevskii
bccf203a18
Fix menu item color
2021-07-27 21:30:08 +10:00
Denis Palashevskii
b590397dce
Update docs
2021-07-27 21:30:08 +10:00
Denis Palashevskii
755cc9f8d8
Add tests
2021-07-27 21:30:08 +10:00
Denis Palashevskii
0e6598adbd
Implement pull request options menu
2021-07-27 21:30:08 +10:00
Denis Palashevskii
f2645da16a
Extract git service URL formatting to a separate method
2021-07-27 21:30:08 +10:00
Francisco Miamoto
f8f596d097
add tests for open file cmd on linux
2021-07-27 20:28:00 +10:00
Francisco Miamoto
028cb2be2f
add extra quoting for shell cmd string on linux
...
This solves an issue where we could not open files with names that contained
spaces and single quotes.
It also solves an issue of variable expansion for files with some kind
of environment variables on the name e.g. '$USER.txt'
2021-07-27 20:28:00 +10:00
Evan Boehs
fb69bfd20d
Update english.go
2021-07-27 14:57:41 +10:00
Mark Kopenga
f4874bbb74
Merge pull request #1396 from mjarkk/fix-1385
...
branches check for split parts length
2021-07-26 11:22:33 +02:00
Mark Kopenga
eec20b845d
Merge pull request #1392 from mjarkk/parcally-fix-1385
...
Change the way file statuses are loaded
2021-07-26 11:22:14 +02:00
mjarkk
3a0a9ec33b
branches check for split parts length
2021-07-26 11:07:42 +02:00
Mark Kopenga
9b57b73f41
Merge pull request #1395 from mjarkk/allow-hex-theme-colors
...
Allow hex theme colors
2021-07-26 10:48:25 +02:00
mjarkk
4fca89bc52
Allow hex theme colors
2021-07-26 10:38:45 +02:00
mjarkk
fc76b44b45
correctly show files with special chars in commit
2021-07-23 12:04:23 +02:00
mjarkk
9a087d04eb
Change the way file statuses are loaded
...
This makes it so file statuses recived from git no longer get joined
before spliting them again.
2021-07-22 22:12:43 +02:00
Mark Kopenga
c005b0d92b
Merge pull request #1390 from FoamScience/menu_from_cmd
...
Generate menu options from a Git Command with a filter
2021-07-22 19:54:14 +02:00
mjarkk
713fae3e32
format code
2021-07-22 19:45:43 +02:00
Elwardi
148bf2c070
Add test for GenerateMenuCandidates from Custom Commands
2021-07-22 15:44:16 +01:00
Elwardi
edfb0a26b2
Refactor code around handleCustomCommandKeybinding
2021-07-20 20:59:03 +01:00
Elwardi
f70435a20f
Better format error catching in menuFromCommand prompts
2021-07-19 13:41:42 +01:00
Elwardi
b92ff3ee3f
Consider first match only in menuFromCommand prompt
2021-07-19 13:06:00 +01:00
Elwardi
f1ced5539a
Add option to format filter matches to menuFromCommand prompts
2021-07-19 11:46:29 +01:00
Elwardi
77e9ee64a4
Apply suggestions from @mjarkk for menyFromCommands
2021-07-18 18:42:42 +01:00
Elwardi
9daa47fb2d
Add docs for menuFromCommand prompts
2021-07-18 10:36:01 +01:00
Elwardi
d18c8c8dc3
Add prompt type: menuFromCommand
2021-07-18 10:36:00 +01:00
Mark Kopenga
1573a449f8
Merge pull request #1389 from mjarkk/parse-emoji-update-docs
...
Add parse github emoji to config docs
2021-07-16 21:14:21 +02:00
mjarkk
7b19c5ad95
add parse github emoji to docs
2021-07-16 21:13:01 +02:00
Mark Kopenga
b363b75534
Merge pull request #1387 from mjarkk/parse-emoji-2
...
parse github emoji config option
2021-07-16 21:01:14 +02:00
mjarkk
fc066d2f2e
parse github emoji config option
2021-07-16 14:06:01 +02:00
Davyd McColl
53ea7df655
🚚 move only the platform-specific part of log tailing into platform-specific files
2021-07-01 17:13:14 +10:00
Davyd McColl
533817bda3
🐛 should be TailLogs
2021-07-01 17:13:14 +10:00
Davyd McColl
35f1ccdb1b
♻️ temporarily bypass ignore whitespace for diff view instead of turning the toggle off completely
2021-07-01 17:13:14 +10:00
Davyd McColl
3dc3174d85
🔥 remove erroneous user_config fields
2021-07-01 17:13:14 +10:00
Davyd McColl
ae2496cf80
🎨 prefer the long switch over the short one for easier reading
2021-07-01 17:13:14 +10:00
Davyd McColl
2ac33bb83d
🎨 split out platform-dependent logging for compile-time selection
2021-07-01 17:13:14 +10:00
Davyd McColl
2b4048ebff
🐛 shouldn't hammer the file continually, have a nap instead
2021-07-01 17:13:14 +10:00
Davyd McColl
31bcd632c7
🎨 observe the error, if there is one
2021-07-01 17:13:14 +10:00
Davyd McColl
aa9ef12d43
✨ make log-watching work on windows
2021-07-01 17:13:14 +10:00
Davyd McColl
b80fafef02
🎨 properly ignore the result
2021-07-01 17:13:14 +10:00
Davyd McColl
130480555f
✨ always show whitespace in diffs when entering line-by-line staging
2021-07-01 17:13:14 +10:00
Davyd McColl
92cc6e883d
🚚 move whitespace toggle out of quitting.go
2021-07-01 17:13:14 +10:00
Davyd McColl
107503c903
🎨 alternative syntax
2021-07-01 17:13:14 +10:00
Davyd McColl
7ae106d4df
🎨 run formatter
2021-07-01 17:13:14 +10:00
Davyd McColl
16dcc8f4db
✨ implement feedback when toggling whitespace
2021-07-01 17:13:14 +10:00
Davyd McColl
eb10ddfccc
✅ add a test around ignoring whitespace
2021-07-01 17:13:13 +10:00
Davyd McColl
22a6771e51
🎨 run go fmt against the file directly ftw
2021-07-01 17:13:13 +10:00
Davyd McColl
3f96537380
✅ update test to pass in default ignore-whitespace flag (false)
2021-07-01 17:13:13 +10:00
Davyd McColl
a9f04d3925
✨ facilitate toggling whitespace in the diff view with a hotkey (c-w by default)
2021-07-01 17:13:13 +10:00
Mark Kopenga
83834a2c2e
Merge pull request #1373 from danielebra/master
...
Fix typo in random tip
2021-06-28 10:00:25 +02:00
Daniel Ebrahimian
0c3132c6f0
Fix typo in random tip
2021-06-28 11:03:54 +10:00
Cristian Betivu
b28569a593
Fix a format issue
2021-06-16 15:00:17 +10:00
Cristian Betivu
1aa45b0142
Update tests
2021-06-16 15:00:17 +10:00
Cristian Betivu
39c8577074
Use static context
2021-06-16 15:00:17 +10:00
Jesse Duffield
23285eab40
more resilient test
2021-06-16 15:00:17 +10:00
Cristian Betivu
0c2d90a444
Add comment
2021-06-16 15:00:17 +10:00
Cristian Betivu
d65c018875
Add integration test
2021-06-16 15:00:17 +10:00
Cristian Betivu
0c135515a5
Use parent view for tab navigation
2021-06-16 15:00:17 +10:00
Jesse Duffield
2b9df0ea06
fix up cheatsheet
2021-06-15 08:37:56 +10:00
Jesse Duffield
b7b30191f1
update cheatsheet
2021-06-15 08:37:10 +10:00
Stefan Teunissen
7d1b76a349
Update dutch.go
2021-06-15 08:37:03 +10:00
Emiliano Ruiz Carletti
40f10c3388
Update config.md
2021-06-15 08:31:07 +10:00
Emiliano Ruiz Carletti
01e4467d76
Add test cases for pull mode
2021-06-15 08:31:07 +10:00
Emiliano Ruiz Carletti
b4e6850f98
Fix wrong ff-only configuration
2021-06-15 08:31:07 +10:00
Emiliano Ruiz Carletti
c57a0077d0
Read pull mode from gitconfig lazily
2021-06-15 08:31:07 +10:00
Emiliano Ruiz Carletti
46e500dc28
Revert "Read pull mode from git configuration"
...
This reverts commit e69e240a31 .
2021-06-15 08:31:07 +10:00
Emiliano Ruiz Carletti
d7865b3882
Read pull mode from git configuration
2021-06-15 08:31:07 +10:00
Jesse Duffield
0aad68acf0
Merge branch 'btwise-master'
2021-06-15 08:25:24 +10:00
Jesse Duffield
4969e9ce0a
gofmt
2021-06-15 08:25:07 +10:00
Jesse Duffield
17770b9f9b
go mod vendor
2021-06-15 08:13:45 +10:00
Jesse Duffield
3dd88d6138
bump dependencies
2021-06-15 08:12:38 +10:00
Jesse Duffield
ce7cbe58a0
naming change
2021-06-14 18:17:08 +10:00
Andrei Yangabishev
7588d5290b
ShowTotal flag
2021-06-10 12:43:05 +03:00
Jesse Duffield
9fdf92b226
more refactoring
...
WIP
WIP
2021-06-06 09:12:49 +10:00
Jesse Duffield
93bf691fd6
refactoring
2021-06-06 09:12:49 +10:00
Jesse Duffield
82022615dd
bump tcell
2021-06-06 09:12:42 +10:00
Jesse Duffield
fb395bca6e
support reverting merge commits
2021-06-05 22:15:51 +10:00
Jesse Duffield
f91adf026b
fix lbl scrolling
2021-06-05 13:54:05 +10:00
Jesse Duffield
6d91661d5e
prevent closure issue
2021-06-05 13:54:05 +10:00
Jesse Duffield
90983aae65
not importing regexp
2021-06-05 13:53:25 +10:00
Jesse Duffield
f71b23b890
more explicit
2021-06-05 13:53:25 +10:00
Cristian Betivu
05a23f0e1e
Discard value after END marker
2021-06-05 13:53:25 +10:00
Cristian Betivu
fd38ad8096
More generic merge conflict detection
2021-06-05 13:53:25 +10:00
Jesse Duffield
d502c43ae8
fix tests
2021-06-05 10:58:36 +10:00
Jesse Duffield
0df02dacc2
minor changes
2021-06-05 10:58:09 +10:00
caojoshua
3258c24fb3
Better english for Configuring File Editing.
2021-06-05 10:58:09 +10:00
caojoshua
e7c657fba0
Docs for EditCommand.
2021-06-05 10:58:09 +10:00
caojoshua
60468d2e17
Edit command as user OS config option
2021-06-05 10:58:09 +10:00
Robert Verst
cb78cf7de4
Simplify sorting of git tags by using git's functions
2021-06-05 10:56:46 +10:00
Robert Verst
94b52af661
Remove config, make default sort order descending
2021-06-05 10:56:46 +10:00
Robert Verst
472288c81b
Add user config to change the sort order of tags
2021-06-05 10:56:46 +10:00
Jesse Duffield
258eedb38c
refactor
2021-06-02 20:33:52 +10:00
Jérémy Pagé
bc044c64b2
Remove origin prefix when creating local branch based from origin
2021-05-30 15:29:56 +10:00
Harrison Jones
e478c254d4
Handle alternate merge conflict format; add tests
2021-05-30 13:50:42 +10:00
Liberatys
44f7fc6f7c
Add global binding to open recent repos
2021-05-30 13:25:44 +10:00
btwise
a13e919d3d
add chinese for i18n
2021-05-19 17:55:26 +08:00
Dawid Dziurla
f92fcfbb47
cd: remove ppa job
...
Deprecated
2021-05-07 00:08:22 +02:00
Dawid Dziurla
6ccf58c224
README: deprecate Ubuntu PPA
2021-05-07 00:06:38 +02:00
Petróczi Zoltán
9190e9beac
Fix englishIntroPopupMessage typo in english.go
2021-04-20 21:08:29 +10:00
Jesse Duffield
a99e6ba071
update release notes
2021-04-20 18:34:47 +10:00
Jesse Duffield
604ee02cd9
ignore east asian width setting to avoid broken frame rendering
2021-04-19 23:06:05 +10:00
Jesse Duffield
926a48a65b
smarter sizing of command log panel
2021-04-19 18:09:01 +10:00
Jesse Duffield
98375dc902
refactor merge panel
2021-04-18 18:58:09 +10:00
Jesse Duffield
e73de332a1
refactor line by line panel
2021-04-18 16:55:09 +10:00
Jesse Duffield
b28b2d05bd
force cursor to be at end of line when opening confirmation panel
2021-04-17 21:15:54 +10:00
Jesse Duffield
9e5f031553
bubble up tracked files in flat file view
2021-04-17 10:04:49 +10:00
Peijun Ma
dab5ba363c
Fix typo: scrool -> scroll
2021-04-14 19:11:30 +10:00
Jesse Duffield
e42387d0da
update keybindings
2021-04-12 23:40:20 +10:00
Jesse Duffield
730a03a3b2
fix race condition
2021-04-12 23:40:20 +10:00
Jesse Duffield
7d195b97c2
better squash description
2021-04-12 21:57:13 +10:00
Jesse Duffield
4fb2dba587
allow hiding random tip
2021-04-12 21:48:08 +10:00
Jesse Duffield
76697280c9
fix rendering issues caused by resizing
2021-04-12 21:48:08 +10:00
Jesse Duffield
0df6ac6140
bump gocui to fix resizing issue
2021-04-12 21:48:08 +10:00
Jesse Duffield
5453b71fd1
linting
2021-04-12 21:48:08 +10:00
Jesse Duffield
1f3070c882
fix up doc
2021-04-12 21:48:08 +10:00
Jesse Duffield
3b7e7a7f56
add random tip to command log
2021-04-12 21:48:08 +10:00
Jesse Duffield
06a8eb115c
make command log size configurable
2021-04-11 23:36:34 +10:00
Jesse Duffield
e4f0a470e9
print header for command log
2021-04-11 23:36:34 +10:00
Jesse Duffield
adee0b8ccb
add spans to i18n
2021-04-11 23:36:34 +10:00
Jesse Duffield
0bebfe454e
pull out function
2021-04-11 23:36:34 +10:00
Jesse Duffield
84b0c3df4f
ask question button
2021-04-11 22:07:29 +10:00
Jesse Duffield
764bd556f3
prettify config.md
2021-04-11 21:42:41 +10:00
Jesse Duffield
069c7c9d35
fix test
2021-04-11 17:07:49 +10:00
Jesse Duffield
393ce05860
allow focusing on command log view
2021-04-11 17:07:49 +10:00
Jesse Duffield
cf78b86cb5
more support for command log and more code reuse for contexts
2021-04-11 17:07:49 +10:00
Jesse Duffield
4f03d7733a
allow showing, hiding, and scrolling the extras panel
2021-04-11 17:07:49 +10:00
Jesse Duffield
e3a14d546a
support static boxes that go outside the available size
2021-04-11 17:07:49 +10:00
Jesse Duffield
f2007f4d95
support scrolling extras view
2021-04-11 17:07:49 +10:00
Jesse Duffield
8969464b00
log TODO content when interactive rebasing
2021-04-11 17:07:49 +10:00
Jesse Duffield
6137d66914
no need to log this
2021-04-11 17:07:49 +10:00
Jesse Duffield
6fbe660f96
full coverage for logging commands
2021-04-11 17:07:49 +10:00
Jesse Duffield
74320f0075
more logging of commands
2021-04-11 17:07:49 +10:00
Jesse Duffield
bfad972f0c
fix bug where mixed reset is actually a soft reset
2021-04-11 17:07:49 +10:00
Jesse Duffield
bb918b579a
start adding support for logging of commands
2021-04-11 17:07:49 +10:00
Jesse Duffield
e145090046
add cmdLog panel
2021-04-11 17:07:49 +10:00
Jesse Duffield
70b5c822bb
update config.md to explain situation with config paths
2021-04-11 10:25:37 +10:00
tafryn
f2df77a4f1
Fix path for Linux config file
...
The listed config file directory for Linux is incorrect.
2021-04-11 10:22:26 +10:00
Jesse Duffield
8d416634ba
update release notes
2021-04-11 10:21:53 +10:00
Jesse Duffield
9f4433d8b5
allow opening merge tool
2021-04-11 10:21:53 +10:00
Jesse Duffield
2d8f7d2a7b
better way of scrolling to a merge conflict
2021-04-11 10:21:53 +10:00
Jesse Duffield
a9fbc9eda1
fix merge conflict panel not rendering
2021-04-11 10:21:53 +10:00
Jesse Duffield
e092da5f78
pause background threads when running subprocess
2021-04-10 12:16:45 +10:00
Jesse Duffield
e42e7e5cbd
fix commit amend
2021-04-10 11:54:38 +10:00
Jesse Duffield
93fac1f312
reduce flicker without worrying about carriage returns
2021-04-09 22:50:55 +10:00
Jesse Duffield
d5504fa5d0
potentially fix credentials issue
2021-04-09 00:39:04 +10:00
Jesse Duffield
273aba38d4
stricter CI
2021-04-09 00:15:48 +10:00
Jesse Duffield
cab0aa462c
fix crash at start
2021-04-09 00:10:35 +10:00
Jesse Duffield
b03e2270a0
revert no-flicker due to carriage return weirdness
2021-04-08 23:17:27 +10:00
Jesse Duffield
21049be233
support file tree mode on windows
2021-04-08 21:33:17 +10:00
Jesse Duffield
f89c47b83d
add test for building tree
2021-04-08 21:33:17 +10:00
Jesse Duffield
44f1f22068
close commit message panel after returning from subprocess
2021-04-08 20:17:16 +10:00
Jesse Duffield
a229547048
fix CI
2021-04-07 22:59:53 +10:00
Jesse Duffield
4f700c23ba
fix crash on first open
2021-04-07 22:59:53 +10:00
Emiliano Ruiz Carletti
b69fc19b35
fix broken link to old AUR package
2021-04-07 08:51:07 +10:00
Jesse Duffield
cd1d1996df
add 0.27 release notes
2021-04-06 19:34:32 +10:00
Jesse Duffield
963fcc1444
don't kill the index.lock file until I decide whether it's actually a good idea
2021-04-06 19:34:32 +10:00
Jesse Duffield
c6825e3d0d
skip some tests that are failing on CI for some reason
2021-04-06 19:34:32 +10:00
Jesse Duffield
20bdba15f6
amend reword test
2021-04-06 19:34:32 +10:00
Jesse Duffield
e636857057
prevent adding staged files when renaming top commit
2021-04-06 19:34:32 +10:00
Jesse Duffield
1ae8523098
restore contents on resume from subprocess
...
The proper fix will come out of this PR but it's not yet merged:
https://github.com/gdamore/tcell/pull/439/files
In the meantime I'm just going to directly edit this from my vendor
directory. If it ends up stretching a while I'll fork tcell properly
and use the fork.
2021-04-06 19:34:32 +10:00
Jesse Duffield
8eb802d3a0
fix flicker issue in main view
2021-04-06 19:34:32 +10:00
Jesse Duffield
6fc031c523
hide patch panel if we're in the commits panel and we refresh and it's now exited
2021-04-06 19:34:32 +10:00
Jesse Duffield
8c93289a72
reduce chance of deadlock by using a RW mutex on the context stack
2021-04-06 19:34:32 +10:00
Jesse Duffield
b1df0fafa2
remove junk test
2021-04-06 19:34:32 +10:00
Jesse Duffield
15046a0454
more tests for branches
2021-04-06 19:34:32 +10:00
Jesse Duffield
fb9b6314a0
ensure we're passing the right testing struct pointer around
2021-04-06 19:34:32 +10:00
Jesse Duffield
0719a3e36e
stop checking out branches when doing a rename. Instead just move the cursor to the new position
2021-04-06 19:34:32 +10:00
Jesse Duffield
a3b0efb82e
branch rename test
2021-04-06 19:34:32 +10:00
Jesse Duffield
bde324820d
more tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
bbdbbd0b1b
more tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
d4f3b292e6
even slower retries for CI
2021-04-06 19:34:32 +10:00
Jesse Duffield
39eb937830
update test descriptions
2021-04-06 19:34:32 +10:00
Jesse Duffield
fbab5bd444
do not refresh patch panel unless commit files panel is the current side panel
2021-04-06 19:34:32 +10:00
Jesse Duffield
12ca922a41
add tests for diffing
2021-04-06 19:34:32 +10:00
Jesse Duffield
f4e552f982
prevent deadlocks.
...
Hard to choose between the lock with a defer unlock in an anonymous function
vs just having an explicit unlock at the end with additional unlocks before
any early returns. The former is less error prone, but the former is much more
readable, especially if the anonymous function would have needed to return
an error value.
2021-04-06 19:34:32 +10:00
Jesse Duffield
94d26d00ba
move suggestions view behind confirmation view
2021-04-06 19:34:32 +10:00
Jesse Duffield
d80d1f8493
more tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
ace4350319
update snapshots to include tags comparison
2021-04-06 19:34:32 +10:00
Jesse Duffield
4441cf1045
fix bug with tags panel
2021-04-06 19:34:32 +10:00
Jesse Duffield
cf99b47ec0
another filter path test
2021-04-06 19:34:32 +10:00
Jesse Duffield
546eb50bac
add another filter path test
2021-04-06 19:34:32 +10:00
Jesse Duffield
5e094c8a7c
marginally better logic for searching
2021-04-06 19:34:32 +10:00
Jesse Duffield
c683f2c96c
allow opening diff menu panel when other popup is open
2021-04-06 19:34:32 +10:00
Jesse Duffield
e5a372fa2d
allow opening filter menu panel when other popup is open
2021-04-06 19:34:32 +10:00
Jesse Duffield
02f45b679f
do not double-append contexts to the stack
2021-04-06 19:34:32 +10:00
Jesse Duffield
b1cda65dcf
show error when user attempts to commit when no files are present
2021-04-06 19:34:32 +10:00
Jesse Duffield
74ce65d9ff
update keybindings
2021-04-06 19:34:32 +10:00
Jesse Duffield
ccebe5e069
change language
2021-04-06 19:34:32 +10:00
Jesse Duffield
b6ec667de0
add comment
2021-04-06 19:34:32 +10:00
Jesse Duffield
390b7ddc5e
change order of filtering and patch building so that esc key exits patch building mode first
2021-04-06 19:34:32 +10:00
Jesse Duffield
38739b16bc
add filter path test
2021-04-06 19:34:32 +10:00
Jesse Duffield
27525f1d42
support passing extra command args in integration tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
43a9dc48e0
default to not quitting when hitting esc at the top level.
...
I've been using this config option for years now so I don't think much of it,
but newcomers are going to find it annoying that hitting escape gets you out
of filtering/cherry-picking/patch-building mode, but also quits the app. So
if you want to exit all the modes you're in, you need to take care not to
press the key one too many times or the app will close.
We'll see if anybody gets mad about this change, but I think it's reasonable.
The only downside is that you won't be able to always quit by spamming the escape
key. If you're in a prompt panel, you'll need to hit escape to exit that, and
then 'q' at the top level. Or CTRL+C of course.
2021-04-06 19:34:32 +10:00
Jesse Duffield
440eb387d7
much cleaner integration test code
2021-04-06 19:34:32 +10:00
Jesse Duffield
28ffaf9348
tiny refactor
2021-04-06 19:34:32 +10:00
Jesse Duffield
d7da6dde0e
allow decimal replay speeds for integration tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
e000620cdf
fix windows compilation issue
2021-04-06 19:34:32 +10:00
Jesse Duffield
f09309485a
remove time limit
2021-04-06 19:34:32 +10:00
Jesse Duffield
e04e2ebab5
try better logging for CI
2021-04-06 19:34:32 +10:00
Jesse Duffield
91a107eb6f
retry flakey tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
5ce9e0193a
add retry logic for running git commands to avoid index.lock problems
2021-04-06 19:34:32 +10:00
Jesse Duffield
4c71c26593
speed up test
2021-04-06 19:34:32 +10:00
Jesse Duffield
abdd2455bb
allow playing and updating snapshots
2021-04-06 19:34:32 +10:00
Jesse Duffield
c33f8d2790
prevent git from prompting user if program is run directly
2021-04-06 19:34:32 +10:00
Jesse Duffield
8e9d08bc10
minor cleanup of integration code
2021-04-06 19:34:32 +10:00
Jesse Duffield
9593129e6a
remove caching of styles in gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
267da3b4db
fix issue when switching repos while files refresh
2021-04-06 19:34:32 +10:00
Jesse Duffield
c9ded489c9
bump gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
4c73d070ac
ignore clicks on invisible views
2021-04-06 19:34:32 +10:00
Jesse Duffield
121b9d0715
update comment
2021-04-06 19:34:32 +10:00
Jesse Duffield
fbb33b7abc
remove code that I'm pretty sure isn't needed
2021-04-06 19:34:32 +10:00
Jesse Duffield
7178bab6b4
only re-use repo state when jumping in and out of submodules
2021-04-06 19:34:32 +10:00
Jesse Duffield
2d7452bfaa
Revert "see how CI goes running these tests in parallel"
...
This reverts commit d271cbc138 .
2021-04-06 19:34:32 +10:00
Jesse Duffield
b0f3bfef27
see how CI goes running these tests in parallel
2021-04-06 19:34:32 +10:00
Jesse Duffield
7bc6dc5cf3
show branches context when starting in filtering mode
2021-04-06 19:34:32 +10:00
Jesse Duffield
ee7b634dce
how about using pty
2021-04-06 19:34:32 +10:00
Jesse Duffield
b0bd752180
maybe this will fix CI
2021-04-06 19:34:32 +10:00
Jesse Duffield
4d14af5d4b
more lint fixes
2021-04-06 19:34:32 +10:00
Jesse Duffield
7953e58c74
try this
2021-04-06 19:34:32 +10:00
Jesse Duffield
549d73a0b1
fix lint issues
2021-04-06 19:34:32 +10:00
Jesse Duffield
8301bba8ad
make it more likely for CI to work
2021-04-06 19:34:32 +10:00
Jesse Duffield
78f17aa541
update squash integration test
2021-04-06 19:34:32 +10:00
Jesse Duffield
7578a7466f
update searching tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
8681a6b4e2
update patch building with filetree test
2021-04-06 19:34:32 +10:00
Jesse Duffield
efed313721
update patch building 2 test
2021-04-06 19:34:32 +10:00
Jesse Duffield
795cf39ddf
update patch building test
2021-04-06 19:34:32 +10:00
Jesse Duffield
f08f248cb7
update merge conflict test
2021-04-06 19:34:32 +10:00
Jesse Duffield
3c20425649
update merge conflict undo test
2021-04-06 19:34:32 +10:00
Jesse Duffield
dfc689411b
no need for debug flag because it writes to a different log anyway
2021-04-06 19:34:32 +10:00
Jesse Duffield
2295407a45
update discard file changes test
2021-04-06 19:34:32 +10:00
Jesse Duffield
828a2acd26
update branch autocomplete integration test
2021-04-06 19:34:32 +10:00
Jesse Duffield
843b8ceab0
support tcell simulation screen
2021-04-06 19:34:32 +10:00
Jesse Duffield
011451464f
working on integration tests working again
2021-04-06 19:34:32 +10:00
Jesse Duffield
32d170621c
remove mutex lock that caused deadlock
2021-04-06 19:34:32 +10:00
Jesse Duffield
464d022a86
minor refactor
2021-04-06 19:34:32 +10:00
Jesse Duffield
6a0066253f
move recording code into gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
d627b3bfc8
more refactoring
2021-04-06 19:34:32 +10:00
Jesse Duffield
952c62df37
fix bug where searching through view got stuck if you went over the upper bound
2021-04-06 19:34:32 +10:00
Jesse Duffield
b6cc1c9492
small refactor
2021-04-06 19:34:32 +10:00
Jesse Duffield
39ae122304
more refactoring
2021-04-06 19:34:32 +10:00
Jesse Duffield
c34c6926d5
fix some things up
2021-04-06 19:34:32 +10:00
Jesse Duffield
4fe512ff3a
test
...
type safe view access
2021-04-06 19:34:32 +10:00
Jesse Duffield
4197921465
WIP
2021-04-06 19:34:32 +10:00
Jesse Duffield
4b69ab08c1
WIP
2021-04-06 19:34:32 +10:00
Jesse Duffield
f3a0058eb9
WIP
2021-04-06 19:34:32 +10:00
Jesse Duffield
633b6f596d
WIP
2021-04-06 19:34:32 +10:00
Jesse Duffield
e6274c0757
remove sentinel errors
2021-04-06 19:34:32 +10:00
Jesse Duffield
0898a7bb57
refactor
2021-04-06 19:34:32 +10:00
Jesse Duffield
fafd5234bd
refactor to get view tab context map into gui state
2021-04-06 19:34:32 +10:00
Jesse Duffield
8cb10f76e4
refresh main panel when switching between tree and flat mode
2021-04-06 19:34:32 +10:00
Jesse Duffield
f1d7f59e49
switching repos without restarting the gui
2021-04-06 19:34:32 +10:00
Jesse Duffield
bc9a99387f
refactor of contexts and filtering
2021-04-06 19:34:32 +10:00
Jesse Duffield
5289d49f75
more efficient gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
69e9f6d29d
use suspense rather than close the gui when switching to a subprocess
2021-04-06 19:34:32 +10:00
Jesse Duffield
0b42437052
fix comment
2021-04-06 19:34:32 +10:00
Jesse Duffield
ae0f750770
fix bug where you couldn't change tabs
2021-04-06 19:34:32 +10:00
Jesse Duffield
9fe7e0d63d
fix bug where we had two sets of contexts with their own state
2021-04-06 19:34:32 +10:00
Jesse Duffield
8935794e28
reset origin when clicking new item
2021-04-06 19:34:32 +10:00
Jesse Duffield
d44ff447bd
fix panic
2021-04-06 19:34:32 +10:00
Jesse Duffield
798d3e2d54
get rid of these positively ghastly method signatures
2021-04-06 19:34:32 +10:00
Jesse Duffield
e8f99c3326
better scroll support
2021-04-06 19:34:32 +10:00
Jesse Duffield
1a5f380c00
support alt-enter for inserting newline when typing commit message within the app
2021-04-06 19:34:32 +10:00
Jesse Duffield
b4827a98ca
fix commit message panel
2021-04-06 19:34:32 +10:00
Jesse Duffield
3ea5e4d4b2
allow scrolling when staging lines or building patch
2021-04-06 19:34:32 +10:00
Jesse Duffield
5f77ac8d6f
bump gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
5d0cf3d919
prioritise keybindings on editors
2021-04-06 19:34:32 +10:00
Jesse Duffield
4b1da0cf3c
bump gocui again
2021-04-06 19:34:32 +10:00
Jesse Duffield
862ced3bd0
bump gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
79b256a0fa
remove 24 bit color delta arg from docs
2021-04-06 19:34:32 +10:00
Jesse Duffield
0d6ff7d1b7
support backtab key
2021-04-06 19:34:32 +10:00
Jesse Duffield
ecc5fe24a9
get tcell to cleanup the terminal if we panic
2021-04-06 19:34:32 +10:00
Jesse Duffield
1fb2317bac
use true output mode
2021-04-06 19:34:32 +10:00
Jesse Duffield
6246eb9717
go mod tidy
2021-04-06 19:34:32 +10:00
Jesse Duffield
8f763c42b6
bum pgocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
6472bda29e
bump gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
c0cad91cb6
no more termbox
2021-04-06 19:34:32 +10:00
Jesse Duffield
1149dea4b2
stop referencing termbox
2021-04-06 19:34:32 +10:00
Jesse Duffield
6a6024e38f
use tcell via porting over code from awesome-gocui
2021-04-06 19:34:32 +10:00
Jesse Duffield
8901d11674
fix merge conflict cat issue on windows
2021-04-02 13:15:07 +11:00
Jesse Duffield
8b7f7cbc30
linting
2021-04-02 11:09:12 +11:00
Jesse Duffield
b6d0bdfa2d
another integration test
2021-04-02 11:09:12 +11:00
Jesse Duffield
44896bcd51
safer code
2021-04-02 11:09:12 +11:00
Jesse Duffield
bdf2b2d5c4
add merge conflict undo integration test
2021-04-02 11:09:12 +11:00
Jesse Duffield
035726f650
add integration UI to make the integration process easier
2021-04-02 11:09:12 +11:00
Jesse Duffield
1abb3cd566
more thorough merge conflict integration test
2021-04-02 11:09:12 +11:00
Jesse Duffield
f7772f00c4
do not jump cursor around when fixing merge conflicts
2021-04-02 11:09:12 +11:00
Jesse Duffield
216b5341ae
better handling of scrolling for conflicted files
2021-04-02 11:09:12 +11:00
Jesse Duffield
eeeef9ca86
refactor
2021-04-02 11:09:12 +11:00
Jesse Duffield
cc9293b386
add mutex to prevent crashes with merge conflicts
2021-04-02 11:09:12 +11:00
Jesse Duffield
efe43077bc
fix name
2021-04-02 11:00:15 +11:00
Jesse Duffield
949c7726d1
fix bug caused by interface
2021-04-02 11:00:15 +11:00
Jesse Duffield
0b7bda291c
remove dead code
2021-04-02 11:00:15 +11:00
Jesse Duffield
872cf0d726
hide commit files view upon losing focus because you probably don't want it lingering anyway
2021-04-02 11:00:15 +11:00
Jesse Duffield
af09223dd5
refactor
2021-04-02 11:00:15 +11:00
Jesse Duffield
7d62f103e4
big refactor to give our enums actual types
2021-04-02 11:00:15 +11:00
Jesse Duffield
9e85d37fb9
refactor to no longer call these things file changes
2021-04-02 11:00:15 +11:00
Jesse Duffield
8dee06f83a
allow toggling tree view for commit files panel
2021-04-02 11:00:15 +11:00
Jesse Duffield
82fe4aa6c0
disallow editing commit file directory
2021-04-02 11:00:15 +11:00
Jesse Duffield
50c169e0a3
better colouring for directories for when adding a patch
2021-04-02 11:00:15 +11:00
Jesse Duffield
7364525bf5
do not show commit files of another parent as added to the patch
2021-04-02 11:00:15 +11:00
Jesse Duffield
54910fdb76
refactor
2021-04-02 11:00:15 +11:00
Jesse Duffield
332a3c4cbf
file tree for commit files
2021-04-02 11:00:15 +11:00
Jesse Duffield
ac41c41809
refactor to support commit file tree
2021-04-02 11:00:15 +11:00
Jesse Duffield
96a9df04ed
Update README.md
2021-04-01 20:56:04 +11:00
Jesse Duffield
b7cc4158d5
Update Config.md
2021-04-01 20:52:56 +11:00
Jesse Duffield
2bbe6269cd
Update Config.md
2021-04-01 20:44:27 +11:00
Jesse Duffield
eb54189683
support GIT_EDITOR
2021-04-01 20:40:02 +11:00
Jesse Duffield
e8e59306fc
shell out custom commands
2021-04-01 20:25:30 +11:00
Jesse Duffield
8af3fe3b4a
faster startup
2021-04-01 09:13:29 +11:00
Jesse Duffield
3103247e8f
refactor
2021-03-30 21:57:00 +11:00
Jesse Duffield
1629a7d280
same for renames
2021-03-30 21:57:00 +11:00
Jesse Duffield
b5a5169372
expand to path when switching to tree mode
2021-03-30 21:57:00 +11:00
Jesse Duffield
4b4bfae4f4
fix background colour on selected line
2021-03-30 21:57:00 +11:00
Jesse Duffield
d5639e6e95
refactor
2021-03-30 21:57:00 +11:00
Jesse Duffield
9e67f74ca3
prevent staging directory containing files with inline merge conflicts
2021-03-30 21:57:00 +11:00
Jesse Duffield
e3ddfbf2b8
rename function
2021-03-30 21:57:00 +11:00
Jesse Duffield
1ea78c7ae7
make fields private
2021-03-30 21:57:00 +11:00
Jesse Duffield
e7af3bf55d
refactor
2021-03-30 21:57:00 +11:00
Jesse Duffield
e52cec9cdf
small refactor
2021-03-30 21:57:00 +11:00
Jesse Duffield
5bb48b51a0
rename
2021-03-30 21:57:00 +11:00
Jesse Duffield
d2e1b35eee
small fixes
2021-03-30 21:57:00 +11:00
Jesse Duffield
ef204b0adf
remove collapsed field
2021-03-30 21:57:00 +11:00
Jesse Duffield
f742434043
fix spec
2021-03-30 21:57:00 +11:00
Jesse Duffield
d3b34ce323
fix spec
2021-03-30 21:57:00 +11:00
Jesse Duffield
89c2f4f2ff
fix spec
2021-03-30 21:57:00 +11:00
Jesse Duffield
5a0f23e6d6
update cheatsheets
2021-03-30 21:57:00 +11:00
Jesse Duffield
5e05e8b62b
fix comment
2021-03-30 21:57:00 +11:00
Jesse Duffield
1f7273af23
better way to check if a node is a leaf
2021-03-30 21:57:00 +11:00
Jesse Duffield
2b8302bced
refactor
2021-03-30 21:57:00 +11:00
Jesse Duffield
1b94462410
rename some things
2021-03-30 21:57:00 +11:00
Jesse Duffield
120bb443fe
small thing
2021-03-30 21:57:00 +11:00
Jesse Duffield
6fc3c03c4b
allow configuring to show file tree on startup
2021-03-30 21:57:00 +11:00
Jesse Duffield
46b79c7c61
drop Name field from status line node
2021-03-30 21:57:00 +11:00
Jesse Duffield
4782d8aa1f
bring merge conflicts to top
2021-03-30 21:57:00 +11:00
Jesse Duffield
fe4e305410
safer code
2021-03-30 21:57:00 +11:00
Jesse Duffield
040c1fc302
more functional approach
2021-03-30 21:57:00 +11:00
Jesse Duffield
5edea5a8dc
better handling of cursor relocation
2021-03-30 21:57:00 +11:00
Jesse Duffield
d2b65537f6
handle nothing selected
2021-03-30 21:57:00 +11:00
Jesse Duffield
1183f68e19
better handling of refreshed files
2021-03-30 21:57:00 +11:00
Jesse Duffield
da6fe01eca
allow toggling on/off file tree mode
2021-03-30 21:57:00 +11:00
Jesse Duffield
c27cea6f30
more file tree improvements
2021-03-30 21:57:00 +11:00
Jesse Duffield
cd0532b4d6
allow ignoring directories
2021-03-30 21:57:00 +11:00
Jesse Duffield
c9de6c003b
support some more things
2021-03-30 21:57:00 +11:00
Jesse Duffield
418621a9ff
support discarding changes in dir
2021-03-30 21:57:00 +11:00
Jesse Duffield
f871724ae6
update wording
2021-03-30 21:57:00 +11:00
Jesse Duffield
def68ddc8f
fix bug for combining directories with single child
2021-03-30 21:57:00 +11:00
Jesse Duffield
a31db3df9c
support toggling collapsed
2021-03-30 21:57:00 +11:00
Jesse Duffield
64217a8a5b
fix spacing
2021-03-30 21:57:00 +11:00
Jesse Duffield
79079b54ea
combining nodes when only one child exists
2021-03-30 21:57:00 +11:00
Jesse Duffield
77a7619690
showing changes for directories
2021-03-30 21:57:00 +11:00
Jesse Duffield
9f2d7adb8e
more improvements
2021-03-30 21:57:00 +11:00
Jesse Duffield
07dd9c6bc8
better tree formatting
2021-03-30 21:57:00 +11:00
Jesse Duffield
45939171ea
WIP
...
start moving to new interface
WIP
WIP
WIP
WIP
WIP
2021-03-30 21:57:00 +11:00
Jesse Duffield
049849264e
defend against race condition in editors
2021-03-30 09:26:06 +11:00
Francisco Miamoto
7e0d48c2a1
fix panic for unprintable key presses
...
Checking is the associated rune of a key is printable solves our problem
of having panics whenever keys like `Home` or `Ctrl-W` are pressed.
Fixes #1175
2021-03-21 11:24:36 +11:00
Jesse Duffield
ad1468f66f
better handling of discarding files
2021-03-20 12:46:27 +11:00
Jesse Duffield
058bcddc53
fix renamed files looking wrong
2021-03-14 13:24:51 +11:00
Jesse Duffield
8288de0c84
update release notes
2021-03-13 11:46:48 +11:00
Ryooooooga
1da2afd450
Fix edit remote name message
2021-03-13 11:04:38 +11:00
Jesse Duffield
03de51747e
remove redundant addition
2021-03-13 11:03:34 +11:00
Ryooooooga
3d698cd7c1
Fix tests
2021-03-13 11:02:31 +11:00
Ryooooooga
a48cc245e7
Support multibyte characters in pane
2021-03-13 11:02:31 +11:00
Ryooooooga
9ed3a8ee05
Fix staging/unstaging filenames that starts with - or --
2021-03-13 11:02:31 +11:00
Ryooooooga
64daf1310d
Fix staging/unstaging files containing " in paths
2021-03-13 11:02:31 +11:00
Ryooooooga
e5ba0d9d9c
Support multibyte characters in Files pane
2021-03-13 11:02:31 +11:00
Ryooooooga
50e4e9d58d
fix command escaping
2021-03-13 10:49:40 +11:00
István Donkó
03b9db5e0a
Fix the linux config path (related: #913 , #1059 )
2021-03-12 12:45:48 +11:00
Jesse Duffield
043cb2ea44
reload config whenever returning to gui
2021-02-24 02:45:05 -08:00
Dawid Dziurla
a62d70fbd5
Merge pull request #1172 from jesseduffield/dawidd6-patch-1
...
gui: ReplaceAll -> Replace
2021-02-24 00:14:24 +01:00
Dawid Dziurla
053e80a08e
gui: ReplaceAll -> Replace
2021-02-24 00:09:05 +01:00
Daniel Bast
b726dcc770
Switch to Go 1.16 to support macOS arm64
2021-02-23 03:04:49 -08:00
Matthias Küch
9df133ed8c
Fix pattern in commitPrefix example
2021-02-16 13:57:28 -08:00
1jz
50dd7b00c3
add colors to differentiate action and menu commands
2021-02-16 13:52:04 -08:00
Rui Pires
ccbd2c924b
Fixed whitespace format issue
2021-02-09 14:45:33 -08:00
Rui Pires
52d5c3beeb
Added initialContent on branch rename
2021-02-09 14:45:33 -08:00
Jesse Duffield
c43416891e
update cheatsheet
2021-02-09 20:23:20 +11:00
Jesse Duffield
56a573de86
support wide characters in the editor
2021-02-08 22:55:11 +00:00
Jesse Duffield
e7fff2529c
fix lint error
2021-02-08 14:40:30 -08:00
Jesse Duffield
78867647d1
remove go-gitconfig package
2021-02-08 14:40:30 -08:00
Jesse Duffield
09f32d4f84
add secureexec file for getting around windows checking for a binary first in the current dir
2021-02-08 14:40:30 -08:00
Nick Flueckiger
6f0f70bd92
Adding setup and config
2021-02-08 14:25:24 -08:00
caquillo07
6df15ddf6e
added support for using spaces on branch names when creating new ones.
2021-02-08 14:23:54 -08:00
unknown
922c0887f1
fix type: executable not found error when there is a merge conflict on windows
2021-01-01 13:17:29 -08:00
Dawid Dziurla
d7c9243880
workflows: setup git before PPA repo updating
2020-12-24 10:32:50 +01:00
Dawid Dziurla
f42a595aba
Merge pull request #1130 from jesseduffield/dawidd6-patch-2
...
gui: ReplaceAll -> Replace
2020-12-24 10:24:49 +01:00
Dawid Dziurla
797722ec12
Merge pull request #1129 from jesseduffield/dawidd6-patch-1
...
workflows: split CD into separate jobs
2020-12-24 10:24:30 +01:00
Dawid Dziurla
bb4bf23c5c
gui: ReplaceAll -> Replace
2020-12-24 10:21:54 +01:00
Dawid Dziurla
f3aacbd253
workflows: split CD into separate jobs
2020-12-24 09:51:50 +01:00
Jeff Hertzler
106fce26b5
Update Custom_Command_Keybindings.md
2020-12-23 18:54:26 -08:00
Jesse Duffield
caf208b0a4
v24 release notes
2020-12-24 13:52:29 +11:00
Jesse Duffield
13b9a8bc9a
add integration test for branch checkout autocomplete
2020-11-28 20:48:17 +11:00
Jesse Duffield
14ce230683
refactor
2020-11-28 20:48:17 +11:00
Jesse Duffield
f31fbc10f6
soft code finding of suggestions
2020-11-28 20:48:17 +11:00
Jesse Duffield
be404068ff
support labels for suggestions which are distinct from values
2020-11-28 20:48:17 +11:00
Jesse Duffield
5671ec5f58
refactor prompt opts
2020-11-28 20:48:17 +11:00
Jesse Duffield
da3b0bf7c8
Start on supporting auto-suggestions when checking out a branch
...
switch to other fuzzy package with no dependencies
2020-11-28 20:48:17 +11:00
Yuki Osaki
90ade3225f
Add lc prefix
2020-11-28 19:19:47 +11:00
Yuki Osaki
4928d1d490
Visualize the commits for all branches
2020-11-28 19:19:47 +11:00
Kalvin Pearce
9c52eb9d6f
Add notARepository description to config docs
2020-11-28 10:51:34 +11:00
Kalvin Pearce
0a58cb2877
Fix formatting on notARepository checks
2020-11-28 10:51:34 +11:00
Kalvin Pearce
7581830e70
Add notARepository to config docs
2020-11-28 10:51:34 +11:00
Kalvin Pearce
d468866746
Add config option for notInRepo behaviour.
2020-11-28 10:51:34 +11:00
Jesse Duffield
999e170f1d
standardise how we read from the config
2020-11-28 10:45:30 +11:00
Nick Flueckiger
7513bfb13a
Implement suggestions
2020-11-28 10:42:38 +11:00
Nick Flueckiger
1f27002b84
Switch the directory check
2020-11-28 10:42:38 +11:00
Nick Flueckiger
669bfe763a
A small change that enables direct lazygit directory config
2020-11-28 10:42:38 +11:00
Davyd McColl
860370a845
👌 update as per PR commentary
2020-11-28 10:27:28 +11:00
Davyd McColl
196761a40a
🐛 should only stage all if configured to do so _and_ there are no items staged
2020-11-28 10:27:28 +11:00
Davyd McColl
26d5444919
✨ implement quick commit when no files staged, if configured to do so
2020-11-28 10:27:28 +11:00
Nathan Bell
e05c41828c
added tests and fixed bug found in tests
2020-11-25 08:41:22 +11:00
Nathan Bell
c4cce58464
Allow --follow-tags to be disabled if push.followTags is configured to false
2020-11-25 08:41:22 +11:00
Jesse Duffield
f7e6d4e724
fix updater
2020-11-22 10:00:35 +11:00
Jesse Duffield
d02e992265
Update Custom_Command_Keybindings.md
2020-11-21 17:35:51 +11:00
Jesse Duffield
3e13936e08
notify user upon copying something to clipboard
2020-11-21 17:31:08 +11:00
Jesse Duffield
a3dfcd5a95
toast notifications
2020-11-21 17:31:08 +11:00
Jesse Duffield
ce928dc6c8
Update docs/README.md
2020-11-21 14:14:40 +11:00
Nils Andresen
1dea988cd6
Added a reference to chocolatey in README
...
and also added a simple overview of documentation under docs/README.md
2020-11-21 14:14:40 +11:00
Farzad Majidfayyaz
74bb6f0012
Change copy PR mapping to <c-y> and use gui.Tr for the message
2020-11-19 09:43:51 +11:00
Farzad Majidfayyaz
79888d3bde
Add mapping to copy a pull request URL to the clipboard
2020-11-19 09:43:51 +11:00
Jaime Gomes
4e1d3e45a3
add minimum macos version 10.10 to the README
2020-11-18 08:36:50 +11:00
Jesse Duffield
682db77401
fix lint errors
2020-11-18 08:36:19 +11:00
Dawid Dziurla
6faed08d9d
workflows: clean up linting
2020-11-16 10:02:57 +11:00
Sean Stiglitz
62b200a4be
Add GolangCI action.
2020-11-16 10:02:57 +11:00
Dawid Dziurla
f7bab5fdc0
workflows: update apt cache before installing pkgs
2020-11-05 11:47:21 +01:00
Jesse Duffield
5ff0ac2816
prevent crash when removing remote with no urls
2020-11-05 21:32:08 +11:00
Dawid Dziurla
7c1889cd70
Merge pull request #1051 from jesseduffield/go-1.10-compat
...
gui: fix go-1.10 compatibility
2020-10-14 12:53:29 +02:00
Dawid Dziurla
5669cc0002
gui: fix go-1.10 compatibility
2020-10-14 12:43:31 +02:00
Dawid Dziurla
d2ea5dd8b7
workflows: don't sign commit
2020-10-14 00:01:19 +02:00
Dawid Dziurla
e0381b5920
workflows: run CD on Ubuntu 20.04
...
So we can get newer git-buildpackage
2020-10-13 23:51:40 +02:00
Dawid Dziurla
dac3978983
Merge pull request #1049 from jesseduffield/cd-update-ppa
...
workflows: update PPA repo as part of CD process
2020-10-13 23:33:19 +02:00
Dawid Dziurla
7074cc28b8
Merge pull request #1050 from jesseduffield/dawidd6-patch-1
...
utils: ReplaceAll -> Replace
2020-10-13 17:28:33 +02:00
Dawid Dziurla
327b6ad097
utils: ReplaceAll -> Replace
...
Fix compatibility with older Go compiler versions
2020-10-13 17:25:37 +02:00
Dawid Dziurla
1dc837527f
workflows: update PPA repo as part of CD process
2020-10-13 13:43:14 +02:00
Jesse Duffield
b1dd3c4866
support rebinding confirm/newline keys in editor
2020-10-13 08:21:09 +11:00
Jesse Duffield
624fb8da21
preserve width of side panel when main view split unless window is wide enough
2020-10-13 07:31:14 +11:00
nullawhale
1ff405edd8
Copy a commit message to clipboard: Changes to latest version
2020-10-12 21:04:01 +11:00
Jesse Duffield
031e97ef91
more password checks on commands that talk to the remote
2020-10-12 19:07:40 +11:00
Jesse Duffield
3df0a9f132
update in-app release notes
2020-10-12 09:08:47 +11:00
Jesse Duffield
1e79ab78dd
return default config when dealing with read only filesystem rather than create new config file
2020-10-12 08:48:28 +11:00
Jesse Duffield
1e48afeb8f
quote config file when editing
2020-10-12 08:47:12 +11:00
Jesse Duffield
b8ad1883f5
fix delta
2020-10-12 08:26:31 +11:00
band-a-prend
582fd24d78
Add SSH key passphrase prompt to pull/push from/to remote git repo
...
This commit resolves issue with absence of ssh key prompting
to pull from or push to remote git repository.
I checked lazygit with this patch for successfully pull from
and push to https://gitweb.gentoo.org/repo/proj/guru.git repository.
While for lazygit-0.23.1 I'm not able to do that.
The check for Passphrase follows the Password because of
more long time before SSH key is prompt in terminal.
Otherwise after timeout "Password" prompt is appears.
Excuse me for google translated i18n dutch lines.
Bug: https://github.com/jesseduffield/lazygit/issues/534
Signed-off-by: band-a-prend <torokhov-s-a@yandex.ru >
2020-10-10 17:58:23 +11:00
Jesse Duffield
a0963f8036
fix up intro text even more
2020-10-10 10:12:52 +11:00
Jesse Duffield
7d002474d7
fix up intro text
2020-10-10 09:58:59 +11:00
Jesse Duffield
ef77d7c608
fix submodule tab colour
2020-10-10 00:23:01 +11:00
Jesse Duffield
63f6d0c036
release notes in status panel
2020-10-10 00:23:01 +11:00
Jesse Duffield
aa5001f661
for some reason the commit files view was on top
2020-10-10 00:23:01 +11:00
Jesse Duffield
b01ea26719
fix go.mod and go.sum
2020-10-10 00:23:01 +11:00
Jesse Duffield
c1a6229c2c
install lazygit at beginning of test suite
2020-10-10 00:23:01 +11:00
Jesse Duffield
4c9ec88be5
fix mutex deadlock
2020-10-10 00:23:01 +11:00
Jesse Duffield
9011271a01
fix another panic error
2020-10-10 00:23:01 +11:00
Jesse Duffield
777ec0b36c
fix nil view keybinding panic
2020-10-10 00:23:01 +11:00
Jesse Duffield
795e4da8b8
do not put mutexes on state else we might unlock an unlocked mutex
2020-10-10 00:23:01 +11:00
Jesse Duffield
79e59d5460
add some safe goroutines
...
WIP
2020-10-10 00:23:01 +11:00
Jesse Duffield
ba4c3e5bc4
small changes
2020-10-10 00:23:01 +11:00
Jesse Duffield
88f2a66a51
store everything you need to know about a test in its directory
2020-10-10 00:23:01 +11:00
Jesse Duffield
bb081ca764
more mutex safety with staging panel
2020-10-10 00:23:01 +11:00
CI
a9049b4a82
stop using snapshots
2020-10-10 00:23:01 +11:00
CI
ae352a5d8c
configurable speeds
2020-10-10 00:23:01 +11:00
CI
e2ad503bda
stop using snapshot just store the actual resultant repo
2020-10-10 00:23:01 +11:00
CI
2657060aa2
support running integration tests in parallel
2020-10-10 00:23:01 +11:00
Jesse Duffield
2724f3888a
fix CI
2020-10-10 00:23:01 +11:00
Jesse Duffield
dc953ea680
fall back to slower speed if test fails
2020-10-10 00:23:01 +11:00
Jesse Duffield
08f8472db3
fix loop logic
2020-10-10 00:23:01 +11:00
Jesse Duffield
3f5e52f774
another integration test
2020-10-10 00:23:01 +11:00
Jesse Duffield
2e05ac0c90
paging keybindings for line by line panel
...
support searching in line by line panel
move mutexes into their own struct
add line by line panel mutex
apply LBL panel mutex
bump gocui to prevent crashing when search item count decreases
2020-10-10 00:23:01 +11:00
Jesse Duffield
40c5cd4b4b
another integration test
2020-10-10 00:23:01 +11:00
Jesse Duffield
18f8c3d00a
add merge conflicts integration test
2020-10-10 00:23:01 +11:00
Jesse Duffield
074fbf6f25
heed gocui stopping
2020-10-10 00:23:01 +11:00
Jesse Duffield
a482f20ba3
kill process if nothing happens two seconds after final event
2020-10-10 00:23:01 +11:00
Jesse Duffield
c36349f460
add another integration test
2020-10-10 00:23:01 +11:00
Jesse Duffield
485f6d5386
support configurable config
2020-10-10 00:23:01 +11:00
Jesse Duffield
778ca8e6f9
better interface
2020-10-10 00:23:01 +11:00
Jesse Duffield
b64c6a3ac7
this is so cool
2020-10-10 00:23:01 +11:00
Jesse Duffield
f76196937a
support integration testing
...
WIP
2020-10-10 00:23:01 +11:00
Jesse Duffield
ece93e5eef
support recording sessions for testing purposes
2020-10-10 00:23:01 +11:00
Jesse Duffield
37bb89dac3
type i18n
2020-10-10 00:23:01 +11:00
Jesse Duffield
7d9aa97f96
have typed default config
2020-10-10 00:23:01 +11:00
Jesse Duffield
ca31e5258f
store popup version in state not config so that we never need to write to the user config
2020-10-10 00:23:01 +11:00
Jesse Duffield
4912205adb
remove viper
...
WIP
2020-10-10 00:23:01 +11:00
Jesse Duffield
9440dcf9de
Create Integration_Tests.md
2020-10-09 23:14:17 +11:00
Jesse Duffield
0aed47737c
bump go-git to fix invalid merge error
2020-10-06 21:58:41 +11:00
Jesse Duffield
6e076472b8
switch to fork of go-git
2020-10-06 21:58:41 +11:00
kobutomo
3e15ae3211
Add error panel.
2020-10-06 21:55:01 +11:00
kobutomo
26cb209af2
Ignore "i" command if the filename is .gitignore
2020-10-06 21:55:01 +11:00
Jesse Duffield
76f7726c47
dont close over loop variables ugh I hate this language feature
2020-10-02 20:05:45 +10:00
Jesse Duffield
9763fa9997
fix windows CI
2020-10-02 08:09:42 +10:00
Jesse Duffield
7be474bd83
update keybindings
2020-10-02 08:09:42 +10:00
Jesse Duffield
30b3478611
fix test
2020-10-02 08:09:42 +10:00
Jesse Duffield
f77ce209e0
use path not name
2020-10-02 08:09:42 +10:00
Jesse Duffield
a61356d018
dont really need this
2020-10-02 08:09:42 +10:00
Jesse Duffield
2dc848506c
bulk submodule menu
2020-10-02 08:09:42 +10:00
Jesse Duffield
9125e3c0c6
stop refreshing item when at end of list
2020-10-02 08:09:42 +10:00
Jesse Duffield
86dd9d87dd
allow updating submodule
2020-10-02 08:09:42 +10:00
Jesse Duffield
da3e00823f
allow submodule init and show submodule diff with a prefix
2020-10-02 08:09:42 +10:00
Jesse Duffield
f3be2b3e68
improved command for deleting a submodule
2020-10-02 08:09:42 +10:00
Jesse Duffield
988176e073
manually update submodule url
2020-10-02 08:09:42 +10:00
Jesse Duffield
5d128adee1
add mutexes for when looping through views
2020-10-02 08:09:42 +10:00
Jesse Duffield
71d4c552af
allow updating submodule url
2020-10-02 08:09:42 +10:00
Jesse Duffield
d4ab607d0d
allow adding a submodule
2020-10-02 08:09:42 +10:00
Jesse Duffield
ea307c8d94
add more submodule commands
2020-10-02 08:09:42 +10:00
Jesse Duffield
7b4a0f20b2
add submodules context
2020-10-02 08:09:42 +10:00
Jesse Duffield
3b93b5dde4
make it easier to add a tab to a view
2020-10-02 08:09:42 +10:00
Jesse Duffield
7ddb916a18
Update README.md
2020-10-02 06:46:51 +10:00
Mrityunjay Saxena
faba40554a
Limitations Section sentence mixup corrected
...
> If you are mid-rebase, undo/redo is not supported, because the reflog doesn't enough contain information about what specific things have happened inside that rebase.
changed to
> If you are mid-rebase, undo/redo is not supported, because the reflog doesn't contain enough information about what specific things have happened inside that rebase.
2020-10-01 17:41:32 +10:00
Jesse Duffield
c12752cf53
add mutex to views array
2020-10-01 07:01:39 +10:00
Jesse Duffield
ca105692cf
fix windows build
2020-09-29 20:48:49 +10:00
Jesse Duffield
ce6f8ed1bc
move models folder into commands folder
2020-09-29 20:48:49 +10:00
Jesse Duffield
83748d78f8
fix tests
2020-09-29 20:48:49 +10:00
Jesse Duffield
72af7e4177
factor out code from git.go
2020-09-29 20:48:49 +10:00
Jesse Duffield
1767f91047
factor out code for loading models
2020-09-29 20:48:49 +10:00
Jesse Duffield
1759ddf247
move OS commands into their own package
2020-09-29 20:48:49 +10:00
Jesse Duffield
f9643448a4
move commit files
2020-09-29 20:48:49 +10:00
Jesse Duffield
91f0b0e28f
move stash panel
2020-09-29 20:48:49 +10:00
Jesse Duffield
8d2af5cc61
move file and submodule
2020-09-29 20:48:49 +10:00
Jesse Duffield
eda4619a4f
move remotes and remote branches
2020-09-29 20:48:49 +10:00
Jesse Duffield
e849ca3372
move tags
2020-09-29 20:48:49 +10:00
Jesse Duffield
630e446989
move commits model into models package
2020-09-29 20:48:49 +10:00
Jesse Duffield
44248d9ab0
pull branch model out into models package
2020-09-29 20:48:49 +10:00
Jesse Duffield
c87b2c02fa
fix tests
2020-09-29 18:21:59 +10:00
Jesse Duffield
6e80371535
tell users we're going to reset submodules
2020-09-29 18:21:59 +10:00
Jesse Duffield
b4a350259d
format code
2020-09-29 18:21:59 +10:00
Jesse Duffield
914fb36173
allow entering and returning from submodule
2020-09-29 18:21:59 +10:00
Jesse Duffield
b882ac9e06
support nuking all submodules
2020-09-29 18:21:59 +10:00
Jesse Duffield
b8da166ab1
support discarding submodule changes
2020-09-29 18:21:59 +10:00
Jesse Duffield
ca437a6504
support submodules
2020-09-29 18:21:59 +10:00
Jesse Duffield
72a31aed76
support opening lazygit in a symlinked submodule
2020-09-29 17:48:21 +10:00
Jesse Duffield
59e117738d
missed a spot
2020-09-29 17:42:07 +10:00
Jesse Duffield
75598ea2a1
move git dir env stuff into a centralised package
2020-09-29 17:42:07 +10:00
Jesse Duffield
e873816160
do not include bare repos in recent repos list
2020-09-29 17:42:07 +10:00
Jesse Duffield
23626755d7
unset GIT_WORK_TREE and GIT_DIR when switching repos
2020-09-29 17:42:07 +10:00
Jesse Duffield
97af7e677b
support bare repositories
2020-09-29 17:42:07 +10:00
Jesse Duffield
f9f7f74efb
Update Config.md
2020-09-27 11:59:25 +10:00
Jesse Duffield
de482262e1
support setting description in custom command
2020-09-27 11:32:54 +10:00
Jesse Duffield
1b39c829ac
Update Custom_Command_Keybindings.md
2020-09-27 11:15:08 +10:00
Jesse Duffield
fb09fb4472
bump gocui
2020-09-27 11:11:55 +10:00
Jesse Duffield
12f9b1416f
better handling of global custom keybindings
2020-09-27 11:11:55 +10:00
Jesse Duffield
4dad7064cc
Update Custom_Command_Keybindings.md
2020-09-27 11:11:44 +10:00
Jesse Duffield
628abc412e
Update README.md
2020-09-27 10:36:18 +10:00
Jesse Duffield
84a899c38a
remove resources folder now that we're using the assets branch
2020-09-27 10:32:44 +10:00
Jesse Duffield
21d4e46bf1
point to assets branch
2020-09-27 10:31:53 +10:00
Jesse Duffield
c603691a98
Update Config.md
2020-09-27 10:31:16 +10:00
Jesse Duffield
efbbc5c6bc
Update Undoing.md
2020-09-27 10:30:42 +10:00
Jesse Duffield
8dcc148a22
Update Custom_Command_Keybindings.md
2020-09-27 10:28:39 +10:00
Jesse Duffield
becd4cc3c0
Update README.md
2020-09-27 09:58:49 +10:00
Jesse Duffield
e0ea2b75a1
add custom command keybindings doc
2020-09-27 09:56:33 +10:00
Jesse Duffield
a09bb5d4d8
better validation messages
2020-09-27 09:49:30 +10:00
Jesse Duffield
7cd17d3a73
support custom command loading text
2020-09-27 09:49:30 +10:00
Jesse Duffield
8a59a4404b
rename prompt to input
2020-09-27 09:49:30 +10:00
Jesse Duffield
5724fa534a
fallback to value if name not given
2020-09-27 09:49:30 +10:00
Jesse Duffield
e7210dd249
better template support for menus and prompts
2020-09-27 09:49:30 +10:00
Jesse Duffield
7d39cc75b2
support menus in custom commands
2020-09-27 09:49:30 +10:00
Jesse Duffield
b5066f1d8e
support prompts in custom commands
2020-09-27 09:49:30 +10:00
Jesse Duffield
266d8bf0d5
minor fixup
2020-09-27 09:49:30 +10:00
Jesse Duffield
da8eac5538
better interface
2020-09-27 09:49:30 +10:00
Jesse Duffield
67bbeb195b
support custom keybindings
2020-09-27 09:49:30 +10:00
Jesse Duffield
92183de29e
more lenient handling of views not existing
2020-09-26 19:33:22 +10:00
Jesse Duffield
8dae54ab8c
fix panic
2020-09-26 11:56:22 +10:00
Jesse Duffield
62a31c27e1
refresh commit files view when needed
2020-09-26 11:52:38 +10:00
Jesse Duffield
dd29ee7288
convert to string in a better way because I'm pretty sure alpine needs it
2020-09-26 11:12:47 +10:00
Jesse Duffield
fe64f2f4c9
use --no-ext-diff flag for git diff
2020-09-26 11:03:38 +10:00
Jesse Duffield
03ea4a884a
tidy go.sum
2020-09-26 11:00:50 +10:00
Jesse Duffield
d3c7cbeea7
better documentation
2020-09-26 11:00:50 +10:00
Jesse Duffield
f0a1544ebd
more logging
2020-09-26 11:00:50 +10:00
Jesse Duffield
077f113618
add in-built logging support for a better dev experience
2020-09-26 11:00:50 +10:00
Jesse Duffield
0c6cbe7746
Update README.md
2020-09-26 10:57:04 +10:00
Jesse Duffield
3bdfb2875f
Update README.md
2020-09-26 10:56:22 +10:00
Yuki Osaki
cc7ea736bb
Change the descriptions to lowercase
2020-09-21 15:35:50 +10:00
Yuki Osaki
9dfe1bbadf
Update pkg/i18n/english.go
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com >
2020-09-21 15:35:50 +10:00
Yuki Osaki
1fd89b4f46
Be able to copy file name
2020-09-21 15:35:50 +10:00
Jesse Duffield
307d051ec2
smarter checking of git version
2020-09-18 21:02:27 +10:00
Jesse Duffield
3a668011fa
better flag description
2020-09-18 08:40:30 +10:00
Jesse Duffield
14c8b80494
show loading state when amending top commit
2020-09-18 07:58:16 +10:00
Lakshay Garg
10dde518bc
Fix numbering in Dutch IntroPopupMessage
2020-09-18 07:47:01 +10:00
Lakshay Garg
1e1c90c92e
Fix numbering in English IntroPopupMessage
2020-09-18 07:47:01 +10:00
Jesse Duffield
4954791443
fix test
2020-09-18 07:46:12 +10:00
Jesse Duffield
c471f4927a
fix test
2020-09-02 20:55:53 +10:00
Jesse Duffield
9eba98302e
ensure that when a branch name is ambiguous we still show the correct colours
2020-09-02 10:40:50 +00:00
Francisco Miamoto
250fe740b2
use GetBool instead of casting
2020-08-31 09:22:39 +10:00
Francisco Miamoto
70eda031dc
implement config option for disabling force pushing
2020-08-31 09:22:39 +10:00
Francisco Miamoto
86f296a898
add config for disabling force pushing
2020-08-31 09:22:39 +10:00
Jesse Duffield
71ff18318d
fast UI update when moving commits in rebase mode
2020-08-29 00:19:31 +00:00
Jesse Duffield
46cce28758
restore donate link
2020-08-28 09:52:56 +10:00
Jesse Duffield
5611d9a3ef
gracefully fail due to git version less than 2.0
2020-08-27 12:21:37 +00:00
Jesse Duffield
40bec49de8
more efficient refreshing of rebase commits
2020-08-27 21:51:07 +10:00
Jesse Duffield
f99d5f74d4
drop merge commits when interactive rebasing just like git CLI
2020-08-27 21:51:07 +10:00
Jesse Duffield
30a066aa41
remove redundant test
2020-08-27 19:29:22 +10:00
Jesse Duffield
1dcc3363d0
support branches with no upstream
2020-08-27 17:05:07 +10:00
Jesse Duffield
c6948582e6
better way of knowing which commits are unpushed
2020-08-26 22:45:55 +00:00
Jesse Duffield
196c83d058
fix bug where cancelling search in menu caused issue
2020-08-26 09:32:57 +00:00
Jesse Duffield
806bee9646
try again
2020-08-26 08:57:32 +10:00
Jesse Duffield
45a0378c01
do not create error panel for sentinel errors
2020-08-25 22:21:15 +00:00
Jesse Duffield
afd669194a
use clipboard package to handle clipboard stuff
2020-08-26 07:53:43 +10:00
Jesse Duffield
1494a3863d
Remove tab keybinding for cycling tab
...
This keybinding has been more pain than it's worth. Having a tab keybinding
to cycle tabs implies that you can shift+tab and when you shift+tab the
application exits because termbox, our dependency, doesn't know how to
interpret the escape sequence (so it takes it for an actual ESC key which
will exit lazygit at the top level).
If people get mad at me they can set nextBlock-alt to <tab> and they'll have
the functionality back :)
2020-08-25 10:48:13 +00:00
Jesse Duffield
f5c55f066b
use new branch logic when 'checking out' remote branch
2020-08-25 09:25:17 +00:00
Dawid Dziurla
bd8f198beb
workflows: run CI on master or pull request only
2020-08-25 09:18:29 +02:00
Dawid Dziurla
f05adb4f99
workflows: match every branch
...
Previously, branches with `/` in the name wasn't being matched
2020-08-25 09:16:13 +02:00
Jesse Duffield
3ebb91c07a
better keybinding ('W') for viewing diff
2020-08-24 23:08:05 +00:00
Jesse Duffield
771e87ebeb
do not reset cursor unless previous file has moved position
2020-08-24 22:39:01 +00:00
Jesse Duffield
2598ce1d4b
bump creack
2020-08-24 22:16:38 +00:00
Jesse Duffield
e2f3b2b41f
add log when git status errors
2020-08-25 08:04:45 +10:00
Jesse Duffield
7ebb8343d1
ignore warning messages about files when obtaining file statuses
2020-08-24 11:53:17 +00:00
Jesse Duffield
42479a75af
prevent moving cursor past last character in prompt modal
2020-08-24 20:11:32 +10:00
Jesse Duffield
22c7110349
prevent moving cursor past last character in prompt modal
2020-08-24 10:02:08 +00:00
Jesse Duffield
44ee28bb2e
support alacritty
2020-08-24 09:19:56 +10:00
Jesse Duffield
f172f20219
Return whether the context has a parent or not along with that parent
...
There has got to be a better way around this but if we're returning a Context
from a function (Context is an interface, not a concrete type), even if we
return nil, on the calling end it won't be equal to nil because an interface
value is a tuple of the type and the value meaning it's never itself nil,
unless both values in the tuple are nil.
So we're explicitly returning whether or not the underlying concrete type is nil.
2020-08-23 22:30:32 +00:00
Jesse Duffield
0f7003d939
allow spamming the p key
2020-08-23 11:30:29 +00:00
Jesse Duffield
d2d88fe64e
fix focus change on merge popup return
2020-08-23 19:28:59 +10:00
Jesse Duffield
fa2a385a0c
when in the remote branches view, prefill name for creating branch off of remote branch
2020-08-23 19:27:34 +10:00
Jesse Duffield
bd9579983e
bump gocui to ensure no crash on startup
2020-08-23 17:49:58 +10:00
Jesse Duffield
66bd86b9b7
set keybindings after initialising views
2020-08-23 17:49:58 +10:00
Jesse Duffield
364bdcf532
safer getting of branch
2020-08-23 17:49:58 +10:00
Jesse Duffield
ba7e098373
check for missing view when scrolling
2020-08-23 16:05:20 +10:00
Jesse Duffield
9f71c8d2b9
rename Status to PatchStatus
2020-08-23 15:11:06 +10:00
Jesse Duffield
fce7cdcc0a
enlargen stash window when its focused
2020-08-23 15:11:06 +10:00
Jesse Duffield
4fb52ce2ab
better handling of there being no commit files
2020-08-23 15:11:06 +10:00
Jesse Duffield
2915134007
show file statuses in commit files view
2020-08-23 15:11:06 +10:00
Jesse Duffield
2f893bf361
format
2020-08-23 14:29:18 +10:00
Jesse Duffield
f815c5607c
prefill remote edit prompts
2020-08-23 14:29:18 +10:00
Jesse Duffield
59d61f00a6
hide secondary view when escaping patch building panel
2020-08-23 14:29:18 +10:00
Jesse Duffield
262ff24c5b
always reset branch selected index when creating new branch
2020-08-23 14:29:18 +10:00
Jesse Duffield
1189c2fab7
we've now flipped the boolean
2020-08-23 14:29:18 +10:00
Jesse Duffield
3eb3de3edc
allow explicitly managing focus
2020-08-23 14:29:18 +10:00
Jesse Duffield
94601b4dc9
use context to return to the correct view
2020-08-23 14:29:18 +10:00
Jesse Duffield
9ca0073cd7
attempt at fixing bad lazyloading
2020-08-23 14:29:18 +10:00
Jesse Duffield
55e6366529
run task for appropriate view
2020-08-23 14:29:18 +10:00
Jesse Duffield
bd66162972
fix up patch manager
2020-08-23 14:29:18 +10:00
Jesse Duffield
5cdfd41dca
prevent spamming pull or push buttons
2020-08-23 14:29:18 +10:00
Jesse Duffield
a95fd581fd
fix logic for entering merging panel
2020-08-23 14:29:18 +10:00
Jesse Duffield
fda9f4ea7a
centralise logic for rendering options map
2020-08-23 14:29:18 +10:00
Jesse Duffield
f876d8fdc8
use constants
2020-08-23 14:29:18 +10:00
Jesse Duffield
4198bbae6c
ensure there is always a current context
2020-08-23 14:29:18 +10:00
Jesse Duffield
ade54b38c1
cleanup
2020-08-23 14:29:18 +10:00
Jesse Duffield
0dd2c869a8
minor refactor
2020-08-23 14:29:18 +10:00
Jesse Duffield
ed85ea69bd
cleanup of list context file
2020-08-23 14:29:18 +10:00
Jesse Duffield
953298de74
remove dead code
2020-08-23 14:29:18 +10:00
Jesse Duffield
628404e114
use actual keys
2020-08-23 14:29:18 +10:00
Jesse Duffield
5638a40007
carry more mode state across after returning from subprocess
2020-08-23 14:29:18 +10:00
Jesse Duffield
d6005dc0eb
more accurate comment
2020-08-23 14:29:18 +10:00
Jesse Duffield
b3a7acbdad
more standardising modes
2020-08-23 14:29:18 +10:00
Jesse Duffield
88ae550b93
unused method
2020-08-23 14:29:18 +10:00
Jesse Duffield
2c3f5be093
comment these things out because we're not using them yet
2020-08-23 14:29:18 +10:00
Jesse Duffield
95a4ca6f8e
remove todo comment
2020-08-23 14:29:18 +10:00
Jesse Duffield
23432dd909
remove test
2020-08-23 14:29:18 +10:00
Jesse Duffield
148f601bcb
cleanup now that we're always using the same diff command
2020-08-23 14:29:18 +10:00
Jesse Duffield
43d891b8d6
support creating patches from files in diff mode
2020-08-23 14:29:18 +10:00
Jesse Duffield
2eee079d3a
minor rename
2020-08-23 14:29:18 +10:00
Jesse Duffield
30a555b108
don't needlessly load every file
2020-08-23 14:29:18 +10:00
Jesse Duffield
8be970e688
stop loading all the diffs at once now that we load them as we go
2020-08-23 14:29:18 +10:00
Jesse Duffield
12bf851c7d
faster patch manager
2020-08-23 14:29:18 +10:00
Jesse Duffield
c837c54c39
handle diffing and filtering by file in commit files view
2020-08-23 14:29:18 +10:00
Jesse Duffield
5874529f43
deal with the fact that a nil wrapped in an interface is not equal to nil
2020-08-23 14:29:18 +10:00
Jesse Duffield
e290710f67
support drilling down into the files of a diff
2020-08-23 14:29:18 +10:00
Jesse Duffield
438abd6003
centralise code for copying to clipboard
2020-08-23 14:29:18 +10:00
Jesse Duffield
442f6cd854
more cherry picking stuff, mostly around the reflog
2020-08-23 14:29:18 +10:00
Jesse Duffield
c2b154acad
better handling of our different modes and also cherry picking
2020-08-23 14:29:18 +10:00
Jesse Duffield
fbd61fcd17
refactor how we handle different modes
2020-08-23 14:29:18 +10:00
Jesse Duffield
b1529f19ad
more cherry picking code into its own file
2020-08-23 14:29:18 +10:00
Jesse Duffield
134566ed49
move into more appropriate file
2020-08-23 14:29:18 +10:00
Jesse Duffield
8da93fd762
add description field to ListItem interface
2020-08-23 14:29:18 +10:00
Jesse Duffield
63209ef71e
try allowing creating branches off the stash too
2020-08-23 14:29:18 +10:00
Jesse Duffield
f63ec38aae
genericise creating new branches off things
2020-08-23 14:29:18 +10:00
Jesse Duffield
f858c8e750
rename to make way for a generic function name
2020-08-23 14:29:18 +10:00
Jesse Duffield
26f80087dd
when toggling files reset patch manager if patch ends up empty
2020-08-23 14:29:18 +10:00
Jesse Duffield
0ac402792b
allow getting the current item generically
2020-08-23 14:29:18 +10:00
Jesse Duffield
974c6510b8
add sub commit context
2020-08-23 14:29:18 +10:00
Jesse Duffield
41df63cdc4
show when building patch
2020-08-23 14:29:18 +10:00
Jesse Duffield
4080e9b501
only return focus if we already have it
2020-08-23 14:29:18 +10:00
Jesse Duffield
53da858c06
escape patch building mode on hitting escape at the top level
2020-08-23 14:29:18 +10:00
Jesse Duffield
50c9ae863a
remove sdump
2020-08-23 14:29:18 +10:00
Jesse Duffield
ce20d1b482
remove clipboard option for now because we need a better way of doing it
2020-08-23 14:29:18 +10:00
Jesse Duffield
fcf916d138
don't panic
2020-08-23 14:29:18 +10:00
Jesse Duffield
f3c87bde88
more
2020-08-23 14:29:18 +10:00
Jesse Duffield
3f7136fc7d
missed a spot
2020-08-23 14:29:18 +10:00
Jesse Duffield
59f5f5c1af
refactor
2020-08-23 14:29:18 +10:00
Jesse Duffield
1956301b1c
better menu item name
2020-08-23 14:29:18 +10:00
Jesse Duffield
1fd0f31682
only show rebasey commands on a local commit when patch building
2020-08-23 14:29:18 +10:00
Jesse Duffield
e6a1bd6566
generalise patch building stuff
2020-08-23 14:29:18 +10:00
Jesse Duffield
609f3f4bfa
rename Sha to parent now that we're also considering stash entries
2020-08-23 14:29:18 +10:00
Jesse Duffield
9b42cd2214
slightly better
2020-08-23 14:29:18 +10:00
Jesse Duffield
2d90e1e8ee
commit files kind of generalised
2020-08-23 14:29:18 +10:00
Jesse Duffield
ddf25e14af
allowing commit files to be viewed in reflog as well
2020-08-23 14:29:18 +10:00
Jesse Duffield
48f1adad49
stop logging stack
2020-08-23 14:29:18 +10:00
Jesse Duffield
379d37a255
remove unnecessary function
2020-08-23 14:29:18 +10:00
Jesse Duffield
a59ac064d2
statically define context keys
2020-08-23 14:29:18 +10:00
Jesse Duffield
433d54fcec
WIP constants for context keys
2020-08-23 14:29:18 +10:00
Jesse Duffield
146722beb8
rename to SelectedLineIdx
2020-08-23 14:29:18 +10:00
Jesse Duffield
eb5e54e9fd
use interface for panel state rather than pointer
2020-08-23 14:29:18 +10:00
Jesse Duffield
99707a527d
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
9ee7793782
remove comment
2020-08-23 14:29:18 +10:00
Jesse Duffield
bc410d8e4a
use camelCase
2020-08-23 14:29:18 +10:00
Jesse Duffield
7561f5aa32
some more standardisation for diffing
2020-08-23 14:29:18 +10:00
Jesse Duffield
2855b5b4d5
standardise diffmode
2020-08-23 14:29:18 +10:00
Jesse Duffield
419cb9feb8
more standardisation
2020-08-23 14:29:18 +10:00
Jesse Duffield
dbf6bb5f27
some more things
2020-08-23 14:29:18 +10:00
Jesse Duffield
f601108c5d
update naming to refer to context
2020-08-23 14:29:18 +10:00
Jesse Duffield
b77abdc5e1
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
2fac2f9f1f
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
e4beaf4de9
more stuff
2020-08-23 14:29:18 +10:00
Jesse Duffield
d4f134c6c7
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
7ebed76d16
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
2b812b01e9
more standardisation of rendering
2020-08-23 14:29:18 +10:00
Jesse Duffield
2f5d5034db
good progress
2020-08-23 14:29:18 +10:00
Jesse Duffield
a32947e7a7
prepare for OnRender prop
2020-08-23 14:29:18 +10:00
Jesse Duffield
2fdadd383a
introduce new approach to handling tab states
2020-08-23 14:29:18 +10:00
Jesse Duffield
9a2dc3fe15
stop crash due to context stack not being initialized
2020-08-23 14:29:18 +10:00
Jesse Duffield
f0c3d3fc4d
centralise setting of main views context
2020-08-23 14:29:18 +10:00
Jesse Duffield
2488e0044d
concurrent-safe handling of context state
2020-08-23 14:29:18 +10:00
Jesse Duffield
9c866fd49c
more standardisation
2020-08-23 14:29:18 +10:00
Jesse Duffield
6c270b6e26
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
ae1c4536e6
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
f5b22d94d9
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
3c87ff4eff
WIP: standardising how we render to main
2020-08-23 14:29:18 +10:00
Jesse Duffield
0f7b2c45d7
centralise split main panel code
2020-08-23 14:29:18 +10:00
Jesse Duffield
a12d18146c
better logic for taking focus away from popup panels
2020-08-23 14:29:18 +10:00
Jesse Duffield
119d5be1a4
move into list context file
2020-08-23 14:29:18 +10:00
Jesse Duffield
fcdc0174d9
rename context file
2020-08-23 14:29:18 +10:00
Jesse Duffield
4f4df8f9cc
move context specific keybindings into context file
2020-08-23 14:29:18 +10:00
Jesse Duffield
c730271e09
minor update
2020-08-23 14:29:18 +10:00
Jesse Duffield
ac0eedda91
lots more stuff
2020-08-23 14:29:18 +10:00
Jesse Duffield
e87635295a
dont check for error when sending view to bottom
2020-08-23 14:29:18 +10:00
Jesse Duffield
62a662054b
hide view if not specified in dimensions object
2020-08-23 14:29:18 +10:00
Jesse Duffield
dc183c0d82
no need to set views on top anymore
2020-08-23 14:29:18 +10:00
Jesse Duffield
08e039bea9
return nil when no file selected
2020-08-23 14:29:18 +10:00
Jesse Duffield
88d329c52a
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
fd8a455aff
small things
...
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
ed4574bda9
standardise getting selected item
2020-08-23 14:29:18 +10:00
Jesse Duffield
c9ae54a8c8
remove previous view
2020-08-23 14:29:18 +10:00
Jesse Duffield
6fb83b740b
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
7f89113245
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
0ea0c48631
WIP
2020-08-23 14:29:18 +10:00
Jesse Duffield
cec4cb48cb
centralise some list view code
2020-08-23 14:29:18 +10:00
mjarkk
b211a14a66
Add GitUI to alternatives in readme
2020-08-23 14:05:55 +10:00
Jesse Duffield
a3d1455c83
Update README.md
2020-08-22 20:46:00 +10:00
Jesse Duffield
1716de3b59
remove space as keybinding for confirmation panel
2020-08-17 20:30:10 +10:00
Jesse Duffield
44d8b3e8f3
allow overriding default confirm/escape keybindings
2020-08-17 18:22:57 +10:00
Jesse Duffield
4f4bb40ea6
support opening lazygit outside a git directory
2020-08-16 22:59:58 +10:00
Jesse Duffield
db826b3c87
add keybinding to create new branch off of commit
...
retain focus in commits panel
surface prompt errors
better description
2020-08-16 22:24:54 +10:00
Jesse Duffield
be658e7d64
support multi word editor config
2020-08-16 20:37:40 +10:00
Jesse Duffield
53f06f6a4e
prefill commit reword editor
2020-08-16 20:37:24 +10:00
Jesse Duffield
c8add47fe7
move cursor to right when using auto prefix
2020-08-16 18:44:39 +10:00
Jesse Duffield
28cd827cea
better popups
2020-08-16 09:07:54 +10:00
Jesse Duffield
ffda2839e0
remove anonymous reporting popup cos we dont do it anymore anyway
2020-08-16 09:07:54 +10:00
Jesse Duffield
28208e8364
refactor list view
2020-08-15 18:01:43 +10:00
Jesse Duffield
9b7a6934b3
more removing of g
2020-08-15 18:01:43 +10:00
Jesse Duffield
15229bbdab
more removing of g and v
2020-08-15 18:01:43 +10:00
Jesse Duffield
63e6eea9ec
files view
2020-08-15 18:01:43 +10:00
Jesse Duffield
50d5b9e8e7
status view
2020-08-15 18:01:43 +10:00
Jesse Duffield
cc872b0444
menu view
2020-08-15 18:01:43 +10:00
Jesse Duffield
17b84e09c0
fix remote branches select sig
2020-08-15 18:01:43 +10:00
Jesse Duffield
43f8bae267
fix remotes select sig
2020-08-15 18:01:43 +10:00
Jesse Duffield
b0fe963f8a
fix branches select sig
2020-08-15 18:01:43 +10:00
Jesse Duffield
0822a9296c
rename
2020-08-15 18:01:43 +10:00
Jesse Duffield
d9fa02c53b
clean up interface for popup panels
2020-08-15 18:01:43 +10:00
Jesse Duffield
c44ee71ad4
update cheatsheet
2020-08-15 11:41:37 +10:00
Jesse Duffield
826d1660c9
move patch stuff into its own package
2020-08-15 11:41:37 +10:00
Jesse Duffield
291a8e4de0
allow opening files on the selected line in the staging panel
2020-08-15 11:41:37 +10:00
Jesse Duffield
f02ccca0e0
add specs to boxlayout package
2020-08-15 09:04:40 +10:00
Jesse Duffield
1e12a60b34
move box layout stuff into its own package
2020-08-15 09:04:40 +10:00
Jesse Duffield
8430b04492
allow configurable main panel split
2020-08-13 21:50:23 +10:00
Jesse Duffield
35b72420ad
support accordian mode i.e. expanding focused side panels
2020-08-13 21:50:23 +10:00
Jesse Duffield
28ba142fd6
set minimum confirmation box width
2020-08-13 21:50:23 +10:00
Jesse Duffield
b39bcd5c61
more lenient for switching into portrait mode
2020-08-13 21:50:23 +10:00
Jesse Duffield
1fd35f3824
centralise logic for information section
...
WIP
2020-08-13 21:50:23 +10:00
Jesse Duffield
e73937c2bd
more work on new layout functionality
2020-08-13 21:50:23 +10:00
Jesse Duffield
b51ad4fcea
softcode cyclable views
2020-08-13 21:50:23 +10:00
Jesse Duffield
d1a7c7283f
some more changes
2020-08-13 21:50:23 +10:00
Jesse Duffield
b641ecdc74
move some things around
2020-08-13 21:50:23 +10:00
Jesse Duffield
13f567ff4c
add portrait mode for when the window is really tall
2020-08-13 21:50:23 +10:00
Jesse Duffield
771d4b5811
refactor how we handle layouts
2020-08-13 21:50:23 +10:00
Jesse Duffield
3c944e0351
support force push after failure
2020-08-12 21:11:24 +10:00
Jesse Duffield
e26af258d6
allow rebasing onto remote branch
2020-08-12 20:58:34 +10:00
Jesse Duffield
76e5ec6d45
immediately quit when pressing q in diff or filter mode
2020-08-12 20:44:29 +10:00
Jesse Duffield
27cd12e2d9
accept umlaut keybindings
2020-08-12 20:07:56 +10:00
Jesse Duffield
bfaf1c4f70
use remote prefixed branch name when merging remote branch
2020-08-12 20:07:46 +10:00
Jesse Duffield
2d18d089ce
allow entering a password when fast forwarding another branch
2020-08-12 18:47:16 +10:00
Jesse Duffield
9c7e40906d
rename arg
2020-08-12 18:47:16 +10:00
Jesse Duffield
401f291c3b
lowercase function name
2020-08-12 18:47:16 +10:00
Jesse Duffield
bea2ae5ff5
stop pulling in general
2020-08-12 18:47:16 +10:00
Jesse Duffield
f49e4946f2
minor refactor
2020-08-12 18:47:16 +10:00
Jesse Duffield
8ff74072f8
update config
2020-08-12 18:47:16 +10:00
Jesse Duffield
fcd5aea04e
support multiple modes of git pull
2020-08-12 18:47:16 +10:00
Jesse Duffield
1c0da2967c
update naming
2020-08-12 18:47:16 +10:00
Jesse Duffield
1b78a42b80
pass callback directly
2020-08-12 18:47:16 +10:00
Jesse Duffield
79e73d2eff
minor cleanup
...
WIP
2020-08-12 18:47:16 +10:00
Jesse Duffield
23299f88e9
simplify patch modifier interface
2020-08-09 15:42:20 +10:00
mjarkk
ef744e45c1
Update dutch translations
2020-08-08 14:25:11 +10:00
Jesse Duffield
660cc2f3d1
follow cursor when staging and unstaging a file rename
2020-08-07 18:59:56 +10:00
Jesse Duffield
469ac116ef
allow renames to be discarded
2020-08-07 18:01:26 +10:00
Jesse Duffield
a86103479b
cleanup
2020-08-07 18:01:26 +10:00
Axel Navarro
d49e75bd3e
Add tab keybinding in commit message
2020-07-26 16:28:01 +10:00
Jesse Duffield
f4718a9047
allow editing commit files
2020-07-21 18:24:39 +10:00
Jesse Duffield
7d5fe4b66c
better logic for staging a renamed file
2020-07-19 14:11:32 +10:00
Jesse Duffield
845c80721f
Decouple escaping from quitting
...
When a user is not entering text into a prompt, the 'q' key should immediately
quit the application. On the other hand, the 'esc' key should cancel/close/go-back
to the previous context.
If we're at the surface level (nothing to cancel/close) and the user hits the
escape key, the default behaviour is to close the app, however we now have a
`quitOnTopLevelReturn` config key to override this.
I actually think from the beginning we should have made this config option
default to false rather than true which is the default this PR gives it,
but I don't want to anger too many people familiar with the existing behaviour.
2020-07-18 20:00:48 +10:00
Gadzhi Kharkharov
0e65db10d8
add solus linux installation info
2020-07-18 19:48:05 +10:00
Jesse Duffield
a9cc321981
prompt to create new branch if branch not found
2020-07-17 09:20:50 +10:00
Jesse Duffield
6349214f00
prompt to commit all files if committing with no staged files
2020-07-17 09:01:40 +10:00
Randshot
96f821b841
fix TestGitCommandCommit test
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-15 09:41:16 +10:00
Randshot
964e3872c1
revert changes to 'os_default_platform.go' and 'os_windows.go'
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-15 09:41:16 +10:00
Randshot
5dfa26ea8b
use strconv for quoting in 'GitCommand.Commit' and 'OSCommand.ShellCommandFromString'
...
use raw strings for the escaped quotes in 'os_default_platform.go' and 'os_windows.go'
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-15 09:41:16 +10:00
Dawid Dziurla
dbf042b8ad
goreleaser: fix deprecation and comment
2020-07-14 09:13:43 +02:00
Randshot
014e06eefd
factor out duplicate code into 'ShellCommandFromString'
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-14 08:26:53 +10:00
Randshot
39a2122dc0
add quotes around the git commit command on non-windows systems
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-14 08:26:53 +10:00
Randshot
fe6d8d62c5
add overrideGpg switch to Config.md
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-12 11:50:12 +02:00
Randshot
570d27ffaa
Merge branch 'master' into add-overrideGpg-switch
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-12 11:47:35 +02:00
Pranav Shikarpur
7b69aa1fda
Added ENTRYPOINT to Dockerfile to jump directly into lazy git while running the docker container
2020-07-12 14:10:04 +10:00
Randshot
21e478dd59
fix 'Amend commit using gpg' test
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-12 14:06:53 +10:00
Randshot
d14fb36cb9
fix 'Commit using gpg' test
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-12 14:06:53 +10:00
Randshot
19a808642f
fix platform specific quoting when using GPG
...
fixes #620
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-07-12 14:06:53 +10:00
Jasper Mendiola
e921ba0910
Remove getLocalGitConfig
2020-07-10 18:55:00 +10:00
Jasper Mendiola
0f5a073d57
Rename appconfig to config
2020-07-10 18:55:00 +10:00
Jasper Mendiola
cb0bdd89c0
fix tests
2020-07-10 18:55:00 +10:00
Jasper Mendiola
e89bf5d06b
add oneline-graph
2020-07-10 18:55:00 +10:00
David Chen
e82d2f37a1
Update example keybinding config for Colemak users
2020-06-03 22:14:21 +10:00
Randshot
65e955c622
add overrideGpg switch, which prevents lazygit from spawning a separate process when using GPG
...
Signed-off-by: Randshot <randshot@norealm.xyz >
2020-05-30 23:39:07 +02:00
Dima Kotik
e73f4c6b7e
Better CWD check for a git repository.
2020-05-30 00:31:58 +10:00
Jesse Duffield
cf5cefb2d6
allow user to scroll themselves inside merge panel
2020-05-19 18:44:53 +10:00
Jesse Duffield
36ac764133
fix race condition when scrolling to merge conflict
2020-05-19 18:05:14 +10:00
Jesse Duffield
003e45d2f5
allow creating branches off of remote branches
2020-05-19 09:57:37 +10:00
Jesse Duffield
04e93317b8
fix https://github.com/jesseduffield/lazygit/issues/848
2020-05-19 09:57:37 +10:00
Jesse Duffield
f8dedb710b
additional password prompt regex
2020-05-15 22:18:07 +10:00
Jesse Duffield
1c259f69f6
check if user has configured to push to current by default
2020-05-15 21:41:23 +10:00
Jesse Duffield
913f17ee3e
prevent flicker from bolding background of selected line
2020-05-15 21:12:12 +10:00
Dawid Dziurla
6291c53966
workflows: update bumping action to v3
2020-05-13 13:36:59 +02:00
Jesse Duffield
267730bc00
standardise how we handle background colours
2020-05-13 21:24:25 +10:00
Jesse Duffield
d5db02a899
bump gocui to be on 'simple' branch.
...
The master branch of gocui contains stuff I added for lazynpm which changes how
the cursor is used. This will provide some benefits to lazygit as well but I
don't yet have the motivation to make the required changed in lazygit to support it.
So we're gonna be on the branch named 'simple' rather than master until I fix that up.
2020-05-13 21:24:25 +10:00
Gary Yendell
7ed8ee160d
Add option to split patch into a new commit
...
Add GetHeadCommitMessage to read the subject of the HEAD commit
Create PullPatchIntoNewCommit based heavily on PullPatchIntoIndex to
split the current patch from its commit and apply it in a separate
commit immediately after.
WIP to Squash - Fill format string with format string
WIP
2020-05-09 11:59:37 +10:00
Josh Soref
3dd33b65a0
Minor fixes
...
* Windows
* Use backticks
* Italicize git config
2020-05-08 09:48:13 +10:00
Dawid Dziurla
b85048f616
workflows: update CI triggers
...
So it would run on pull requests from forks
2020-05-04 20:03:27 +02:00
Mike Palmer
0852f53455
Add path to config file on Windows
2020-04-27 19:15:06 +10:00
Glenn Vriesman
10fa119ab3
fix: fixed readme link
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-04-27 19:14:43 +10:00
Tyler Davis
b5404c6159
fix issue #640 add catCmd and OS-specific values
...
Add a catCmd to the Platform struct and set the value to "cat" for
non-windows builds and "type" for windows builds.
2020-04-27 19:14:18 +10:00
Lars E
42d21c4bb6
Add FreeBSD installation instructions
2020-04-22 19:51:01 +10:00
Jesse Duffield
cc13ae252a
totally screwed up the last commit
2020-04-22 11:21:20 +10:00
Jesse Duffield
b97f844a3e
handle comments in todo files
2020-04-22 11:15:41 +10:00
Glenn Vriesman
1d6eb015c1
fix: fixed yaml typo
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-04-22 08:52:08 +10:00
Jesse Duffield
07a8ae8c3e
add handler for searching in menu
2020-04-21 19:28:31 +10:00
Jesse Duffield
f05a5e531e
warnings for stash actions
2020-04-20 18:57:08 +10:00
Kristijan Husak
68586ec49a
Handle regex compilation errors and show them to the user.
2020-04-20 18:47:50 +10:00
Kristijan Husak
6cf75af0af
Add option to set predefined commit message prefix. Fixes #760 .
2020-04-20 18:47:50 +10:00
Jesse Duffield
304607ae5d
support configurable merge args
2020-04-20 18:40:49 +10:00
Jesse Duffield
e9f28855a2
add bugfix git flow option
2020-04-20 18:31:13 +10:00
Glenn Vriesman
66d7d5f312
fix: fixed gpg breaking terminal
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-04-20 18:30:57 +10:00
Jesse Duffield
59734f1069
whoops
2020-04-17 09:27:23 +10:00
Jesse Duffield
2974a57943
support copying stuff to clipboard
2020-04-15 10:44:56 +00:00
Adwin Ying
fcdcd1c335
fix config docs typo
2020-04-03 17:44:15 +11:00
Dawid Dziurla
4a35f9fcdb
Merge pull request #775 from jesseduffield/dawidd6-patch-1
...
workflows: update homebrew bumping action
2020-04-02 23:51:22 +02:00
Dawid Dziurla
674b14802e
workflows: update homebrew bumping action
2020-04-02 23:43:26 +02:00
Jesse Duffield
3e36affa69
remove trash files
2020-03-29 21:53:25 +00:00
Jesse Duffield
97d7a8ad0c
add reverse patch option
2020-03-29 21:53:25 +00:00
Jesse Duffield
b89ba365d0
unbold diff info
2020-03-29 18:31:19 +11:00
Jesse Duffield
47ff388549
some more UI logic
2020-03-29 18:26:24 +11:00
Jesse Duffield
647ab9bf0f
better keybinding
2020-03-29 18:26:24 +11:00
Jesse Duffield
76431b4673
simplify things
2020-03-29 18:26:24 +11:00
Jesse Duffield
be0dd29e3a
don't support files until we understand the use case
2020-03-29 18:26:24 +11:00
Jesse Duffield
40fbce91ce
add new diff mode
...
WIP
WIP
WIP
WIP
WIP
WIP
WIP
2020-03-29 18:26:24 +11:00
Jesse Duffield
33d287d2f0
remove old diff mode code
2020-03-29 18:26:24 +11:00
Jesse Duffield
9eb1cbc514
reset main's origin when cycling views
2020-03-29 02:36:01 +00:00
Jesse Duffield
40b173118a
fix conflict race condition
2020-03-29 02:36:01 +00:00
Jesse Duffield
8822c409e2
split reflog commits into ReflogCommits and FilteredReflogCommits
2020-03-29 11:37:29 +11:00
Jesse Duffield
aa750c0819
load reflog commits manually when in filter mode for branches panel
2020-03-29 11:37:29 +11:00
Jesse Duffield
d90d9d7330
reset state on each Run() call
2020-03-29 11:37:29 +11:00
Jesse Duffield
a8db672ffb
refactor gui.go
2020-03-29 11:37:29 +11:00
Jesse Duffield
76b66ae26f
properly reset gui state when restarting or coming back from a subprocess
2020-03-29 11:37:29 +11:00
Jesse Duffield
a2790cfe8e
rename to filtered mode
2020-03-29 11:37:29 +11:00
Jesse Duffield
624ae45ebb
allow scoped mode where the commits/reflog/stash panels are scoped to a file
...
WIP
restrict certain actions in scoped mode
WIP
2020-03-29 11:37:29 +11:00
Jesse Duffield
2756b82f57
fix width of half screen mode
2020-03-29 11:37:29 +11:00
Jesse Duffield
52f41ab0d5
update cheatsheet
2020-03-28 03:16:44 +00:00
Jesse Duffield
fbb767893e
support lazyloading in commits view
2020-03-28 14:02:53 +11:00
Jesse Duffield
229f5ee48c
add keybindings for paging in list panels and jumping to top/bottom
2020-03-28 14:02:53 +11:00
Jesse Duffield
96c7741ba0
add workflow for auto-merging
2020-03-28 13:22:30 +11:00
Jesse Duffield
517b7d0283
fix up some things with the patch handling stuff
2020-03-28 13:19:35 +11:00
Jesse Duffield
0c0231c3e8
autostash changes when pulling file into index
2020-03-28 13:19:35 +11:00
Jesse Duffield
a9559a5c87
move working tree state function into git.go
2020-03-28 13:19:35 +11:00
Jesse Duffield
814ee24c8d
better error handling
2020-03-28 11:59:45 +11:00
Jesse Duffield
7876cddf4a
remove dead code
2020-03-28 11:59:45 +11:00
Jesse Duffield
e9051355a1
fix test
2020-03-28 11:59:45 +11:00
Jesse Duffield
29316a528a
better documentation
2020-03-28 11:59:45 +11:00
Jesse Duffield
036b53acf8
in fact we don't need any of these options
2020-03-28 11:59:45 +11:00
Jesse Duffield
919463ff02
actually don't even bother limiting
2020-03-28 11:59:45 +11:00
Jesse Duffield
3f7ec3f3b8
load reflog commits in two stages to speed up startup time
2020-03-28 11:59:45 +11:00
Jesse Duffield
19604214d7
discard old reflog commits when in new context
2020-03-28 11:59:45 +11:00
Jesse Duffield
f7add8d788
smarter refreshing for tags and remotes
2020-03-28 11:59:45 +11:00
Jesse Duffield
d97c230747
stop switching focus to commit files view while staging line by line
2020-03-28 11:59:45 +11:00
Jesse Duffield
906a49049e
smart refreshing files
2020-03-28 11:59:45 +11:00
Jesse Duffield
c1a4bd0482
more smart refreshing
...
WIP
WIP
WIP
WIP
WIP
fix how diff entries are handled
WIP
WIP
WIP
WIP
WIP
WIP
2020-03-28 11:59:45 +11:00
Jesse Duffield
d0336fe16f
better presentation of remotes
2020-03-28 11:59:45 +11:00
Jesse Duffield
61b4bbf74e
clean up signature
2020-03-28 11:59:45 +11:00
Jesse Duffield
384c2e13d7
better refreshing for stash
2020-03-28 11:59:45 +11:00
Jesse Duffield
198d237679
more centralised handling of refreshing
2020-03-28 11:59:45 +11:00
Jesse Duffield
39315ca1e2
use wait groups when refreshing
2020-03-28 11:59:45 +11:00
Jesse Duffield
efb51eee96
more efficient refreshing
2020-03-28 11:59:45 +11:00
Jesse Duffield
fbbd16bd82
use reflogs from state to work out branch recencies
2020-03-28 11:59:45 +11:00
Jesse Duffield
bd2c1eef53
remove redundant fetch of reflog
2020-03-28 11:59:45 +11:00
Jesse Duffield
d1395b15bb
use GIT_EDITOR
2020-03-27 19:26:14 +11:00
Máximo Cuadros
2d8ed5e274
*: update go-git import
2020-03-27 19:06:21 +11:00
Máximo Cuadros
6a5d8ba859
vendor: replace go-git package
2020-03-27 19:06:21 +11:00
Francisco Miamoto
320e2a6536
fix links on toc
2020-03-27 09:14:04 +11:00
Dawid Dziurla
3858118340
Merge pull request #751 from Semro/patch-1
...
Fix link in README
2020-03-26 16:59:04 +01:00
Semro
6420068569
Fix link in README
2020-03-26 18:46:26 +03:00
Jesse Duffield
95b147079f
allow applying patch directly
2020-03-26 21:44:45 +11:00
Jesse Duffield
83757f1065
limit size of menu panel
2020-03-26 21:44:33 +11:00
Jesse Duffield
f2036b42e5
only load new reflog entries
2020-03-26 21:44:33 +11:00
Jesse Duffield
21b7d41845
relax limit on commit list and reset on branch change
2020-03-26 21:44:33 +11:00
Jesse Duffield
91a404d033
separate commits from cherry pick state
2020-03-26 21:44:33 +11:00
Jesse Duffield
d027cf969c
better handling of current branch name
2020-03-26 20:37:06 +11:00
Jesse Duffield
c7f68a2ef9
delete unused assets
2020-03-26 19:18:43 +11:00
Jesse Duffield
78e55a05c1
another staging gif
2020-03-26 19:15:15 +11:00
Jesse Duffield
ca71555d0b
Update README.md
2020-03-26 19:10:49 +11:00
Jesse Duffield
77fdac01ff
better staging gif
2020-03-26 19:10:37 +11:00
Jesse Duffield
8301fae01e
Update README.md
2020-03-26 19:04:48 +11:00
Jesse Duffield
e9161ad702
add staging gif
2020-03-26 19:04:26 +11:00
Jesse Duffield
a0a139da1f
add rebasing gif
2020-03-26 18:43:10 +11:00
Francisco Miamoto
8f13d1da91
change binary releases order
2020-03-26 18:32:38 +11:00
Francisco Miamoto
d5fe9ce2c7
add table of contents to readme
2020-03-26 18:32:38 +11:00
Jesse Duffield
37acc17cf3
more lenient getting of short shas
2020-03-26 18:30:02 +11:00
Jesse Duffield
569ec5919c
Update README.md
2020-03-26 09:14:14 +11:00
Dawid Dziurla
19719becf5
workflows: run goreleaser as a build step for CI
2020-03-25 21:26:15 +11:00
Dawid Dziurla
e64057b803
workflows: install gox in separate step in /tmp directory
...
avoid Go trying to add a dependency to go.mod file
2020-03-25 21:26:15 +11:00
Dawid Dziurla
672667aa3e
goreleaser: stop ignoring arm64 build for freebsd
2020-03-25 21:26:15 +11:00
Dawid Dziurla
8a06b6067e
go mod vendor
2020-03-25 21:26:15 +11:00
Dawid Dziurla
2dcc52abd0
go mod tidy
2020-03-25 21:26:15 +11:00
Dawid Dziurla
c831ad39c9
pkg: use upstream pty package
2020-03-25 21:26:15 +11:00
Jesse Duffield
0cf78ea9ad
Update Undoing.md
2020-03-25 20:35:10 +11:00
Jesse Duffield
3d51fbf354
Update README.md
2020-03-25 20:32:44 +11:00
Jesse Duffield
e7a2c7cc3e
update cheatsheet
2020-03-25 20:24:03 +11:00
Jesse Duffield
708a078412
document undo
2020-03-25 20:17:46 +11:00
Jesse Duffield
bbcc4b7b70
just disallow undo/redo while rebasing because you need more info than just the reflog
2020-03-25 09:39:04 +11:00
Jesse Duffield
45bba0a3c5
ignore redundant actions when undoing and redoing
2020-03-25 09:39:04 +11:00
Jesse Duffield
d105e2690a
vastly improve the logic for undo and redo
2020-03-25 09:39:04 +11:00
Jesse Duffield
32d3e497c3
fix tests
2020-03-25 09:39:04 +11:00
Jesse Duffield
30a5d1b486
move into undoing file
2020-03-25 09:39:04 +11:00
Jesse Duffield
6b3ea56add
refactor undo and redo
2020-03-25 09:39:04 +11:00
Jesse Duffield
c3aefdb98e
stateless undos and redos
2020-03-25 09:39:04 +11:00
Jesse Duffield
094939451d
more explicit env vars
2020-03-25 09:39:04 +11:00
Jesse Duffield
0e23f44b84
support reflog action prefix
2020-03-25 09:39:04 +11:00
Jesse Duffield
daecdd7c2b
redoing
2020-03-25 09:39:04 +11:00
Jesse Duffield
7c8df28d01
add waiting status to checkout ref handler
2020-03-25 09:39:04 +11:00
Jesse Duffield
65917272a2
undoing status
2020-03-25 09:39:04 +11:00
Jesse Duffield
137fd80fdb
note that undo functionality is experimental
2020-03-25 09:39:04 +11:00
Jesse Duffield
98fbc61221
better formatted reflog list
2020-03-25 09:39:04 +11:00
Jesse Duffield
f80d15062b
use reflog undo history pointer
2020-03-25 09:39:04 +11:00
Jesse Duffield
b1b0219f04
autostash changes when hard resetting
2020-03-25 09:39:04 +11:00
Jesse Duffield
b1941c33f7
undo via rebase
2020-03-25 09:39:04 +11:00
J. B. Rainsberger
a15a7b607d
Made the humor more concise and clear.
2020-03-25 09:18:25 +11:00
J. B. Rainsberger
d50283f5ee
improved spelling
2020-03-25 09:18:25 +11:00
J. B. Rainsberger
6508d3b872
inject more humor into the README
2020-03-25 09:18:25 +11:00
J. B. Rainsberger
65b8cef1b8
Fixed an incorrect criticism of git in the README.
...
It's true that parts of git are genuinely difficult to use, so
we don't need to overstate that difficulty in order to state the
value proposition of lazygit. If `git add -p` can't split a hunk
any further, one is not _completely_ stuck, but one does need to
edit the hunk in a way that, after years, I still need a few
attempts to get right. The fact that many otherwise-experienced
git users don't even know that one can do that is itself a
testament to the UX problems that lazygit is trying to address.
2020-03-25 09:18:25 +11:00
Jesse Duffield
5d460e1e5e
add tab keybindings
2020-03-23 23:25:00 +11:00
Jesse Duffield
3d3e0be7bd
more compatible commands
2020-03-23 22:33:17 +11:00
Dawid Dziurla
c06c0b7133
workflows: git fetch --unshallow before goreleaser step
2020-03-22 21:49:41 +11:00
Dawid Dziurla
91f6630907
README: remove codecov badge
2020-03-22 21:32:06 +11:00
Dawid Dziurla
60085cf679
workflows: use get-tag action
2020-03-22 21:31:53 +11:00
Dawid Dziurla
389480b8fc
goreleaser: ignore arm64 build for freebsd
2020-03-22 21:31:37 +11:00
Dawid Dziurla
b5c4f78e9d
Remove redundant semicolon
2020-03-21 12:55:44 +11:00
Dawid Dziurla
59b0e2d70a
Add GOBIN to PATH
2020-03-21 12:55:44 +11:00
Dawid Dziurla
39bd1a4628
Wording
2020-03-21 12:55:44 +11:00
Dawid Dziurla
1c1445c896
Cache builds
2020-03-21 12:55:44 +11:00
Dawid Dziurla
1e8ade2431
Use setup-go Action instead of container
2020-03-21 12:55:44 +11:00
Dawid Dziurla
a990fbc3eb
Don't run codecov or golangci Actions
2020-03-21 12:55:44 +11:00
Dawid Dziurla
e5574e7fe5
Continue if lint step fails
2020-03-21 12:55:44 +11:00
Dawid Dziurla
6c8a924fad
Run 4 builds in parallel
2020-03-21 12:55:44 +11:00
Dawid Dziurla
64706257ca
Add golangci-lint Action
2020-03-21 12:55:44 +11:00
Dawid Dziurla
6183d92315
Fix typo in script name
2020-03-21 12:55:44 +11:00
Dawid Dziurla
31823a7405
Modify CI badge in README
2020-03-21 12:55:44 +11:00
Dawid Dziurla
85ddd623f6
Add CI workflow
2020-03-21 12:55:44 +11:00
Dawid Dziurla
9212dda9c3
Add CD workflow
2020-03-21 12:55:44 +11:00
Dawid Dziurla
93d7b37c8d
Remove homebrew workflow
...
Will be integrated with another
2020-03-21 12:55:44 +11:00
Dawid Dziurla
8470bcd71d
Remove circleci config
2020-03-21 12:55:44 +11:00
Jesse Duffield
3aab37611a
show status of selected cherry picked commits
2020-03-19 21:42:21 +11:00
Jesse Duffield
8fbcc36331
allow resetting cherry picked commits selection
2020-03-19 21:42:21 +11:00
Jesse Duffield
dadb646252
fix branch building
2020-03-19 12:04:17 +11:00
Jesse Duffield
0227b93409
fix branch parser
2020-03-18 23:26:02 +11:00
Jesse Duffield
b0ec0821d5
fix docs
2020-03-18 22:50:35 +11:00
hitsuji_no_shippo
13a7806cac
add opne menu keybindings in docs
2020-03-18 22:50:35 +11:00
hitsuji_no_shippo
41c76fb748
add close menu keybindings in docs
2020-03-18 22:50:35 +11:00
hitsuji_no_shippo
ac0c3b9f92
fix search keybindings in docs
2020-03-18 22:50:35 +11:00
Jesse Duffield
1be0ff8da7
better upstream tracking and allow renaming a branch
2020-03-18 21:29:06 +11:00
hitsuji_no_shippo
2169b5109f
add search keybings in docs
2020-03-11 19:43:22 +11:00
hitsuji_no_shippo
4a2292a53c
fix keybindings of main panel in docs
2020-03-11 19:43:22 +11:00
Jesse Duffield
7df4b736cf
be a bit more lenient
2020-03-09 12:41:41 +11:00
Jesse Duffield
e47ad846c4
big golangci-lint cleanup
2020-03-09 12:23:13 +11:00
Jesse Duffield
8f68ac2129
case insensitive search
...
By default, search is now case insensitive.
If you include uppercase characters in your search string, the search
will become case sensitive. This means there is no way to do a case-
insensitive search of all-lowercase strings. We could add more support
for this but we'll wait until we come across the use case
2020-03-09 11:17:50 +11:00
Dawid Dziurla
1ea2825a54
add homebrew bump formula workflow
2020-03-08 20:13:16 +11:00
Jesse Duffield
19146d61b1
use selected branch as base when creating a new branch
2020-03-08 18:44:15 +11:00
skwerlman
e541b809ce
update tests to match changed command
2020-03-06 09:25:31 +11:00
skwerlman
6ca08c6519
make branches and files non-ambiguous for git-log
...
fixes #694
2020-03-06 09:25:31 +11:00
Dawid Dziurla
b43540820b
Merge pull request #695 from chenrui333/go-1.14
...
Bump golang to v1.14
2020-03-04 16:38:56 +01:00
Rui Chen
3d57da71eb
Add gox to vendor list
2020-03-04 10:32:07 -05:00
Rui Chen
0130fd3666
go mod vendor
2020-03-03 18:16:09 -05:00
Rui Chen
395afc4a8d
Bump golang to v1.14
2020-03-03 18:14:49 -05:00
Jesse Duffield
31e201ca52
allow configuring side panel width
2020-03-04 00:12:23 +11:00
Jesse Duffield
0abd7ad6be
update config
2020-03-04 00:12:23 +11:00
Jesse Duffield
b3522c48d9
refactor
2020-03-04 00:12:23 +11:00
Jesse Duffield
0fc58a7986
fix test
2020-03-04 00:12:23 +11:00
Jesse Duffield
54241d8ab9
more generic way of supporting custom pagers
2020-03-04 00:12:23 +11:00
Jesse Duffield
355f1615ab
supporing custom pagers step 1
2020-03-04 00:12:23 +11:00
Jesse Duffield
113252b0ae
bump gocui
2020-03-04 00:12:23 +11:00
Jesse Duffield
1cd7d14029
Update README.md
2020-03-04 00:11:32 +11:00
Jesse Duffield
87c2fb6a4a
Update Custom_Pagers.md
2020-03-04 00:06:49 +11:00
Jesse Duffield
9912998bb7
Create Custom_Pagers.md
2020-03-03 23:07:12 +11:00
Patrick DeVivo
e223d3d8de
Add TODOs badge to README
...
Closes #685
2020-03-02 22:39:19 +11:00
William Wagner Moraes Artero
ec31fc4cc7
docs: moved services conf docs to config.md
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
3ce2b9b79a
chore: keeping coverage up :D
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
a79182e50d
fix: accidentally escaped %s
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
6f4c595dde
docs: configuration and pull request services' settings
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
0eb3090ad6
fix: owner groups (GitLab)
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
6ea25bd259
feat: flexible service configuration
2020-03-01 10:57:12 +11:00
William Wagner Moraes Artero
fe5f087f9c
feat: configurable services
2020-03-01 10:57:12 +11:00
Jesse Duffield
79299be3b2
better keybindings for patch building mode
2020-02-29 18:48:10 +11:00
Jesse Duffield
4c9b620bd0
better keybindings for staging by line
2020-02-29 18:48:10 +11:00
Jesse Duffield
a7508a5dfd
fix cheatsheet script to support different contexts
2020-02-29 17:46:00 +11:00
hitsuji no shippo
1a3d765c4c
fix keybinds document
2020-02-28 23:08:14 +11:00
Dawid Dziurla
4058c71ca0
Merge pull request #684 from ueberBrot/add-scoop-install-option
...
Add scoop install option to README.
2020-02-27 18:31:21 +01:00
Maurice de Bruyn
3fc22a6010
Add scoop install option to README.
...
Adds the install option scoop on Windows to the README.
2020-02-27 18:12:23 +01:00
David Chen
a9fe0b8000
set --abbrev-commit to return 8-digit hash strings
2020-02-27 18:05:41 +11:00
David Chen
5af7b0235e
fix #680 : unpushed commits still appear to be green instead of red
2020-02-27 18:05:41 +11:00
Corentin Rossignon
bf946200e9
Fix OutOfBound array access when looking for ReflogCommits
...
refs #679
2020-02-27 09:34:40 +11:00
Jesse Duffield
890cc87724
fix bug where commits appeared as green despite not being pushed
2020-02-27 09:33:09 +11:00
Jesse Duffield
8eb0b0f4ca
do not close over variables in a function
2020-02-25 22:09:43 +11:00
Jesse Duffield
e6a8dc0bcf
better logic for checking if we're rebasing
2020-02-25 22:09:43 +11:00
Jesse Duffield
02c497fad6
show file list when diffing commits
2020-02-25 21:38:38 +11:00
Jesse Duffield
d0ab747479
color active frames green by default
2020-02-25 21:27:50 +11:00
Jesse Duffield
f94d0be2c9
refactor the way we render lists
2020-02-25 21:21:07 +11:00
Jesse Duffield
9fd9fd6816
better commit lines in fullscreen mode
2020-02-25 21:21:07 +11:00
David Chen
b8717d750a
keybinding doc for nextMatch/prevMatch in Config.md ( #659 )
2020-02-25 09:37:28 +11:00
Jesse Duffield
8ad01fe32f
refresh commits when adding a tag
2020-02-25 09:10:23 +11:00
Jesse Duffield
fdb543fa7d
add half and fullscreen modes
2020-02-25 08:45:30 +11:00
Jesse Duffield
52b5a6410c
show item counts in frames
2020-02-25 07:19:46 +11:00
Jesse Duffield
0034cfef5c
show tags in commits panel
2020-02-24 23:13:54 +11:00
Jesse Duffield
78b62be96f
better handling of clearing the search
2020-02-24 22:18:04 +11:00
Jesse Duffield
1f5ccab1ce
eagerload commits when searching
2020-02-24 22:18:04 +11:00
Jesse Duffield
46be280c92
support searching in side panels
...
For now we're just doing side panels, because it will take more work
to support this in the various main panel contexts
2020-02-24 22:18:04 +11:00
Jesse Duffield
2a5763a771
switch custom command keybinding to ':'
2020-02-24 22:04:39 +11:00
Jesse Duffield
370cec098b
show diff stat
2020-02-24 09:20:50 +11:00
Dawid Dziurla
49a2f0191f
tasks: don't use a function that requires Go 1.12
2020-02-24 09:09:27 +11:00
Jesse Duffield
fabdda0492
allow customizing background color in staging mode
2020-02-23 18:37:19 +11:00
Glenn Vriesman
6fc3290a05
Reflog: Use 20 sha digits instead of 7
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-20 08:34:01 +11:00
Jesse Duffield
66e6369c28
allow fastforwarding the current branch
2020-02-18 23:07:38 +11:00
Jesse Duffield
0f0da9c32a
fix wording
2020-02-16 09:57:49 +11:00
Jesse Duffield
0a69c1a02d
add reset to reflog commit menu
2020-02-16 09:57:49 +11:00
Jesse Duffield
feaf98bd01
add reset to upstream option on files panel
2020-02-16 09:57:49 +11:00
Jesse Duffield
0fe9c15ce8
add mixed option to HEAD resetting, remove @{upstream}
2020-02-16 09:57:49 +11:00
Jesse Duffield
f528e12c83
allow resetting to tag
2020-02-16 09:57:49 +11:00
Jesse Duffield
8ca9f93ccf
allow resetting to remote branch
2020-02-16 09:57:49 +11:00
Jesse Duffield
73d8064837
allow resetting to branch
2020-02-16 09:57:49 +11:00
Jesse Duffield
5b1f60b7eb
refactor create reset menu logic
2020-02-16 09:57:49 +11:00
Jesse Duffield
2e1344f611
fix specs
2020-02-15 08:47:36 +11:00
Jesse Duffield
5b9996b16f
remove old createMenu function
2020-02-15 08:47:36 +11:00
Jesse Duffield
6fdc1791e4
refactor stash options menu
2020-02-15 08:47:36 +11:00
Jesse Duffield
fd4f37b5c3
refactor git flow menu
2020-02-15 08:47:36 +11:00
Jesse Duffield
d76e8887e5
refactor patch options menu panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
eb9134685a
refactor rebase menu panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
d929b84786
refactor recent repos menu panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
8ef3297b11
refactor reflog reset options panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
27c7aeb117
refactor workspace reset options panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
c9714600e8
refactor commit reset menu
2020-02-15 08:47:36 +11:00
Jesse Duffield
665fdded14
continue refactor of menu panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
814a0ea36f
begin refactor of menu panel
2020-02-15 08:47:36 +11:00
Jesse Duffield
71e018a3dd
get whole commit SHA from rebase commits
2020-02-13 18:10:14 +11:00
Jesse Duffield
efb26f8b60
refresh current branch graph when side panels refresh
2020-02-10 19:05:55 +11:00
Glenn Vriesman
d9eb6e2682
Fixed tests
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-09 23:47:22 +11:00
Glenn Vriesman
b74107f2ba
Use 8 instead of 7 digit long sha
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-09 23:47:22 +11:00
Glenn Vriesman
0cd91a10c6
Increase internal sha size
...
This does not change the sha size that is displayed to the user
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-09 23:47:22 +11:00
Jesse Duffield
f062e1dcda
ignore carriage returns
2020-02-09 16:43:02 +11:00
Glenn Vriesman
9f5397a2d4
Moved function to git.go
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-06 23:19:29 +11:00
Glenn Vriesman
0164abbd4a
Added feature to ignore tracked files
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-06 23:19:29 +11:00
Jesse Duffield
e92af63636
fix goreleaser
2020-02-06 09:45:50 +11:00
Marco Molteni
94501c683b
doc: mention config file location for MacOS
2020-02-06 09:36:29 +11:00
Glenn Vriesman
047c3cf880
Added more keybinds
...
* Commit with editor
* Commit without hook
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-04 23:21:51 +11:00
Glenn Vriesman
47d7d87c82
Added commit keybinding to staging views
2020-02-04 23:21:51 +11:00
Glenn Vriesman
5f53d50492
Check cached when showing new file diffs
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2020-02-04 08:41:41 +11:00
Jesse Duffield
5f71f87496
correctly compare new main height to previous
2020-02-03 21:50:31 +11:00
Chris Taylor
c6cb90e8ca
verify that VISUAL,EDITOR,LGCC envvars are set for non-interactive commands
2020-02-02 11:29:22 +11:00
Chris Taylor
fb156bcaac
add a helper to search a list for a pattern
2020-02-02 11:29:22 +11:00
Chris Taylor
75ba2196ba
perpetuate this style of dependency injection
2020-02-02 11:29:22 +11:00
Chris Taylor
4cb50b15e4
make amend more non-interactive
2020-02-02 11:29:22 +11:00
Jesse Duffield
ca5cbe4d44
bump gocui
2020-02-02 11:26:24 +11:00
Jesse Duffield
df050472a1
more ticker improvements
2020-02-02 11:26:24 +11:00
Jesse Duffield
c173ebf5b9
bump vendor directory
2020-02-01 00:23:22 +11:00
Jesse Duffield
434582b5f5
explicitly tell gocui when to start animating the loader
2020-02-01 00:23:22 +11:00
Jesse Duffield
cf6be928a3
only rerender app status when we need to
2020-02-01 00:23:22 +11:00
Jesse Duffield
c907c55144
close more things when switching repos or to a subprocess
2020-01-31 20:53:08 +11:00
David Chen
ee433ab909
Update example config for Colemak Keyboard Layout users
...
I realized that the current example config in `Config.md` for a Colemak keyboard layout user will cause key conflicts in certain panels. This change addresses that issue.
2020-01-31 19:22:30 +11:00
Jesse Duffield
bf69923b6d
fix keybinding issues with freebsd/openbsd
2020-01-31 08:51:24 +11:00
Jesse Duffield
64782a433e
fix segfault on line by line panel
...
The state object is sometimes undefined in the onclick method of the
line by line panel. Because we set it to nil in a bunch of places,
I've decided to just change the main context to 'normal' before setting
it to nil anywhere. That way the keybindings for the line by line panel
won't get executed and we won't get a segfault.
2020-01-31 08:27:49 +11:00
Jesse Duffield
44edb49a6e
handle files that were deleted downstream but modified upstream
2020-01-29 19:07:47 +11:00
Jesse Duffield
1a6d269063
split main view vertically
...
When staging lines (or doing anything that requires the main view to split into two)
we want to split vertically if there's not much width available in the window.
If there is enough width we will split horizontally. The aim here is to allow for
sufficient room in the side panel. We might need to tweak this or make it configurable
but I think it's set to a pretty reasonable default i.e. switching to split vertically
when the window width falls under 220
2020-01-29 18:44:50 +11:00
Jesse Duffield
b64953ebdb
safely unstage lines
2020-01-29 18:19:11 +11:00
Jesse Duffield
deaa2bcb15
remove rollbar
2020-01-29 17:29:36 +11:00
Jesse Duffield
c166c57c5d
make use of branch config when pushing/pulling
2020-01-29 15:19:19 +11:00
Jesse Duffield
6b77e4ee4a
fix comment
2020-01-28 22:18:55 +11:00
Jesse Duffield
e5534f060d
use reflog timestamps rather than commit timestamps to show commit recency
2020-01-28 22:12:48 +11:00
Dawid Dziurla
466e0be560
Merge pull request #597 from jamiebrynes7/bugfix/fix-crash-on-exit
...
Fix crash on exit
2020-01-16 07:38:25 +01:00
Jamie Brynes
810adab957
handle case where file watcher is disabled
2020-01-16 00:30:53 +00:00
Jesse Duffield
83a3c9fc8d
handle when fsnotify doesn't work
2020-01-12 14:46:23 +11:00
Jesse Duffield
5e95019b3f
Missed a spot with this new string task thing
...
The issue here was that we were using a string task
but expecting to be able to set the origin straight after
to point at the conflict, but because it's async it was
actually resetting the origin to 0 after a little bit.
The proper solution here is maybe to add a flag to that thing
asking whether you want to reset main's origin. But I'm
too lazy to do that right now so instead I'm just using
setViewContent. That will probably cause issues in the future.
2020-01-12 14:43:17 +11:00
Jesse Duffield
8e7f278094
use mutexes on escape code
2020-01-12 14:01:45 +11:00
Jesse Duffield
83a895a463
reset origin when clicking on list item
2020-01-12 13:55:14 +11:00
Jesse Duffield
59ae1e1599
bump gocui
2020-01-12 13:55:14 +11:00
Jesse Duffield
77a82e9d51
use view line height to see if you should stop scrolling
2020-01-12 13:55:14 +11:00
Jesse Duffield
bd79c2e8dc
keep track of current view when pushing
2020-01-12 11:17:20 +11:00
Jesse Duffield
23bcc19180
allow fast flicking through any list panel
...
Up till now our approach to rendering things like file diffs, branch logs, and
commit patches, has been to run a command on the command line, wait for it to
complete, take its output as a string, and then write that string to the main
view (or secondary view e.g. when showing both staged and unstaged changes of a
file).
This has caused various issues. For once, if you are flicking through a list of
files and an untracked file is particularly large, not only will this require
lazygit to load that whole file into memory (or more accurately it's equally
large diff), it also will slow down the UI thread while loading that file, and
if the user continued down the list, the original command might eventually
resolve and replace whatever the diff is for the newly selected file.
Following what we've done in lazydocker, I've added a tasks package for when you
need something done but you want it to cancel as soon as something newer comes
up. Given this typically involves running a command to display to a view, I've
added a viewBufferManagerMap struct to the Gui struct which allows you to define
these tasks on a per-view basis.
viewBufferManagers can run files and directly write the output to their view,
meaning we no longer need to use so much memory.
In the tasks package there is a helper method called NewCmdTask which takes a
command, an initial amount of lines to read, and then runs that command, reads
that number of lines, and allows for a readLines channel to tell it to read more
lines. We read more lines when we scroll or resize the window.
There is an adapter for the tasks package in a file called tasks_adapter which
wraps the functions from the tasks package in gui-specific stuff like clearing
the main view before starting the next task that wants to write to the main
view.
I've removed some small features as part of this work, namely the little headers
that were at the top of the main view for some situations. For example, we no
longer show the upstream of a selected branch. I want to re-introduce this in
the future, but I didn't want to make this tasks system too complicated, and in
order to facilitate a header section in the main view we'd need to have a task
that gets the upstream for the current branch, writes it to the header, then
tells another task to write the branch log to the main view, but without
clearing inbetween. So it would get messy. I'm thinking instead of having a
separate 'header' view atop the main view to render that kind of thing (which
can happen in another PR)
I've also simplified the 'git show' to just call 'git show' and not do anything
fancy when it comes to merge commits.
I considered using this tasks approach whenever we write to a view. The only
thing is that the renderString method currently resets the origin of a view and
I don't want to lose that. So I've left some in there that I consider harmless,
but we should probably be just using tasks now for all rendering, even if it's
just strings we can instantly make.
2020-01-12 11:17:20 +11:00
Jesse Duffield
282f08df36
lazyload commits
2020-01-12 10:10:56 +11:00
Jesse Duffield
d647a96ed5
add reflog reset options
2020-01-09 22:36:07 +11:00
Jesse Duffield
1b64ea3210
add checkout reflog commit keybinding
2020-01-09 22:36:07 +11:00
Jesse Duffield
9b32e99eb8
add reflog tab in commits panel
2020-01-09 22:36:07 +11:00
Jesse Duffield
79e696d8a7
switch to 'i' for toggling diff commits
2020-01-08 22:59:12 +11:00
Jesse Duffield
a3ea19be8e
update to new goreleaser schema
2020-01-08 22:48:35 +11:00
Jesse Duffield
e0015a52e5
refresh side panels when resetting to upstream
2020-01-08 22:30:54 +11:00
Jamie Brynes
aea4661be5
escape editor path
2020-01-08 22:24:36 +11:00
Jesse Duffield
80377e4716
add git flow support
2020-01-08 22:03:15 +11:00
Jesse Duffield
c3d54f3c2e
don't watch deleted files
2020-01-08 21:57:39 +11:00
Jesse Duffield
c7d367a791
minor fixup
2020-01-08 21:55:52 +11:00
Jesse Duffield
ba4253668d
reduce to 50
2020-01-08 21:41:39 +11:00
Jesse Duffield
1ce5c69cd2
improve file watching
...
By default, macs have 256 open files allowed by a given process.
This sucks when you end up with over 256 files modified in a repo
because after you've watched all of them, lots of other calls to
the command line will fail due to violating the limit.
Given there's no easy platform agnostic way to see what you've got
configured for how many files a process can have open, I'm going to
arbitrarily set the max to 200 and when we hit the limit we start
unwatching older files to make way for new ones.
WIP
2020-01-08 21:34:02 +11:00
David Chen
205d731d7b
added a seperate keybinding option for checking out commits
2020-01-07 19:14:54 -08:00
David Chen
3e875cc593
fix display of menu option keybindings
2020-01-07 13:26:29 -08:00
David Chen
de2cfc7e17
cleanup
2020-01-07 12:48:11 -08:00
David Chen
e72cab81c1
customizable keybinding for toggleDiffCommit
2020-01-07 10:03:13 -08:00
David Chen
844a2db83a
Merge branch 'master' into custom-keybindings
2020-01-07 09:57:06 -08:00
David Chen
529ba45cc7
fixed keybinding display in merge_panel.go
2020-01-07 09:50:25 -08:00
Jesse Duffield
09aabce3cd
allow commits to be checked out
2020-01-07 20:43:01 +11:00
Jesse Duffield
eb2bfd3848
allow hard resetting to upstream branch
2020-01-07 20:26:01 +11:00
Dawid Dziurla
adb5c8fe06
Merge pull request #576 from mattn/set-ascii
...
Use ASCII on Windows with east asian locale
2020-01-07 05:09:35 +01:00
Yasuhiro Matsumoto
d914d40b2e
Use ASCII on Windows with east asian locale
2020-01-07 11:32:11 +09:00
David Chen
66c7672a0c
updated keybinding config docs
2020-01-07 08:38:07 +08:00
David Chen
983379d334
Merge branch 'master' into custom-keybindings
2020-01-07 00:03:49 +08:00
David Chen
fd72a09d1e
if statements to map
2020-01-06 23:37:33 +08:00
David Chen
0ddf7c05c8
PickBothHunks -> pickBothHunks
2020-01-06 23:37:21 +08:00
Dawid Dziurla
818134247d
Merge pull request #575 from jesseduffield/ubuntu-daily-deprecate
...
README: drop ubuntu daily
2020-01-06 15:29:49 +01:00
Dawid Dziurla
ed020e18a0
README: drop ubuntu daily
2020-01-06 15:26:29 +01:00
Dawid Dziurla
9e5acb84c0
Merge pull request #574 from jamiebrynes7/bugfix/apply-patch-windows
...
Fix applying patch on Windows machines
2020-01-05 21:46:15 +01:00
Jamie Brynes
5e45ae1584
fix applying patch on Windows machine
...
This bug was caused how the timestamp was formatted for the patch file.
On Windows machines, ":" is an invalid character for a filename, but the
`stampNano` format for time contains ":".
This fix adjusts the time format to be the `stampNano` format with "."
subsituted for ":".
2020-01-05 20:01:20 +00:00
David Chen
86b101c410
Merge branch 'master' into custom-keybindings
2020-01-04 08:12:36 +00:00
Dawid Dziurla
96ca7262e4
Merge pull request #572 from matejcik/master
...
make Ctrl+P visible
2020-01-03 15:13:48 +01:00
matejcik
0a31edecb6
make Ctrl+P visible
2020-01-03 15:09:59 +01:00
Dawid Dziurla
6ac6d142c0
Merge pull request #573 from jesseduffield/ubuntu-readme-update
...
README: update ubuntu info
2020-01-03 14:58:29 +01:00
Dawid Dziurla
5bb9900220
README: update ubuntu info
2020-01-03 14:49:51 +01:00
David Chen
f99a200db0
Merge branch 'master' into custom-keybindings
2019-12-14 10:57:46 -08:00
Dawid Dziurla
24e73cdd8b
Merge pull request #564 from jesseduffield/update-deps
...
update dependencies
2019-12-13 11:36:05 +01:00
Dawid Dziurla
be8f589c32
update dependencies
2019-12-13 11:31:04 +01:00
Dawid Dziurla
3074ae99ea
Merge pull request #560 from tim77/tim77-patch-1
...
Fedora installation instructions
2019-12-13 11:24:22 +01:00
Artem Polishchuk
873fe41ab3
Fedora installation instructions
2019-12-13 11:19:42 +01:00
David Chen
029de4ac86
re-position key names so that the menu will show 'enter' instead of 'ctrl-m', or 'esc' instead of 'ctrl-['
2019-12-08 14:57:29 -08:00
David Chen
5f21f190b9
Merge branch 'master' into custom-keybindings
2019-12-08 14:40:11 -08:00
Jesse Duffield
dab78c8a63
stop the files panel from stealing focus whenever files are refreshed
2019-12-08 21:27:28 +11:00
David Chen
0d1230a959
added keybinding for fetchRemote
2019-12-07 09:26:17 -08:00
David Chen
c507e5f562
Merge branch 'master' into custom-keybindings
2019-12-07 09:19:43 -08:00
David Chen
63e353ad6a
updated docs/examples
2019-12-06 22:48:19 -08:00
David Chen
7194dfa43c
better error messages
2019-12-06 22:39:41 -08:00
David Chen
e425f1df87
suggested keybinding improvements
2019-12-06 22:36:52 -08:00
Jesse Duffield
3f4613feb0
allow fetching remotes with 'f'
2019-12-07 16:23:04 +11:00
Jesse Duffield
033c21754b
fix commit message char count
2019-12-07 16:21:26 +11:00
David Chen
c89c35c6b3
bug fix: ctrl+combinations was not showing up in help menu
2019-12-06 10:26:39 -08:00
David Chen
1dbfea54bc
better error handling
2019-12-04 19:16:47 -08:00
David Chen
0af8784707
added all possible custom keybindings to the documentation
2019-12-04 18:46:00 -08:00
David Chen
2ca5766f56
included default config file path
2019-12-04 18:35:29 -08:00
David Chen
a0b842204c
exmaple keybindings for colemak users
2019-12-04 18:35:07 -08:00
David Chen
0a26050b47
fix
2019-12-04 18:33:00 -08:00
David Chen
c50ab9872d
update documentation for custom keybindings
2019-12-04 18:18:28 -08:00
David Chen
fa6893fda9
feature: custom keybindings
2019-12-04 18:01:06 -08:00
Dawid Dziurla
710abded64
Merge pull request #554 from jesseduffield/alias-V-v-keybinding
...
keybindings: alias V -> v
2019-11-27 20:40:17 +01:00
Dawid Dziurla
1c38db1fc7
keybindings: alias V -> v
2019-11-27 20:37:07 +01:00
Jesse Duffield
339e1b5dcf
lenient sorting of tags on startup
2019-11-26 21:39:40 +11:00
Jesse Duffield
7113ed73d4
support older versions of git when getting remote branches
2019-11-26 21:36:07 +11:00
Jesse Duffield
3dd1daacdc
unescape another string
2019-11-21 22:17:18 +11:00
Jesse Duffield
bad06bb634
fix typo
2019-11-21 22:09:02 +11:00
Jesse Duffield
e18e81f5eb
don't pass single commands directly to RunCommand (or equivalent function)
...
when it contains percentages.
This is a really strange one. It's a linting warning in my editor
and it doesn't stop me from compiling, but it breaks `go test`.
A basic file to reproduce what I'm talking about:
package main
import "fmt"
func main() {
notSprintf("test %s") // compiler complains here thinking %s needs a corresponding argument
}
func notSprintf(formatStr string, formatArgs ...interface{}) string {
if formatArgs != nil {
return formatStr
}
return fmt.Sprintf(formatStr, formatArgs...)
}
2019-11-21 22:07:14 +11:00
Jesse Duffield
67a446234c
fix specs
2019-11-21 22:07:14 +11:00
Jesse Duffield
f905b27b00
couple of things to clean up after rebasing onto master
2019-11-21 22:07:14 +11:00
Jesse Duffield
e36ee0b4f1
give RunCommand the same input signature as fmt.Sprintf
2019-11-21 22:07:14 +11:00
Jesse Duffield
3c13229145
add tags panel
2019-11-21 22:07:14 +11:00
Jesse Duffield
cea24c2cf9
allow editing remotes
2019-11-21 22:07:14 +11:00
Jesse Duffield
64017cf874
require double clicking menu items so you know what you're clicking
2019-11-21 22:07:14 +11:00
Jesse Duffield
b3bce8a1ba
refactor confirmation prompt code
2019-11-21 22:07:14 +11:00
Jesse Duffield
3b0cef2ec8
better handling of click events in list views
2019-11-21 22:07:14 +11:00
Jesse Duffield
07cbae4019
support setting upstream
2019-11-21 22:07:14 +11:00
Jesse Duffield
b42202ea1c
better fast forward
2019-11-21 22:07:14 +11:00
Jesse Duffield
8347dcd671
make upstream branch display more lenient on git errors
2019-11-21 22:07:14 +11:00
Jesse Duffield
dcb5285797
support rebasing onto remote branch
2019-11-21 22:07:14 +11:00
Jesse Duffield
a9cd647075
support deleting remote branches
2019-11-21 22:07:14 +11:00
Jesse Duffield
f0cd730fbb
ensure we switch tabs when switching context
2019-11-21 22:07:14 +11:00
Jesse Duffield
2afbd7ba7f
support merging remote branches into checked out branch
2019-11-21 22:07:14 +11:00
Jesse Duffield
55ff0c0dee
support detached heads when showing the selected branch
2019-11-21 22:07:14 +11:00
Jesse Duffield
6b7aaeca45
support adding/removing remotes
2019-11-21 22:07:14 +11:00
Jesse Duffield
1f3e1720a3
split RemoteBranch out from Branch
2019-11-21 22:07:14 +11:00
Jesse Duffield
b7f2d0366b
get branches with git for-each-ref
2019-11-21 22:07:14 +11:00
Jesse Duffield
6bd0979b4a
only refresh branches panel on focus lost when in the local-branches context
2019-11-21 22:07:14 +11:00
Jesse Duffield
986abc1e45
support viewing a remote branch
2019-11-21 22:07:14 +11:00
Jesse Duffield
61dac10bb9
support navigating remotes view
2019-11-21 22:07:14 +11:00
Jesse Duffield
b5385f2560
remove redundant logging
2019-11-21 22:07:14 +11:00
Jesse Duffield
92e43d9e77
allow changing tabs with [ and ]
2019-11-21 22:07:14 +11:00
Jesse Duffield
325408d0e3
get remote branches when getting remotes
2019-11-21 22:07:14 +11:00
Jesse Duffield
eeb667954f
trying to use gogit with branches from remotes
2019-11-21 22:07:14 +11:00
Jesse Duffield
8aa1062e06
extract out some logic for list views
2019-11-21 22:07:14 +11:00
Jesse Duffield
7e0a8f235e
add contexts to views
2019-11-21 22:07:14 +11:00
Jesse Duffield
44bbc106a9
bump gocui to get contexts on keybindings
2019-11-21 22:07:14 +11:00
Jesse Duffield
e6be849eb2
add remotes context to branches view
2019-11-21 22:07:14 +11:00
Jesse Duffield
092f27495a
add remote model
2019-11-21 22:07:14 +11:00
Dawid Dziurla
7849f91d80
Merge pull request #543 from lhaeger/master
...
Readme: add MacPorts install source
2019-11-17 09:14:29 +01:00
Lothar Haeger
5f769da74d
Readme: add MacPorts install source
2019-11-17 08:08:04 +01:00
Jesse Duffield
963c034b48
go mod tidy && go mod vendor
2019-11-14 22:22:47 +11:00
Jesse Duffield
f15e47bb67
add file watching for modified files
...
log createErrorPanel error
swallow error when adding file to watcher
2019-11-14 22:22:47 +11:00
Jesse Duffield
7995d56a85
allow editing or opening a file while resolving merge conflicts
2019-11-14 22:22:47 +11:00
Jesse Duffield
30aed94aa8
update go git
2019-11-14 09:41:56 +11:00
Jesse Duffield
3b1d705473
show upstream branch for branch
2019-11-13 22:25:42 +11:00
Jesse Duffield
f43ba728e3
prompt to set upstream when pulling on untracked branch
...
prompt to set upstream when pulling on untracked branch
2019-11-13 21:36:16 +11:00
Dawid Dziurla
b662362570
Merge pull request #538 from jesseduffield/dawidd6-patch-1
...
README: fix typo
2019-11-12 23:46:27 +01:00
Dawid Dziurla
99ece6fc35
README: fix typo
...
945fccd211
2019-11-12 23:42:57 +01:00
Jesse Duffield
8287659584
fix up pty fork
2019-11-12 22:58:01 +11:00
Jesse Duffield
cf95ab9a28
go mod vendor
2019-11-12 22:58:01 +11:00
Jesse Duffield
b907c74386
remove go-getter
2019-11-12 22:58:01 +11:00
Dawid Dziurla
a68fb4fb8f
Merge pull request #533 from JaanJah/patch-1
...
Fix typo in README `.zhsrc` -> `.zshrc`
2019-11-11 18:09:30 +01:00
jaanjahimees
945fccd211
Fix typo in README .zhsrc -> .zshrc
...
Fix typo in `Changing Directory On Exit` section
2019-11-11 18:07:11 +02:00
Jesse Duffield
12b84307ac
specify upstream when pushing a branch for the first time
2019-11-11 23:30:30 +11:00
Jesse Duffield
6843741d9e
Update README.md
2019-11-11 21:48:39 +11:00
Jesse Duffield
945edb253b
Update README.md
2019-11-11 21:45:37 +11:00
Jesse Duffield
cbc82cd3c1
allow for changing the current directory on exit
...
For this to work you'll need to put this in your ~/.zshrc (or equivalent rc file):
lg()
{
export LAZYGIT_NEW_DIR_FILE=/Users/jesseduffieldduffield/Library/Application\ Support/jesseduffield/lazygit/.lastd
lazygit "$@"
if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null
fi
}
2019-11-11 21:45:31 +11:00
Jesse Duffield
29ee239987
Update README.md
2019-11-10 23:31:19 +11:00
Glenn Vriesman
3f7e107d09
Vendor: Updated dependencies
...
* Updated go.mod
* Updated go.sum
* Updated vendor packages
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2019-11-10 23:23:20 +11:00
Jesse Duffield
22c0d79e2d
rm go.sum && go mod vendor
2019-11-10 22:37:06 +11:00
Jesse Duffield
e174e5254d
support clicking through to commit files panel
2019-11-10 22:32:13 +11:00
Jesse Duffield
de5bcb8b9c
add some shameless self promotion
2019-11-10 22:32:13 +11:00
Jesse Duffield
98666186ee
add '?' keybinding for opening options menu
2019-11-10 22:32:13 +11:00
Jesse Duffield
941d3c6648
allow secondary view to be scrolled
2019-11-10 22:32:13 +11:00
Jesse Duffield
5c518eda0a
bump gocui (this better work or so hope me god I'm switching back to go dep)
...
jks I'm that that close to the edge... but I am getting there haha
2019-11-10 22:32:13 +11:00
Jesse Duffield
df72eee201
don't try to give a logrus entry object to gocui
2019-11-10 22:32:13 +11:00
Jesse Duffield
131113b065
simplify how the context system works
2019-11-10 22:32:13 +11:00
Jesse Duffield
e85310c0a9
add mouse support
2019-11-10 22:32:13 +11:00
Jesse Duffield
cd17b46b55
reset patch builder when we've escaped from the building phase and nothing has been added
2019-11-10 16:18:25 +11:00
Jesse Duffield
d0d92c7697
remove old add patch keybinding
2019-11-10 15:01:40 +11:00
Jesse Duffield
89a9b4e6d5
Update README.md
2019-11-10 10:17:35 +11:00
Jesse Duffield
592a2ff196
Update README.md
2019-11-10 10:07:43 +11:00
Jesse Duffield
17ed90c790
Update README.md
2019-11-10 10:02:04 +11:00
Jesse Duffield
9e0b335669
Update README.md
2019-11-10 09:02:00 +11:00
Jesse Duffield
194c554357
support ours/theirs merge conflict headers
2019-11-08 09:31:27 +11:00
Jesse Duffield
c65790b53d
Update README.md
2019-11-06 23:18:03 +11:00
Jesse Duffield
2f37c0caaf
fix tests
2019-11-05 19:22:01 +11:00
Jesse Duffield
86a39e3aea
only test with non-original header
2019-11-05 19:22:01 +11:00
Jesse Duffield
326b1ca8c9
better titles
2019-11-05 19:22:01 +11:00
Jesse Duffield
72fe770974
better interface for ApplyPatch function
2019-11-05 19:22:01 +11:00
Jesse Duffield
db8c398fa3
strip whitespace when there is nothing else
2019-11-05 19:22:01 +11:00
Jesse Duffield
861bcc38be
fix ambiguous condition
2019-11-05 19:22:01 +11:00
Jesse Duffield
cd3874ffb7
don't let patch manager ever be nil
2019-11-05 19:22:01 +11:00
Jesse Duffield
10fe88a2cf
more work on managing focus when applying patch command
2019-11-05 19:22:01 +11:00
Jesse Duffield
1a38bfb76d
do not return focus to commitsFiles view after selecting to start a new patch
2019-11-05 19:22:01 +11:00
Jesse Duffield
beaebb7dc7
handling when to show the split panel
2019-11-05 19:22:01 +11:00
Jesse Duffield
6d5d054c30
support line by line additions in staging and patch building contexts
2019-11-05 19:22:01 +11:00
Jesse Duffield
2344155379
handle empty commit in rebase
2019-11-05 19:22:01 +11:00
Jesse Duffield
48347d4d86
use fallback approach for applying patch
2019-11-05 19:22:01 +11:00
Jesse Duffield
61deaaddb7
reorder patch command options
2019-11-05 19:22:01 +11:00
Jesse Duffield
0046e9c469
create backups of patch files in case something goes wrong
2019-11-05 19:22:01 +11:00
Jesse Duffield
733145d132
clear patch after successful patch operation
2019-11-05 19:22:01 +11:00
Jesse Duffield
f285d80d0e
move PatchManager to GitCommand
2019-11-05 19:22:01 +11:00
Jesse Duffield
0ffccbd3ee
checks for if we're in a normal working tree state
2019-11-05 19:22:01 +11:00
Jesse Duffield
1fc120de2d
better rebase args
2019-11-05 19:22:01 +11:00
Jesse Duffield
d5e443e8e3
Support building and moving patches
...
WIP
2019-11-05 19:22:01 +11:00
Jesse Duffield
a3c84296bf
use array of ints instead of range
2019-11-05 19:22:01 +11:00
Jesse Duffield
cc039d1f9b
don't unsplit main panel unconditionally on focus lost
2019-11-05 19:22:01 +11:00
Dawid Dziurla
2484ec9c11
fix headerRegexp
2019-11-05 19:22:01 +11:00
Dawid Dziurla
5f9de1f034
please golang-ci
2019-11-05 19:22:01 +11:00
Dawid Dziurla
66eaaf9cbb
go mod vendor
2019-11-05 19:22:01 +11:00
Dawid Dziurla
87ac193b5e
fix module checksum mismatch
2019-11-05 19:22:01 +11:00
Jesse Duffield
11e57edbb3
use v keybindings instead of c
2019-11-05 19:22:01 +11:00
Jesse Duffield
4f2c42ea47
bump gocui
2019-11-05 19:22:01 +11:00
Jesse Duffield
820f3d5cbb
support split view in staging panel and staging ranges
2019-11-05 19:22:01 +11:00
Jesse Duffield
081598d989
rewrite staging to support line ranges and reversing
...
Now we can stage lines by range and we can also stage reversals
meaning we can delete lines or move lines from the working tree
to the index and vice versa.
I looked at how a few different git guis achieved this to iron out
some edge cases, notably ungit and git cola. The end result is
disstinct from both those repos, but I know people care about
licensing and stuff so I'm happy to revisit this if somebody
considers it derivative.
2019-11-05 19:22:01 +11:00
Jesse Duffield
09f268befc
Update FUNDING.yml
2019-10-28 09:43:46 +11:00
Jesse Duffield
4bc974c83c
Update FUNDING.yml
2019-10-28 09:43:36 +11:00
Dawid Dziurla
63da8f48da
Merge pull request #522 from chenrui333/go-1.13
2019-10-27 08:51:03 +01:00
Rui Chen
32d6a17240
Upgrade to go v1.13
2019-10-26 21:53:22 -04:00
Rui Chen
84d869a3a0
Anchor image tag to specific version
2019-10-26 21:50:27 -04:00
Giorgio Previtera
a1c6619401
\#480 Close popup panels before switching to a side view
...
Reusing the `onNewPopupPanel` function to close existing popup panels
(if any) before switching to a new side view. Alse closing any
confirmation prompt.
2019-10-27 12:39:08 +11:00
Giorgio Previtera
3524f6baa9
480 - remove duplication by using a decorator
...
Also use a for loop to append the new keybindings
2019-10-27 12:39:08 +11:00
Giorgio Previtera
ac5cbc1d2c
#480 Allow cycling side panels with number keys
2019-10-27 12:39:08 +11:00
mjarkk
a045313e08
Removed the pkg/gui/theme.go file
...
Moved most functions to the new theme/theme.go
2019-10-20 12:32:57 +11:00
mjarkk
9bd2dc3050
Updated the config.md
2019-10-20 12:32:57 +11:00
mjarkk
02fef3136f
Added light theme option to the settings
2019-10-20 12:32:57 +11:00
Dawid Dziurla
8fe0e00cd9
Merge pull request #516 from glvr182/hotfix/path-not-positional
...
#514 Fix positional flag issue
2019-09-30 21:31:43 +02:00
Glenn Vriesman
f7f19bbc02
Main: Use --path instead of positional
...
* Also puts a placeholder for the merge-todo argument
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2019-09-30 15:08:20 +02:00
Dawid Dziurla
95ae806e09
Merge pull request #414 from glvr182/feature/dir-as-arg
...
Provide git directory as argument to Lazygit
2019-09-24 19:45:46 +02:00
Glenn Vriesman
d8a6f173c3
Mod: Added flaggy to vendor directory
...
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2019-09-24 18:52:52 +02:00
Glenn Vriesman
431f1aa766
Main: Added directory argument
...
* Added a positional argument that allows the user to change the dir
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com >
2019-09-24 18:52:46 +02:00
Dawid Dziurla
379dcf0972
UserConfigPath -> UserConfigDir
2019-09-24 19:01:40 +10:00
Dawid Dziurla
0d25d113c9
download updated binary to config dir rather than /tmp
2019-09-24 19:01:40 +10:00
Dawid Dziurla
7c70913e8d
Merge pull request #513 from jesseduffield/go.sum
...
update go.sum again
2019-09-21 18:30:16 +02:00
Dawid Dziurla
1c5858c515
update go.sum again
2019-09-21 18:02:23 +02:00
Jesse Duffield
c3767bb3b3
update go.sum
2019-09-15 21:16:19 +10:00
Jesse Duffield
b92d27ee7f
force underlying go commands under gox to use the vendor directory
2019-09-15 21:16:19 +10:00
Jesse Duffield
6eff139c40
use vendor directory in test.sh
2019-09-15 21:16:19 +10:00
Jesse Duffield
07462303ab
bump gocui
2019-09-15 21:16:19 +10:00
Jesse Duffield
d12f81b44e
add autoFetch to config doc
2019-09-08 11:20:35 +10:00
matejcik
600112780c
use git.autoFetch config option
2019-09-08 11:20:15 +10:00
matejcik
4c73c8889f
move git config options to top-level in default config
2019-09-08 11:20:15 +10:00
matejcik
68d5c2bc10
use gui.g directly
2019-09-08 11:20:15 +10:00
matejcik
7db1fee877
startBackgroundFetch does not return errors
2019-09-08 11:20:15 +10:00
matejcik
8f786e3fd9
configurable auto-fetch
2019-09-08 11:20:15 +10:00
Dawid Dziurla
1c704e11f2
adjust CI to Go modules
...
relatively brought in line with lazydocker's config
2019-09-01 21:24:03 +10:00
Dawid Dziurla
e0dd1cb29d
switch to Go modules
2019-09-01 21:24:03 +10:00
Giorgio Previtera
827837b0b9
477 Remove unnecessary variable check
...
hasInlineMergeConflicts is always true with hasMergeConflicts is true
2019-07-27 11:05:23 +10:00
Giorgio Previtera
e83ef9858b
#477 Remove NeedMerge boolean
...
Instead of storing the status in a new variable, derive it from
the existing three fields
2019-07-27 11:05:23 +10:00
Giorgio Previtera
504d506575
477 Add new NeedReset property to File and update tests
...
Use a boolean to determin if a file needs to be reset. We want to reset
the file when discrading changes if there is a conflict.
2019-07-27 11:05:23 +10:00
Giorgio Previtera
823b436b53
477 Remove duplicate checkout
...
We already checout the file calling `c.DiscardUnstagedFileChanges`
2019-07-27 11:05:23 +10:00
Giorgio Previtera
212327d746
#477 Discard changes when there are merge conflicts
...
If there are merge conflicts, reset the file and discard all changes
2019-07-27 11:05:23 +10:00
Christian Muehlhaeuser
cc138fc70e
Simplified boolean comparison
2019-07-27 10:55:21 +10:00
Christian Muehlhaeuser
d953712377
err was assigned but never checked
2019-07-27 10:55:01 +10:00
Christian Muehlhaeuser
69ac0036e6
Swallow errors entirely, instead of assigning and ignoring them
2019-07-27 10:53:19 +10:00
Christian Muehlhaeuser
975a5315b0
Simplified code a bit
2019-07-27 10:52:06 +10:00
Christian Muehlhaeuser
8f734b11e3
Removed unnecessary string conversion
2019-07-27 10:51:17 +10:00
Tomáš Horáček
17b4cabc71
Add syntax highlighting to Config.md
...
It's easier to read...
2019-07-27 10:48:30 +10:00
Jesse Duffield
75db4faf69
show actual error when trying to check out a branch that doesn't exist
2019-07-14 14:31:48 +10:00
haowei
e1f5601d4b
fix typo
2019-07-14 14:24:59 +10:00
Giorgio Previtera
b60ecdaa24
472 - Update error message
2019-07-14 14:24:18 +10:00
Giorgio Previtera
9fb9962ce7
472 - Don't panic if not in a repository
...
Display a friendly message and exit with an error if not
in a Git repository. Using the same approach used in this PR:
https://github.com/jesseduffield/lazydocker/pull/14/files
2019-07-14 14:24:18 +10:00
Jesse Duffield
25c93c678d
Create FUNDING.yml
2019-06-30 09:50:28 +10:00
Jesse Duffield
b8baef7b8f
use fork of roll that doesn't care about errors
2019-06-29 20:56:46 +10:00
Jesse Duffield
235a47bb80
Revert "emergency situation: we're not logging to rollrus while we're past the request quota"
...
This reverts commit c107eed890 .
2019-06-29 20:56:46 +10:00
Jesse Duffield
c107eed890
emergency situation: we're not logging to rollrus while we're past the request quota
2019-06-24 12:29:44 +10:00
Jesse Duffield
abddea060e
revert menu panel error panel usage
2019-06-08 20:29:25 +10:00
Jesse Duffield
3e40369fd2
add GIT_OPTIONAL_LOCKS=0 env var to all commands
2019-06-06 20:53:35 +10:00
Jesse Duffield
0f0fda1660
allow stashing staged changes
...
reinstate old stash functionality with the 's' keybinding
2019-06-06 20:50:19 +10:00
Jesse Duffield
bd2170a99c
request explicit return from subprocess
...
Previously we were recording output from subprocesses using a multiwriter
and hooking that up to the cmd's stdout to write to both os.Stdout and
a buffer. We would then display the output after the program finished.
This worked well for commands like 'ls' but not for commands like 'vi'
which expect you to be in a tty, and when you've got the cmd's stdout
pointing at a multiwriter, the subprogram thinks we're not in a tty
and then things like terminal corruption can happen. This was the case
with neovim, and even in vim a warning was given with a pause before
starting the program.
Now we're chucking out the multiwriter and instead making it that you
need to press enter after the program has finished to return to lazygit.
This allows you to view the output of the program (e.g. if it's ls) and
then decide that you want to return. It's one level of unnecessary
redirection for editors like vim, but even they could potentially have
output to stderr/stdout that you want to look at before returning.
Please enter the commit message for your changes. Lines starting
2019-05-26 21:19:54 +10:00
Jesse Duffield
c039e5bed0
support going to start/end of line and deleting lines in simple editor
2019-05-26 12:42:17 +10:00
Jesse Duffield
527c025a0c
use shift+j/k to scroll main, ctrl+j/k to move commits
2019-05-25 16:48:17 +10:00
Jesse Duffield
53cded77f1
fix padding with coloures strings
2019-05-19 15:25:33 +10:00
Jesse Duffield
4a4dc676fc
simplify code for logging output of subprocess
2019-05-18 11:30:10 +10:00
Jesse Duffield
c61bfbdd4c
Support opening lazygit in a submodule
2019-05-12 17:59:49 +10:00
Suhas Karanth
e38d9d5f22
Add alternatives for scroll actions to context map
2019-05-12 16:20:42 +10:00
Suhas Karanth
97f060d38d
Add field Alternative to gui.Binding
...
Document and use alternative keybinding for generating cheatsheet. Add
alt keybinding fn+up/down for scroll up/down actions.
Also run `go run scripts/generate_cheatsheet.go`.
2019-05-12 16:20:42 +10:00
Jesse Duffield
357b8fa98f
Bump gocui fork
2019-05-09 21:27:35 +10:00
mjarkk
8754d766e2
Made not enough space pannel looks better on 1 height
2019-05-07 08:47:41 +02:00
mjarkk
2388c3ee9a
Fixed some sugestions from jesseduffield
2019-05-06 20:04:54 +02:00
Mark Kopenga
61890cb9de
Merge branch 'master' into smaller-ui
2019-05-06 15:24:36 +02:00
Jesse Duffield
5a0d0bb299
support resetting to a commit in either soft, hard, or mixed mode
2019-05-06 22:44:38 +10:00
Jesse Duffield
2746b1bd38
Prevent crash when opening in small window
...
We were crashing when opening lazygit in a small window because the limit view
was the only view that got created, and there were two functions that referenced
either the 'current' view or the files view, neither of which existed.
Now those functions just return nil if the view does not exist
2019-05-06 22:39:35 +10:00
Suhas Karanth
e09aac6450
Improve directory check for .git
...
Return error if the .git exists but is not a directory. This provides a
slightly better failure message for git repo with submodules in case
the '.git' is a file which provides the reference to the parent's .git
folder with the submodule inside.
2019-05-06 21:37:42 +10:00
mjarkk
19a6368377
Changed the way how the view height are set
2019-05-05 15:57:35 +02:00
mjarkk
e6122122e9
Updated the gocui package
2019-05-05 11:50:51 +02:00
mjarkk
492614ebc7
Made the ui even smaller
2019-04-26 08:24:14 +02:00
Mark Kopenga
d31f0ed39b
Merge branch 'master' into smaller-ui
2019-04-26 07:46:45 +02:00
mjarkk
b505c295d2
Fixed another view things
2019-04-26 13:44:37 +10:00
mjarkk
0b9d7edd47
Fixed sugestions
2019-04-26 13:44:37 +10:00
mjarkk
e9fbb608a8
Translated missing sentences
2019-04-26 13:44:37 +10:00
mjarkk
6ba05c94ea
Added another resizing step
2019-04-25 21:37:19 +02:00
mjarkk
07fec6d00e
Made the go bot happy
2019-04-20 16:51:50 +02:00
mjarkk
a69b985086
Better UI on small screens
2019-04-20 15:56:23 +02:00
Jesse Duffield
471733fe03
add english translations to dutch/polish i18n files for translation later
2019-04-13 14:39:46 +10:00
Jesse Duffield
0d3a193ab5
Add 'w' keybinding in files panel to commit as a WIP
...
If your git.skipHookPrefix is set to, say, WIP, in your config, then
hitting 'w' in the files panel will bring up the commit message panel
with 'WIP' pre-filled, so you just need to hit enter to confirm
(or add some more to the message) in order to commit your changes
with the --no-verify flag, meaning the pre-commit hook will be skipped
2019-04-13 14:38:17 +10:00
Jesse Duffield
ab9fa291a8
Add skipHookPrefix to config
...
allows a user to specify a commit message prefix that will tell lazygit to skip
the pre-commit hook. This defaults to WIP. Setting it to the empty string will
disable the feature.
So if my message goes 'WIP: do the thing' then the pre-commit hook will not run
2019-04-13 14:38:17 +10:00
Jesse Duffield
cadc74eeec
Update issue templates
2019-04-13 12:35:09 +10:00
Peter Lundberg
fc3a57b5e2
Change expected sha for DiscardOldFileChanges
2019-04-10 17:17:31 +10:00
Peter Lundberg
7ff07e1454
Always include atleast 2 commits when doing squash and fixup
2019-04-10 17:17:31 +10:00
Jesse Duffield
3e779bca8d
bump gocui to fix invalid point crashing issue
2019-04-10 10:03:35 +10:00
Jesse Duffield
0f1abcb10c
remove subprocess channel stuff
2019-04-07 17:15:01 +10:00
Jesse Duffield
55538a3695
support custom commands
2019-04-07 17:15:01 +10:00
Jesse Duffield
878a15aff4
remove verbose flag from go test
2019-04-07 13:13:40 +10:00
Jesse Duffield
60e33f5d8c
Allow for creating fixup! commits
2019-04-07 13:13:40 +10:00
Claudia
b422692746
Remove custom Homebrew tap from instructions
...
Now that lazygit has been added to the Homebrew core repository
([1] [2]), Homebrew users no longer need to tap into
`jesseduffield/lazygit` to install it.
[1]: https://github.com/jesseduffield/lazygit/issues/256
[2]: https://github.com/Homebrew/homebrew-core/pull/37614
2019-04-06 18:33:27 +11:00
skanehira
f34be1896a
fixed some #397
2019-04-06 13:02:20 +11:00
skanehira
c350cdba43
add feature of display diff between specific commits #397
2019-04-06 13:02:20 +11:00
Jesse Duffield
1a933eaa73
pass length of options to createMenu
2019-03-23 13:26:17 +11:00
Jesse Duffield
bd46e9c5b0
delete menu keybinding before setting new one
2019-03-23 13:26:17 +11:00
Jesse Duffield
09b7ae21bc
always attempt to discard changes from current file
2019-03-23 13:26:17 +11:00
Jesse Duffield
acfc961909
move soft reset keybinding into reset options
2019-03-23 13:26:17 +11:00
Jesse Duffield
f502f75e1f
add more options for resetting files in the working tree
2019-03-23 13:26:17 +11:00
Jesse Duffield
ff97ef7b94
support discarding unstaged changes
2019-03-23 13:26:17 +11:00
Jesse Duffield
a2c780b085
retain commit message if precommit hook fails
2019-03-23 13:07:36 +11:00
Jesse Duffield
b99305c909
push codecov result before compiling on all platforms
2019-03-23 12:00:43 +11:00
Jesse Duffield
d84dfc23e7
Rely on model rather than view to focus a point
...
Currently when we want to focus a point on a view (i.e. highlight a
line and ensure it's within the bounds of a view's box, we use the
LinesHeight method on the view to work out how many lines in total
there are.
This is bad because for example if we come back from editing a file,
the view will have no contents so LinesHeight == 0, but we might
be trying to select line 10 because there are actual ten things we
expect to be rendered already. This causes a crash when e.g. 10 is
greater than the height of the view.
So we need to pass in to our FocusPoint method the actual number of
items we want to render, rather than having the method rely on the
LinesHeight, so that the method knows to scroll a bit before setting
the cursor's y position.
Unfortunately this makes for some awkward code with our current setup.
We don't have a good interface type on these state objects so we now
need to explicitly obtain the len() of whatever array we're rendering.
In the case of the menu panel this is even more awkward because the items
list is just an interface{} and it's not easy to get the list of that, so
now when we instantiate a menu we need to pass in the count of items
as well.
The better solution would be to define an interface with a getItems
and getLength method and have all these item arrays become structs
implementing the interface, but I am too lazy to do this right now :)
2019-03-23 11:54:25 +11:00
Jesse Duffield
9d8fd3594e
remove go modules
...
Perhaps one day we'll revisit this, but right now supporting go modules is just a headache.
Dep does everything we need and it's really easy to work with, and given that supporting both simultaneously is too cumbersome, and I'm too lazy to make the switch to go modules properly, I'm sticking with go dep for now.
2019-03-22 21:28:25 +11:00
Jesse Duffield
e68dbeb7eb
organise keybindings better
2019-03-22 20:20:06 +11:00
skanehira
32ddf0c296
generate commit files keybind
2019-03-18 09:49:23 +11:00
skanehira
c453bfeb32
generate the cheatsheet for each supported language
2019-03-18 09:49:23 +11:00
skanehira
f6ca450d36
add commit files keybind to Keybindings_en.md
2019-03-18 09:49:23 +11:00
Jesse Duffield
d5f617ec92
show some more errors in the gui rather than panicking
2019-03-16 12:51:48 +11:00
Jesse Duffield
6d104bfa91
show file remove error in gui rather than panic
2019-03-16 12:51:48 +11:00
Jesse Duffield
e583cc2519
allow autostashing changes when checking out a branch
2019-03-16 12:51:48 +11:00
Kristijan Husak
0d208b7957
Update bitbucket pull request url.
2019-03-16 11:58:26 +11:00
Jesse Duffield
43e5c042a2
prompt user to git init when outside a repo
2019-03-16 11:38:16 +11:00
Jesse Duffield
39844ffef9
allow a LOG_LEVEL env var to be set
2019-03-16 10:52:30 +11:00
Jesse Duffield
f5c8aac97d
add two more tests
2019-03-16 10:20:27 +11:00
Jesse Duffield
b6447ebdbb
allow adding a file viewed from the commit files panel
2019-03-16 10:20:27 +11:00
Jesse Duffield
466fc4227e
fix tests
2019-03-16 10:20:27 +11:00
Jesse Duffield
c034c88be4
display test name when running tests
2019-03-16 10:20:27 +11:00
Jesse Duffield
72830efc45
add some tests
2019-03-16 10:20:27 +11:00
Jesse Duffield
c98eddc185
appease golangci
2019-03-16 10:20:27 +11:00
Jesse Duffield
3b2353b5ae
remove redundant call to refreshCommitFilesView
...
We already call this function inside the refreshCommitsView function.
We call it there because it's logical that A) one occurs whenever the other does and
B) the commit files only get refreshed after we've updated the commits themselves
2019-03-16 10:20:27 +11:00
Jesse Duffield
3f567c952c
i18n for error message about a feature being disabled for GPG users
2019-03-16 10:20:27 +11:00
Jesse Duffield
4f7f6a073c
allow user to discard old file changes for a given commit
2019-03-16 10:20:27 +11:00
Jesse Duffield
0e008cc15f
allow user to checkout old files
2019-03-16 10:20:27 +11:00
Jesse Duffield
1ad9c6faac
minor cleanup
2019-03-16 10:20:27 +11:00
skanehira
06fe726ee7
Add feature of display committed file list #383
2019-03-16 10:20:27 +11:00
skanehira
1b6e46973e
remove the -o option from Dockerfile
2019-03-08 15:51:23 +11:00
Jesse Duffield
63e2ccfccf
bump go version in CI
2019-03-05 21:56:23 +11:00
Jesse Duffield
6fd4d49db7
update go.sum
2019-03-05 21:56:23 +11:00
Jesse Duffield
2393bc791d
fix cpu drainage issue
2019-03-05 21:56:23 +11:00
Jesse Duffield
398f91decb
Merge branch 'master' of https://github.com/jesseduffield/lazygit
2019-03-04 20:40:51 +11:00
Jesse Duffield
c937a93f79
yet another rebase image for the readme
2019-03-04 20:40:46 +11:00
Jesse Duffield
9402d8b0c0
Update README.md
2019-03-04 20:39:00 +11:00
Jesse Duffield
2a0615da10
get higher res image of rebasing
2019-03-04 20:37:25 +11:00
Jesse Duffield
4be5eaae7b
update readme again
2019-03-04 20:32:17 +11:00
Jesse Duffield
038dcb546e
update readme with new keybindings link
2019-03-03 23:44:50 +11:00
Jesse Duffield
1184990e16
move updated keybindings file
2019-03-03 23:27:19 +11:00
Jesse Duffield
ac5088eee6
allow both enter and space to execute menu item
2019-03-03 23:18:28 +11:00
Jesse Duffield
e36899d5c5
prevent crashes when scrolling up
2019-03-03 23:08:07 +11:00
Jesse Duffield
403526bc50
bump go mod
2019-03-03 16:15:52 +11:00
Jesse Duffield
a5d27764cd
support user configuring mouse events to be enabled
2019-03-03 16:15:20 +11:00
Jesse Duffield
43758cbb5f
i18n for rebase loading states
2019-03-03 16:11:20 +11:00
Jesse Duffield
0079015102
distinguish between inline and non-inline merge conflicts
2019-03-03 15:58:01 +11:00
Jesse Duffield
7a2176f479
acknowledge 'DU' statuses as being merge conflicts
2019-03-03 15:48:16 +11:00
Jesse Duffield
e0bdfad63a
don't crash if we have no lines to stage
2019-03-03 15:48:01 +11:00
Jesse Duffield
f07fc31f8b
fixup layout issue that was causing crashes when the window was too small
2019-03-03 15:34:53 +11:00
Jesse Duffield
4bb577ab7d
show loading status for rebasing events
2019-03-03 15:21:33 +11:00
Jesse Duffield
8305d8e72f
hide donate button if mouse events are disabled
2019-03-03 15:21:20 +11:00
Jesse Duffield
f68166e858
bump gocui to stop polling events after closing the gui when switching to a subprocess
2019-03-03 14:20:25 +11:00
Jesse Duffield
8925b161a7
windows support for skipping the editor
2019-03-03 12:44:10 +11:00
Jesse Duffield
0a1298765c
use sh intead of bash for the sake of testing on the docker image
2019-03-02 21:31:48 +11:00
Jesse Duffield
273678f081
fix issue where you couldn't rearrange commits while rebasing onto a branch
2019-03-02 21:31:48 +11:00
Jesse Duffield
790235f64b
add another match on the error message to tell us we've encountered merge conflicts
2019-03-02 21:31:48 +11:00
Jesse Duffield
abc0f7f0aa
copy lazygit directory into docker container
2019-03-02 21:31:48 +11:00
Jesse Duffield
ab81f27fc7
don't show stack trace if lazygit is started outside of a git repo
2019-03-02 21:31:48 +11:00
Jesse Duffield
dbb01b028d
populate dutch and polish i18n files with new messages
2019-03-02 21:31:48 +11:00
Jesse Duffield
0c886eddfb
Revert "remove old rebase code now that we're only ever interactively rebasing"
...
This reverts commit 1a19b1412d .
2019-03-02 20:00:26 +11:00
Jesse Duffield
399346c2ee
disable mouse feature until its ready
2019-03-02 20:00:17 +11:00
Jesse Duffield
7a170bbccf
extend cheatsheet generator to contain context based keybindings
2019-03-02 19:05:21 +11:00
Jesse Duffield Duffield
8c0ea8f45f
mouse support
2019-03-02 17:49:30 +11:00
Jesse Duffield
afbc028ad6
revert to the old keybinding for stash: I don't want anybody accidentally deleting changes they are trying to stash
2019-03-02 17:46:56 +11:00
Jesse Duffield
e331dfcaf8
update i18n
2019-03-02 17:46:56 +11:00
Jesse Duffield
1337f6e76a
appease golangci
2019-03-02 17:45:53 +11:00
Jesse Duffield
4de31da4be
fix up tests
...
This fixes up some git and oscommand tests, and pulls some tests into commit_list_builder_test.go
I've also made the NewDummyBlah functions public so that I didn't need to duplicate them across packages
I've also given OSCommand a SetCommand() method for setting the command on the struct
I've also created a file utils.go in the test package for creating convient 'CommandSwapper's, which
basically enable you to assert a sequence of commands on the command line, and swap each one out for
a different one to actually be executed
2019-03-02 13:39:09 +11:00
Jesse Duffield Duffield
23c51ba708
cleanup
2019-02-24 18:34:18 +11:00
Jesse Duffield Duffield
19a3ac603d
improve script for making a test repo
2019-02-24 17:54:56 +11:00
Jesse Duffield Duffield
f4938deaae
change type of cherryPickedCommits from []string to []*Commit
2019-02-24 17:34:19 +11:00
Jesse Duffield Duffield
639df512f3
decolorise strings before calculating padwidths
2019-02-24 17:05:17 +11:00
Jesse Duffield Duffield
a8858cbd12
support cherry picking commits
2019-02-24 13:51:52 +11:00
Jesse Duffield Duffield
1a19b1412d
remove old rebase code now that we're only ever interactively rebasing
2019-02-24 11:03:14 +11:00
Jesse Duffield Duffield
95d451e59a
Make it easier to run sync/async commands, switch to interactive rebase when rebasing on branches
2019-02-24 10:58:15 +11:00
Jesse Duffield
6c1d2d45ef
some i18n and restricting rewording during interactive rebase
2019-02-24 09:42:35 +11:00
Jesse Duffield
f6b3a9b184
rearranging todo items while interactively rebasing
2019-02-24 09:42:34 +11:00
Jesse Duffield
cdc50e8557
more support for files with spaces
2019-02-24 09:42:34 +11:00
Jesse Duffield
0173fdb9df
support file renames
2019-02-24 09:42:32 +11:00
Jesse Duffield
9661ea04f3
wrap amend command in a confirmation
2019-02-20 19:46:27 +11:00
Jesse Duffield
0228e25084
work towards more interactive rebase options
2019-02-19 23:36:36 +11:00
Jesse Duffield
935f774834
don't autostash when editing
2019-02-19 09:34:24 +11:00
Jesse Duffield
dcc7855fd0
pull commit list builder functions into their own builder struct
2019-02-19 09:18:30 +11:00
Jesse Duffield
a8e22ed82f
show interactive rebase commits that are yet to go
2019-02-19 09:03:29 +11:00
Jesse Duffield
d44638130c
add various interactive rebase commands
2019-02-18 23:27:54 +11:00
Jesse Duffield
76a27f417f
rename any commit
2019-02-18 21:29:43 +11:00
Jesse Duffield
adc2529019
dealing better with errors at the top level
2019-02-18 19:42:23 +11:00
Jesse Duffield
43ab7318d3
remove HasMergeConflicts struct instance variables
2019-02-18 19:28:02 +11:00
Jesse Duffield
cb372d469f
fix golangci errors
2019-02-16 21:30:29 +11:00
Jesse Duffield
88ba6efdd5
remove outdated TODO
2019-02-16 21:20:10 +11:00
Jesse Duffield
e011e9bc42
more work on rebasing feature
2019-02-16 21:01:17 +11:00
Jesse Duffield
ad93b4c863
consider whether the view has focus when rendering the contents of a view
2019-02-16 15:17:44 +11:00
Jesse Duffield
198cbee498
introduce panel contexts and more work on rebasing
2019-02-16 12:07:27 +11:00
Jesse Duffield
daca07eaca
add loading panel
2019-02-16 12:03:22 +11:00
Jesse Duffield
34acaf7ac4
support users with gotest for coloured test output
2019-02-16 11:35:35 +11:00
Jesse Duffield
d967f65329
fix git tests
2019-02-16 11:24:47 +11:00
Jesse Duffield
306ac41fd8
bump gocui to support loader animations on views
2019-02-15 20:54:03 +11:00
Jesse Duffield
c101993405
post-merge cleanup
2019-02-11 22:47:14 +11:00
Jesse Duffield
6430ab6ac9
Merge branch 'master' into feature/rebasing
2019-02-11 22:46:27 +11:00
Jesse Duffield
e09f3905e9
update go.mod
2019-02-11 22:39:17 +11:00
Jesse Duffield
53e73313a2
bump gocui to version that uses go-errors as well
2019-02-11 22:39:17 +11:00
Jesse Duffield
0891797bf8
bump dep to include go-errors package
2019-02-11 22:39:17 +11:00
Jesse Duffield
cfe3605e6b
use go-errors package to display stacktrace of errors that cause panics
2019-02-11 22:39:17 +11:00
Jesse Duffield
75ab8ec4d9
catch rebase errors and show in error panels
2019-02-11 21:29:47 +11:00
Jesse Duffield
77faf85cfc
post-merge cleanup
2019-02-11 21:07:12 +11:00
Jesse Duffield
3d343e9b57
Merge branch 'master' into feature/rebasing
2019-02-11 21:02:53 +11:00
Jesse Duffield
3a607061a2
Only reset origin in main view when handling the selection of a new file
2019-01-18 09:32:15 +11:00
Jesse Duffield
695b092c41
Directly send wrap argument rather than the view
2019-01-17 10:29:52 +11:00
Jesse Duffield
a38d1a3b68
Explicitly refer confirmation panel view
...
as @jesseduffield pointed in #358 , need to refer
confirmation panel view explicitly in case something
else has focus
Co-Authored-By: KOREAN139 <korean139@gmail.com >
2019-01-17 10:29:52 +11:00
KOREAN139
2dc5e6d503
Fix recent repo view size issue
...
getMessageHeight() calculates height under assumption that given view's
wrap option (view.Wrap) is true, and createMenu() does not set wrap
option as true. this causes gocui set improper view's height when lines
in view needs to be wrapped.
add *gocui.View as parameter in getMessageHeight(), and calculates
view's height depend on its wrap option.
resolve issue #354
2019-01-17 10:29:52 +11:00
Dawid Dziurla
0dcfa09ff2
run go fmt against generator
2019-01-17 10:11:17 +11:00
Dawid Dziurla
d5401ab200
add script generating keybindings cheatsheet
2019-01-17 10:11:17 +11:00
Dawid Dziurla
b6f8ebc0ca
delete KeyReadable field from Binding struct
...
also rewrite GetKey function
2019-01-17 10:11:17 +11:00
KimMachineGune
3e24069722
pkg: Fix typo
2019-01-16 18:06:11 +11:00
Jesse Duffield
c722ea5afc
log in config directory rather than wherever you opened lazygit
2019-01-16 08:54:12 +11:00
Jesse Duffield
c759c7ac65
bump gocui to prevent truncating the contents of wrapped views
2019-01-15 19:56:32 +11:00
Jesse Duffield
e50bd812fc
fix checksum mismatches
2019-01-14 22:12:43 +11:00
KimMachineGune
7ff022f1e7
pkg/updates: Refactoring
2019-01-14 21:52:03 +11:00
Mark Kopenga
1db8801771
Update dutch.go
2018-12-20 09:17:10 +11:00
Mark Kopenga
666ea3a4a0
Fixed suggestion from glvr182
2018-12-20 09:17:10 +11:00
mjarkk
47d50989c4
Added dutch translations
2018-12-20 09:17:10 +11:00
Dawid Dziurla
e4f70278dd
i18n: pl translation
2018-12-20 09:13:41 +11:00
Jesse Duffield
0afffd03ca
remove comment
2018-12-19 21:46:48 +11:00
Jesse Duffield
6c5e409ffa
send direct error message
2018-12-19 20:12:35 +11:00
mjarkk
800b40ecc4
Translated credentials error with git push/pull/fetch
2018-12-19 10:06:58 +01:00
mjarkk
097f687efe
hopefully fixed circleci
2018-12-19 08:56:59 +01:00
Mark Kopenga
aa30e00643
Merge branch 'master' into https-ask-for-username-password
2018-12-19 08:44:14 +01:00
Jesse Duffield
cf56dcf9ff
refresh files every 10 seconds rather than 2 so that we're not getting a heap of index lock errors
2018-12-18 23:04:32 +11:00
Jesse Duffield
c14a4eed0e
bump modules and add bump_modules script
2018-12-18 23:03:26 +11:00
Jesse Duffield
a1b688f070
bump gocui fork to convert tabs to spaces
2018-12-18 23:03:26 +11:00
Cameron Nemo
4793232a35
Update gomodule checksums for go 1.11.4
2018-12-18 22:49:12 +11:00
Jesse Duffield
7835fce708
fix tests
2018-12-18 22:40:36 +11:00
Jesse Duffield
535152e15e
bump go.mod
2018-12-18 22:37:10 +11:00
Jesse Duffield
160af3bb99
fix typo
2018-12-18 22:29:07 +11:00
Jesse Duffield
328b57e2cf
no longer checking for 'exit status 128' because we're directly returning stderr
2018-12-18 22:27:50 +11:00
Jesse Duffield
20a94447d7
explicitly return newlines to our live command stdin
2018-12-18 22:23:17 +11:00
Jesse Duffield
865c7c2332
minor refactor of credentials panel into its own file
2018-12-18 22:19:32 +11:00
Jesse Duffield
11c7cbe3ac
bump pty fork
2018-12-18 22:18:48 +11:00
Jesse Duffield
276ac3a92e
decrease frequency of refreshing files because it's causing index lock errors
2018-12-18 21:28:09 +11:00
Jesse Duffield
a4beabf4b9
improved pre-push test script
2018-12-18 21:27:39 +11:00
Jesse Duffield
c35255b7a9
set stderr ourselves so that we only read the error output if there is any
2018-12-18 21:25:49 +11:00
Jesse Duffield
319064f040
switch to our own fork of pty which lets us set our own stdout and stderr
2018-12-18 21:25:28 +11:00
mjarkk
f5f726e9c4
A try to hide the password from the error output
2018-12-17 08:58:09 +01:00
Jesse Duffield
c56b303b29
add pre-hook to test credentials panel
2018-12-16 17:55:37 +11:00
Jesse Duffield
4886b8350e
always hide rather than delete the credentials view, and don't log on error in case there is a user password in the error
2018-12-16 17:28:04 +11:00
mjarkk
af26b5f3e0
Tried to fix circleci
2018-12-14 13:45:43 +01:00
mjarkk
70cd6700e7
Tried to fix circleci
2018-12-14 13:43:13 +01:00
mjarkk
d11f8989d9
Merge branch 'https-ask-for-username-password' of https://github.com/mjarkk/lazygit into https-ask-for-username-password
2018-12-14 13:40:40 +01:00
mjarkk
0fca27d022
Tried to fix circleci
2018-12-14 13:40:29 +01:00
Mark Kopenga
255319e597
Merge branch 'master' into https-ask-for-username-password
2018-12-14 11:13:29 +01:00
mjarkk
5d038dfd33
Removed the wired error handling
2018-12-12 22:11:31 +01:00
mjarkk
0577d3b97f
Removed the username / password savety check
...
This check is not realy needed because the change that it will show up a second time is so low that this is more work to check than the change it actualy might happen
2018-12-12 21:08:53 +01:00
Jesse Duffield
a26c15dafa
some fixes for issues around the credentials panel
2018-12-12 22:34:20 +11:00
Jesse Duffield
c71bcc64ed
move fetch keybinding to files view to make way for branch-specific fetched
2018-12-12 22:33:42 +11:00
Jesse Duffield
a365615490
only use subprocess for merging, not rebasing
2018-12-11 22:16:48 +11:00
Jesse Duffield
9489a94473
Make merge panel its own panel
2018-12-11 22:02:12 +11:00
Jesse Duffield
e0ff46fe53
more work on rebasing including visual indicators
2018-12-11 09:39:54 +11:00
Glenn Vriesman
cce6f405a5
Making ci happier
2018-12-11 09:39:54 +11:00
Glenn Vriesman
e39d2ed44b
Added check to invoke continue/refresh
2018-12-11 09:39:54 +11:00
Glenn Vriesman
7a7e885773
Added rebase support commands
2018-12-11 09:39:54 +11:00
Glenn Vriesman
34fd18a395
Error handling
2018-12-11 09:39:54 +11:00
Glenn Vriesman
a1ee11e54e
Added error check to satisfy ci
2018-12-11 09:39:54 +11:00
Glenn Vriesman
7b850c56c4
Added some translations
2018-12-11 09:39:54 +11:00
Glenn Vriesman
88c01c1ded
Added rebase keybinding
2018-12-11 09:39:54 +11:00
Glenn Vriesman
27994f7de8
Added rebase handler
2018-12-11 09:39:54 +11:00
Glenn Vriesman
670f0e37c7
Added rebase functions
2018-12-11 09:39:54 +11:00
Glenn Vriesman
822dc5dada
Moved push-pullables status to the end
2018-12-11 09:38:33 +11:00
mjarkk
e20d8366e1
Made gobot happy
2018-12-10 14:21:00 +01:00
mjarkk
76e9582739
Not always git fetch
2018-12-10 13:45:03 +01:00
mjarkk
50f20de8f3
Removed a lot of duplicated code
2018-12-10 08:22:52 +01:00
mjarkk
8e3f5e19e0
Changed some other names
2018-12-10 08:04:22 +01:00
mjarkk
61c2778de1
Changed pushPassUname name to credentials
2018-12-10 07:51:06 +01:00
mjarkk
3c17bf761a
Better name for this function
2018-12-10 07:46:26 +01:00
mjarkk
696d6dc20c
Fixed loop before error check
2018-12-10 07:43:32 +01:00
mjarkk
f14effe5f5
Worked and fixed a view comments
2018-12-09 13:04:19 +01:00
Tommy Nguyen
b95abd95ef
Dockerfile: add alias
2018-12-09 16:36:12 +11:00
Tommy Nguyen
ea6712dec8
Remove -a -installsuffix; copy to /bin/
2018-12-09 16:36:12 +11:00
Tommy Nguyen
de37a66ef3
Dockerfile improvements
2018-12-09 16:36:12 +11:00
mjarkk
efb82a58ae
Tried to fix circleci error
2018-12-08 16:54:00 +01:00
Mark Kopenga
19a6a32625
Merge branch 'master' into https-ask-for-username-password
2018-12-08 16:41:39 +01:00
mjarkk
270658fc00
Made code ready to merge to master's latest commit
2018-12-08 16:40:22 +01:00
Jesse Duffield
ff856b7630
fetching branches without checking out
2018-12-08 11:51:47 +11:00
Jesse Duffield
ca3afa2a39
standardising how list panels deal with cursor movement
2018-12-08 11:51:47 +11:00
Jesse Duffield
99a8b1ae8b
making a start on unidirectional data binding to fix these UI bugs
2018-12-08 11:51:47 +11:00
Jesse Duffield
ccc771d8b1
Merge pull request #342 from jesseduffield/hotfix/faster-reset-hard-head
...
Faster reset --hard head and clean as well
2018-12-08 10:04:27 +11:00
mjarkk
cf5a85b80f
Intro message stays on screen now
2018-12-07 19:22:22 +01:00
mjarkk
2f7bd2896c
Fixed error when there is no state.yml
2018-12-07 15:46:49 +01:00
mjarkk
8f904ffd72
Working popup
2018-12-07 14:56:29 +01:00
mjarkk
ced81e11f0
Only show private repo popup when opening repo for first time
2018-12-06 22:05:16 +01:00
mjarkk
6d0fa8bc29
Made some small inprovements
2018-12-06 09:05:51 +01:00
mjarkk
21a808a52b
Renamed branch to branches
2018-12-06 08:39:49 +01:00
mjarkk
89c272eed5
Removed the tabs for spaces
2018-12-06 08:33:04 +01:00
Mark Kopenga
1b6d34e76a
Merge branch 'master' into https-ask-for-username-password
2018-12-06 08:31:12 +01:00
mjarkk
6711543634
Made the gobot happy again
2018-12-06 08:28:56 +01:00
mjarkk
f6e83cdbdf
Started working on the popup
2018-12-06 08:26:05 +01:00
Jesse Duffield
3b51d7cd00
clean as well as reset (I'm hoping this is a good design decision)
2018-12-05 20:06:47 +11:00
Jesse Duffield
66512ca253
use porcelain git rather than go-git for reset --hard HEAD because go-git takes over 5 seconds
2018-12-05 19:49:07 +11:00
Jesse Duffield
1a6a69a8f1
You can now stage changes one line at a time
...
Staging Lines
2018-12-05 19:40:22 +11:00
Jesse Duffield
933874fb25
dutch and polish translations to be updated
2018-12-05 19:33:54 +11:00
Jesse Duffield
c0f9795910
staging lines and hunks
2018-12-05 19:33:46 +11:00
Jesse Duffield
658e5a9faf
initial support for staging individual lines
2018-12-04 22:11:48 +11:00
Jesse Duffield
99824c8a7b
add patch modifier struct
2018-12-04 22:11:48 +11:00
Jesse Duffield
60060551bf
Merge pull request #336 from BlakeMScurr/auto-fix-function-comments
...
Fix function comments with CodeLingo.
2018-12-03 09:33:42 +11:00
mjarkk
c269ad1370
Made the bot happy
2018-12-02 15:06:51 +01:00
mjarkk
2edd2b74ff
Removed a lot of useless code
2018-12-02 14:58:18 +01:00
BlakeMScurr
181f91d2ef
Add full stops to new comments.
2018-11-30 13:47:14 +13:00
BlakeMScurr
643cdd3461
Add simple comments to uncommented functions.
2018-11-30 11:04:08 +13:00
BlakeMScurr
5c70d2724b
Fix function comments with CodeLingo.
2018-11-28 15:31:22 +13:00
Jesse Duffield
55712f509c
Merge pull request #333 from jirfag/master
...
fix 'main' redefinition in scripts/ dir
2018-11-26 19:54:08 +11:00
mjarkk
d91493b587
Forgot to set the git fetch timeout back to 60s
2018-11-25 13:23:32 +01:00
mjarkk
9da1382e09
Added credentials popup
2018-11-25 13:15:36 +01:00
Denis Isaev
4e8e4612bd
fix 'main' redefinition in scripts/ dir
2018-11-24 12:23:46 +03:00
mjarkk
adfc00bcdc
Changed the waitForGroup to a channel
2018-11-23 13:58:30 +01:00
Mark Kopenga
b0eaf507a5
Merge branch 'master' into https-ask-for-username-password
2018-11-14 13:40:17 +01:00
Jesse Duffield
b9ecb82cb7
Merge pull request #328 from jesseduffield/feature/detached-heads
...
support Detached heads
2018-11-14 22:07:33 +11:00
mjarkk
448d9caf1b
Fixed typo
2018-11-14 11:40:32 +01:00
Mark Kopenga
6d2bf0b0b5
Merge branch 'master' into https-ask-for-username-password
2018-11-14 11:34:39 +01:00
Jesse Duffield
5160668efd
Merge branch 'master' into feature/detached-heads
2018-11-14 21:23:44 +11:00
Jesse Duffield
0eb1e4a86b
change how we build our list of branches to support detached heads
2018-11-14 21:19:12 +11:00
mjarkk
0c4c00c1bf
Removed useless channel read
2018-11-14 11:14:31 +01:00
Jesse Duffield
cc7d78f1ee
Merge pull request #315 from glvr182/feature/translations
...
Fixed and added some dutch translations
2018-11-14 20:50:08 +11:00
Jesse Duffield
b8d5adcb84
Merge branch 'master' into feature/translations
2018-11-14 19:35:51 +11:00
Jesse Duffield
a5f483fae9
refactor obtaining current branch name
2018-11-14 19:08:42 +11:00
Jesse Duffield
775d910bdc
Merge pull request #326 from KOREAN139/master
...
add scroll-past-bottom configuration option
2018-11-14 18:49:21 +11:00
mjarkk
18a1070c2c
Trying to fix circleci
2018-11-10 18:24:37 +01:00
mjarkk
9fafd7ebc1
Fixed case that a commit message will break git push
2018-11-10 18:10:53 +01:00
mjarkk
bc14b01d03
just a test :)
2018-11-10 17:25:35 +01:00
mjarkk
80c6e0a8c4
Fixed pushing forever
2018-11-10 17:02:39 +01:00
mjarkk
8742c4c110
Removed some variables and placed them inside the gui struct
2018-11-10 09:27:03 +01:00
mjarkk
32ecc6d745
Removed getPushPassUnameView function
2018-11-10 09:09:18 +01:00
mjarkk
834e42897d
Switched back to github.com/mgutz/str instaid of a copy of ToArgv
2018-11-10 08:57:02 +01:00
mjarkk
500267417b
Removed some duplicated code
2018-11-10 08:46:42 +01:00
mjarkk
18bcc0df4d
Fixed no error text on windows
...
when executing a command live on windows it detects errors but did just show a empty string
2018-11-10 08:43:02 +01:00
mjarkk
5ae0e75e5e
Switched to channels instaid of a mutex
2018-11-10 08:39:09 +01:00
mjarkk
1fd8cadd9e
Replaced regex with trim
2018-11-10 08:14:35 +01:00
KOREAN139
9d79d32c94
add scroll-past-bottom configuration option
...
with gui.scrollPastBottom option true, lazygit let user scroll past the
bottom - which is default
if option is false, user cannot scroll further when bottom of file has
appeared in mainView
2018-11-08 19:35:05 +09:00
Mark Kopenga
17b4b4cb33
Merge branch 'master' into https-ask-for-username-password
2018-11-08 10:31:10 +01:00
Jesse Duffield
79ef98739d
Merge branch 'master' into feature/translations
2018-11-08 17:57:01 +11:00
Jesse Duffield
c2eaeab1f0
Merge pull request #314 from glvr182/feature/fix-keybind-crash
...
Fix bug related to limit view
2018-11-08 17:55:54 +11:00
Jesse Duffield
32d1289af7
Merge branch 'master' into feature/fix-keybind-crash
2018-11-08 17:49:21 +11:00
Jesse Duffield
ea55643cb2
Merge branch 'master' into feature/translations
2018-11-08 17:47:00 +11:00
Jesse Duffield
dcb6216713
Merge pull request #319 from mjarkk/fix-yt-link
...
Change the youtube video tutorial link to a short youtu.be link
2018-11-08 17:46:15 +11:00
mjarkk
9c8b241292
Removed some useless comments
2018-11-06 20:37:59 +01:00
mjarkk
7c4d360645
Better error for code 128
2018-11-06 20:25:11 +01:00
mjarkk
ad77ac639e
Working new lines in live pty output
2018-11-06 20:24:10 +01:00
mjarkk
cf1e9f79b1
hopefully fixed the test now
2018-11-03 09:36:38 +01:00
mjarkk
8f0741a458
Changed the youtube link to a youtu.be short link
2018-11-03 09:19:47 +01:00
Mark Kopenga
6f2b62f729
Merge pull request #15 from jesseduffield/master
...
Update to latest master
2018-11-03 09:17:43 +01:00
mjarkk
8469239d84
Fixed test
2018-11-03 09:12:45 +01:00
mjarkk
af54d7f015
Fixed view not defined error with git push and pull
2018-11-02 15:07:10 +01:00
mjarkk
cb9ad5bc73
Fixed golangcibot surgestion
2018-11-02 10:06:10 +01:00
mjarkk
5470bb4121
Added username password detect to git pull
2018-11-02 09:54:54 +01:00
mjarkk
0e53a26d6f
Maybe fixed the test this time
2018-11-01 07:06:34 +01:00
mjarkk
3938138ebc
Hopefully fixed circleci
2018-10-31 19:25:52 +01:00
mjarkk
05f0e5120a
Fixed one text
2018-10-31 17:55:02 +01:00
mjarkk
5532289086
Fixed some tests
2018-10-31 17:36:20 +01:00
mjarkk
78b2bc4f60
Made a better way of test pushing
2018-10-31 16:23:58 +01:00
Glenn Vriesman
d33f89fd60
Merge branch 'master' into feature/fix-keybind-crash
2018-10-31 15:04:34 +01:00
Glenn Vriesman
c0da212f54
Merge branch 'master' into feature/translations
2018-10-31 15:04:17 +01:00
mjarkk
9585f49490
Made error handling better
2018-10-29 08:23:56 +01:00
Mark Kopenga
1e0310a86d
Merge pull request #14 from jesseduffield/master
...
Merged master into https-ask-for-username-password
2018-10-29 07:50:44 +01:00
Jesse Duffield
bf45e5b0e3
Merge pull request #313 from dbast/master
...
Add conda to readme as possibility to install on different platforms
2018-10-29 16:11:27 +11:00
Glenn Vriesman
9a0f094f58
Changed some things after marks feedback
2018-10-28 20:33:42 +01:00
Glenn Vriesman
ee89ad6ae7
Fixed test
2018-10-28 20:13:55 +01:00
Glenn Vriesman
22e5aafd59
Fixed and added some dutch translations
2018-10-28 19:58:20 +01:00
Glenn Vriesman
abd0803ef4
Set current view to limit view
2018-10-28 19:15:34 +01:00
mjarkk
372b333662
Added copy note at top of string-to-args.go
2018-10-27 17:08:25 +02:00
mjarkk
18f09a14e6
Removed package github.com/mgutz/str for better code coverage
2018-10-27 17:06:33 +02:00
mjarkk
ed564adb4a
Removed github.com/ionrock/procs for better code coverage
2018-10-27 16:57:34 +02:00
mjarkk
9a99748d3b
Fixed bug where username input didn't go away
2018-10-27 16:29:16 +02:00
mjarkk
9163110640
Removed error check for regex
...
Regexp only returns an error when regex string is in-corret
2018-10-27 15:52:12 +02:00
mjarkk
6c1c110ce0
Made tests pass
...
Git constandly exits with error code 1 for some reason it might be because of the wrong username and password but i don't think error 1 is for wrong credentials
2018-10-27 15:32:12 +02:00
Mark Kopenga
45c249acca
Merge branch 'master' into https-ask-for-username-password
2018-10-27 15:06:51 +02:00
mjarkk
1df1053947
Fixed test
2018-10-27 15:01:16 +02:00
mjarkk
14cff0bd07
Fixed circleci build
2018-10-27 14:57:44 +02:00
mjarkk
87d1b9a547
Fixed circleci build
2018-10-27 14:56:15 +02:00
mjarkk
959d6fa2ca
Made it possible to build for windows again
2018-10-27 14:37:31 +02:00
mjarkk
e47c597b3a
Made it possible to build again for windows
2018-10-27 14:35:07 +02:00
Daniel Bast
bfcb348923
Add conda to readme as possibility to install on different platforms
2018-10-25 09:54:01 +02:00
Jesse Duffield
c6da4c8a47
Merge pull request #301 from rozuur/master
...
Initial version of delete named branch added
2018-10-24 09:24:16 +11:00
Mark Kopenga
1fedda6a75
Merge branch 'master' into https-ask-for-username-password
2018-10-23 13:52:50 +02:00
Jesse Duffield
467775fc1c
Merge branch 'master' into master
2018-10-23 09:43:25 +11:00
Jesse Duffield
3b6b68a2a1
Merge pull request #305 from kristijanhusak/feature/create-pull-request
...
Add option to create pull request from branches panel.
2018-10-22 11:51:16 +11:00
Naveen Vardhi
3a23cb87b7
Remove force delete keybinding
...
And force delete messages gives feedback about merge status
2018-10-21 21:13:24 +05:30
mjarkk
ac03665df3
Handled some errors
2018-10-20 19:44:56 +02:00
mjarkk
1be44eae84
Fixed surgestion from golangcibot
2018-10-20 19:03:51 +02:00
mjarkk
b72841ca0c
Fixed golangcibot surgestions
2018-10-20 18:58:37 +02:00
mjarkk
12425f0aa7
First good success
2018-10-20 17:37:55 +02:00
mjarkk
727ba9f42e
test
2018-10-20 17:21:17 +02:00
mjarkk
73a0a65ee1
test
2018-10-20 17:20:52 +02:00
mjarkk
ac5696574c
added some translations
2018-10-20 17:18:42 +02:00
mjarkk
1a43d64de3
Added extra translations
2018-10-20 16:25:48 +02:00
Kristijan Husak
990dc8c4ea
Add separate open command for links and check if branch exists on remote before opening pull request link.
2018-10-20 11:58:08 +02:00
Jesse Duffield
59cdd7d46e
Merge branch 'master' into master
2018-10-20 10:53:02 +11:00
mjarkk
4451cbc50b
handled golangcibot
2018-10-17 21:14:24 +02:00
mjarkk
01fa106de3
Added files to commit pannelsidjfjlisdjfilisldjfiljisldjilfjisdjilfjlsidMoved some code around
2018-10-17 21:12:33 +02:00
mjarkk
9fc4262887
small code addition
2018-10-17 20:41:22 +02:00
mjarkk
cecd5733a8
Basic file for getting the fix working
2018-10-17 20:38:13 +02:00
Mark Kopenga
1d733f3adc
Merge pull request #13 from jesseduffield/master
...
Updated to latest master
2018-10-17 20:22:41 +02:00
Kristijan Husak
c69fce2e9d
Remove unnecessary nil error in NewPullRequest.
2018-10-15 11:00:19 +02:00
Kristijan Husak
df0e3e52fe
Add option to create pull request form branches panel.
2018-10-13 22:54:51 +02:00
Jesse Duffield
d5f64602a8
Merge pull request #283 from kristijanhusak/feature/commit-amend
...
Add action for amending a commit
2018-10-10 17:50:55 +11:00
Kristijan Husak
4287f8ae90
Fix tests and add test scenarios for amend.
2018-10-08 22:19:42 +02:00
Kristijan Husak
190309e5c1
Check if there is any commit to amend and use 'A' instead of 'M' as shortcut.
2018-10-08 21:19:45 +02:00
Jesse Duffield
ac65586bd5
Merge branch 'master' into feature/commit-amend
2018-10-07 21:08:46 +11:00
Naveen Vardhi
af8d362caa
Initial version of delete named branch added
2018-10-06 17:04:33 +05:30
Kristijan Husak
5f7ac97a39
Refresh side panels and use uppercase HEAD in all git commands that requires it.
2018-10-06 09:53:54 +02:00
Jesse Duffield
b8b59baa27
Merge pull request #290 from jesseduffield/feature/informative-commit-colors
...
Color merged and unmerged commits differently
2018-10-05 09:37:55 +10:00
Jesse Duffield
2be613679e
more test coverage
2018-10-05 09:11:19 +10:00
Kristijan Husak
28fe3d6cf9
Use confirmation popup for amending last commit.
2018-09-25 22:11:51 +02:00
Kristijan Husak
b6b21bc98e
Merge branch 'master' of git://github.com/jesseduffield/lazygit into feature/commit-amend
2018-09-25 21:17:53 +02:00
Jesse Duffield
eb69d98f99
add test for CurrentBranchName
2018-09-25 20:31:19 +10:00
Jesse Duffield
fb9596a3ff
add test for getMergeBase
2018-09-25 20:25:04 +10:00
Jesse Duffield
0d33a746ba
Merge branch 'feature/informative-commit-colors' of https://github.com/jesseduffield/lazygit into feature/informative-commit-colors
2018-09-25 20:11:36 +10:00
Jesse Duffield
f3fc98a3d0
support git flow when colouring commits
2018-09-25 20:11:33 +10:00
Jesse Duffield
17d7bcdeaf
Merge branch 'master' into feature/informative-commit-colors
2018-09-25 20:10:12 +10:00
Jesse Duffield
d0a3f1eecf
Merge pull request #291 from antham/add-tests-part-7
...
Add tests to pkg/commands/git - Part 7
2018-09-25 19:13:35 +10:00
Jesse Duffield
7164f37266
Merge branch 'master' into feature/commit-amend
2018-09-25 19:05:24 +10:00
Jesse Duffield
e9245cd53b
Merge branch 'master' into add-tests-part-7
2018-09-25 19:03:29 +10:00
Jesse Duffield
80d6bbef86
Merge branch 'master' of https://github.com/jesseduffield/lazygit
2018-09-23 14:13:14 +10:00
Jesse Duffield
3d751c03fe
add donation link to status panel
2018-09-23 14:13:10 +10:00
Jesse Duffield
4e0d0f7d75
Update README.md
2018-09-23 13:09:54 +10:00
Jesse Duffield
b8b3eee961
Merge pull request #300 from jesseduffield/hotfix/273-cursor-scrolling
...
Fix slow scrolling
2018-09-22 13:59:49 +10:00
Jesse Duffield
7947668e18
Merge branch 'hotfix/273-cursor-scrolling' of https://github.com/jesseduffield/lazygit into hotfix/273-cursor-scrolling
2018-09-22 13:50:01 +10:00
Jesse Duffield
619c28ce56
use lineheight rather than buffer length
2018-09-22 13:49:58 +10:00
Jesse Duffield
53aef7846a
Merge branch 'master' into hotfix/273-cursor-scrolling
2018-09-22 13:47:38 +10:00
Jesse Duffield
227067fdd1
use lineheight rather than buffer length
2018-09-22 13:44:48 +10:00
Jesse Duffield
3df4a9484f
Merge pull request #295 from jesseduffield/hotfix/commit-message-panel-focus
...
Fix issues with commit message panel losing focus
2018-09-22 13:42:27 +10:00
Jesse Duffield
2229a6e133
Merge branch 'master' into hotfix/commit-message-panel-focus
2018-09-21 16:43:37 +10:00
Jesse Duffield
3101c50582
Merge pull request #297 from jesseduffield/hotfix/remove-files
...
add removeAll to git
2018-09-21 09:25:55 +10:00
Jesse Duffield
70ee4faf15
add removeAll to git
2018-09-21 09:23:00 +10:00
Anthony HAMON
360b7c1def
commands/git : refactor test to Diff, refactor function
2018-09-20 09:11:47 +02:00
Anthony HAMON
bdeb78c9a0
commands/git : returns an error instead of panicing
2018-09-20 09:09:37 +02:00
Anthony HAMON
9481920101
commands/git : add test to GetLog
2018-09-20 09:09:37 +02:00
Jesse Duffield
a2b3cd0823
add removeAll to git
2018-09-20 09:48:56 +10:00
Jesse Duffield
8fac19c175
Merge branch 'master' into feature/informative-commit-colors
2018-09-20 09:41:29 +10:00
Jesse Duffield
b9708c9f88
fix issues with commit message panel losing focus
2018-09-19 20:36:40 +10:00
Jesse Duffield
7b90d2496b
Merge pull request #294 from jesseduffield/feature/recent-repos
...
Recent Repos Menu
2018-09-19 20:22:36 +10:00
Jesse Duffield
0367399cf3
bump deps to use forked termbox which doesn't crash as easily
2018-09-19 20:16:22 +10:00
Jesse Duffield
3072c93e13
Merge pull request #280 from jesseduffield/hotfix/cursor-positioning
...
Fix cursor positioning bugs
2018-09-19 19:55:14 +10:00
Jesse Duffield
4ea446205c
Merge branch 'hotfix/cursor-positioning' into feature/recent-repos
2018-09-19 19:32:11 +10:00
Jesse Duffield
5a76b57952
one more spec to increase coverage
2018-09-19 19:31:29 +10:00
Jesse Duffield
6de291ff44
Merge branch 'hotfix/cursor-positioning' into feature/recent-repos
2018-09-19 19:23:42 +10:00
Jesse Duffield
64f0eeb42e
fix specs
2018-09-19 19:23:31 +10:00
Jesse Duffield
baa9eff318
Merge branch 'hotfix/cursor-positioning' into feature/recent-repos
2018-09-19 19:17:05 +10:00
Jesse Duffield
fcaf4e339c
fix specs
2018-09-19 19:16:55 +10:00
Jesse Duffield
e91fb21233
add recent repos menu option
2018-09-19 19:15:29 +10:00
Jesse Duffield
99a6439641
Merge branch 'master' into hotfix/cursor-positioning
2018-09-19 18:42:25 +10:00
Jesse Duffield
768b9453f8
Merge branch 'hotfix/cursor-positioning' into feature/recent-repos
2018-09-19 18:40:41 +10:00
Jesse Duffield
e95b2e5f0b
update specs
2018-09-19 18:31:54 +10:00
Jesse Duffield
950cfeff6f
add specs for menu utils
2018-09-19 18:19:26 +10:00
Jesse Duffield
fce895ed0d
Merge pull request #287 from antham/add-tests-part-6
...
Add tests part 6
2018-09-18 21:47:46 +10:00
Jesse Duffield
c789bba673
color merged and unmerged commits differently
2018-09-18 21:45:35 +10:00
Jesse Duffield
b384fcf6af
generalise popup menu panel
2018-09-18 21:07:25 +10:00
Anthony HAMON
60cf549a32
commands/git : reverse the logic
2018-09-18 09:23:41 +02:00
Anthony HAMON
6f0b32f95e
commands/git : add GetCommits tests refactor
...
* switch GetCommitsToPush scope to private
* return a map instead of slice for look up
* remove useless includesString function
2018-09-17 21:19:17 +02:00
Jesse Duffield
f89bc10af1
appease golangci
2018-09-17 21:32:19 +10:00
Jesse Duffield
a66ac8092e
minor refactor
2018-09-17 21:27:53 +10:00
Jesse Duffield
bd04ecff69
Merge branch 'master' into hotfix/cursor-positioning
2018-09-17 21:03:29 +10:00
Jesse Duffield
c00c834b35
standardise rendering of lists in panels
2018-09-17 21:02:30 +10:00
Anthony HAMON
9d9d775f50
circle : remove new line
2018-09-16 22:49:17 +02:00
Anthony HAMON
38036e0d20
circle : kill old cache
2018-09-16 22:41:41 +02:00
Anthony HAMON
9713a15167
commands/git : add test to GetBranchGraph, refactor
2018-09-16 22:12:03 +02:00
Anthony HAMON
b641d6bd96
commands/git : add test to Checkout, refactor
2018-09-16 22:08:23 +02:00
Anthony HAMON
67a42f49b4
commands/git : add test to RemoveFile, refactor
2018-09-16 22:03:56 +02:00
Anthony HAMON
bbc88071e9
gui : remove unreachable code
2018-09-16 20:46:25 +02:00
Jesse Duffield
ca2eec60fe
Merge pull request #285 from antham/add-tests-part-5
...
Add tests to pkg/commands/git - Part 5
2018-09-16 22:03:10 +10:00
Anthony HAMON
c1b7a21631
commands/git : move tests
2018-09-16 11:11:09 +02:00
Anthony HAMON
91832f2c5e
commands/git : add tests, refactor a bit
2018-09-16 11:11:09 +02:00
Mark Kopenga
c64fb87b2b
Merge pull request #12 from jesseduffield/master
...
Update to latest master
2018-09-14 11:50:49 +02:00
Jesse Duffield
fa08c6c2a2
Merge pull request #284 from mingrammer/main-error
...
main: display an error message instead of panic when setup fails
2018-09-14 09:38:21 +10:00
mingrammer
3cf84a5af1
main: display an error message instead of panic when setup fails
2018-09-14 00:23:11 +09:00
Kristijan Husak
61f0801bd3
Add ammend commit action.
2018-09-13 12:44:32 +02:00
Jesse Duffield
eb4b5cd43b
Merge pull request #282 from antham/add-tests-part-4
...
Add tests to pkg/commands/git - Part 4
2018-09-13 09:34:28 +10:00
Anthony HAMON
c92510ceba
commands/git : add tests on SquashFixupCommit and refactor
2018-09-12 22:45:52 +02:00
Anthony HAMON
65a24d70c3
commands/git : add tests on SquashPreviousTwoCommits
2018-09-12 20:43:03 +02:00
Jesse Duffield
7fb2cafd0c
Merge pull request #279 from jesseduffield/hotfix/file-ordering
...
Restore old file merging algorithm
2018-09-12 15:20:20 +02:00
Jesse Duffield
3b765e5417
add test for min method
2018-09-12 19:39:36 +10:00
Jesse Duffield
57f6a552d2
Merge branch 'hotfix/cursor-positioning' of https://github.com/jesseduffield/lazygit into hotfix/cursor-positioning
2018-09-12 18:49:14 +10:00
Jesse Duffield
35cae80de9
more efficient building of branch displaystrings
2018-09-12 18:49:09 +10:00
Jesse Duffield
b4b4cd83dd
Merge branch 'master' into hotfix/cursor-positioning
2018-09-12 18:47:57 +10:00
Jesse Duffield
31c33dfdcb
remove redundant comments
2018-09-12 18:47:37 +10:00
Jesse Duffield
79940b7ba9
Merge pull request #279 from jesseduffield/hotfix/file-ordering
...
Restore old file merging algorithm
2018-09-12 18:26:29 +10:00
Jesse Duffield
2ce8ac5850
restore old file sorting algorithm
2018-09-12 18:24:03 +10:00
Jesse Duffield
f8b484f638
don't use newlines at the end of panel buffers
2018-09-12 18:23:25 +10:00
Jesse Duffield
73e2c1005a
Merge pull request #277 from antham/add-tests-part-3
...
Add tests to pkg/commands/git - Part 3
2018-09-12 17:35:09 +10:00
Anthony HAMON
97e0a6dc45
commands/git : remove extra space
2018-09-12 07:51:14 +02:00
Anthony HAMON
9bad0337fe
commands/git : swap global/local get config
2018-09-12 07:50:49 +02:00
Anthony HAMON
f03544f392
commands/git : fix test
2018-09-11 22:20:59 +02:00
Anthony HAMON
0aba49af2b
commands/git : fix typo
2018-09-11 21:56:17 +02:00
Anthony HAMON
ccbc5e569c
commands/git : add test to Push func, refactor
2018-09-11 21:56:17 +02:00
Anthony HAMON
415aad600c
commands/git : add test to Commit func, refactor
2018-09-11 21:56:17 +02:00
Anthony HAMON
d23577168f
commands/git : remove dependency on gocui
2018-09-11 21:56:17 +02:00
Anthony HAMON
5c204b2813
commands/git: rewrite UsingGpg, add tests
2018-09-11 21:56:17 +02:00
Jesse Duffield
7d86278507
Merge pull request #274 from sascha-andres/master
...
fix: escape quote character on Linux
2018-09-11 09:07:36 +10:00
Sascha Andres
985196f5aa
docs: add comments for new test code
2018-09-10 17:36:59 +02:00
Jesse Duffield
52b132fe01
better handling of cursor and origin positionings
2018-09-10 20:17:39 +10:00
Sascha Andres
9ec5a04cf5
merge: remote-tracking branch 'upstream/master'
2018-09-10 10:33:20 +02:00
Sascha Andres
bb9698810d
refactor: move fallback to platform struct
...
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com >
2018-09-10 10:31:15 +02:00
Jesse Duffield
7f4371ad71
Merge pull request #275 from mjarkk/master
...
Translated untranslated dutch phrases
2018-09-10 18:15:15 +10:00
Sascha Andres
74144e3892
fix: remove call to fmt.Println
2018-09-10 10:10:10 +02:00
mjarkk
07f87eb7cf
Added missing dutch translations
2018-09-10 08:08:53 +02:00
Mark Kopenga
5600da9ee7
Merge pull request #11 from jesseduffield/master
...
updated to latest master
2018-09-10 07:28:11 +02:00
Sascha Andres
ba0cc20e22
feat: add test cases
2018-09-10 06:51:19 +02:00
Sascha Andres
717913e64c
fix: escape quote character on Linux
...
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com >
Closes #269
2018-09-10 06:36:15 +02:00
Jesse Duffield
5a0431bb62
Merge pull request #272 from antham/master
...
Add missing go.sum file
2018-09-10 10:58:22 +10:00
Jesse Duffield
1e357e2362
Merge branch 'master' into master
2018-09-10 10:02:06 +10:00
Jesse Duffield
c3b62a555c
Merge pull request #265 from antham/add-tests-part-2
...
Add tests to pkg/commands/git - Part 2
2018-09-10 10:01:55 +10:00
Jesse Duffield
557461c016
Merge branch 'master' into add-tests-part-2
2018-09-10 09:47:14 +10:00
Jesse Duffield
c2e670104e
Merge branch 'master' into master
2018-09-10 09:46:01 +10:00
Jesse Duffield
bea9971f9c
Merge pull request #271 from glvr182/feature/ignore-hidden-files
...
Change the gitignore a bit to cover more
2018-09-10 09:45:29 +10:00
Jesse Duffield
a8fdf1a646
Merge branch 'master' into feature/ignore-hidden-files
2018-09-10 09:45:18 +10:00
Jesse Duffield
f8ab4f4073
Merge pull request #234 from dawidd6/feature/help
...
WIP: Add menu panel (cheatsheet)
2018-09-10 09:43:28 +10:00
Anthony HAMON
24f15742d0
commands/git : rename variable
2018-09-09 20:08:46 +02:00
Glenn Vriesman
700f8c7e79
REPO: Added TODO entries to the gitignore for jesse
2018-09-09 13:37:38 +02:00
Anthony HAMON
28e8d6e472
add go.sum
2018-09-09 11:13:18 +02:00
Anthony HAMON
6076a75643
commands/git : fix function call
2018-09-09 10:52:34 +02:00
Anthony HAMON
b46e4b4976
commands/git : add several tests, do some cleanup
2018-09-09 10:52:34 +02:00
Anthony HAMON
99eca7b000
commands/git : replace make function
2018-09-09 10:52:34 +02:00
Anthony HAMON
a0faaf6893
commands/git : remove includes function
2018-09-09 10:52:34 +02:00
Anthony HAMON
56ad07ebab
commands/git : rename functions
2018-09-09 10:52:34 +02:00
Anthony HAMON
1ecd74c357
commands/git : add tests for GetCommitsToPush
2018-09-09 10:52:34 +02:00
Anthony HAMON
ceab9706cb
commands/git : add tests for UpstreamDifferentCount
2018-09-09 10:52:34 +02:00
Anthony HAMON
1cc7e9c02a
rewrite to use subtests
2018-09-09 10:52:34 +02:00
Dawid Dziurla
63e400647a
shorter english string
2018-09-09 10:47:13 +02:00
Dawid Dziurla
6f7de83bce
Merge branch 'master' into feature/help
...
conflicts resolved
2018-09-09 10:41:01 +02:00
Jesse Duffield
5af03b6820
Merge pull request #264 from antham/master
...
Add go.mod to support modules landed in go1.11
2018-09-09 11:35:48 +10:00
Glenn Vriesman
a8866b158b
REPO: Added and modified some ignore statements
2018-09-08 14:25:33 +02:00
antham
0d7a697e86
add go.mod
2018-09-07 21:35:04 +02:00
Dawid Dziurla
e80371fc6f
satisfy golangci
2018-09-07 14:41:01 +02:00
Dawid Dziurla
9cef98f779
ladies and gentlemen...
...
this is fmt number x+1
2018-09-07 14:23:08 +02:00
Dawid Dziurla
ba6dedfb22
rewrite some of menu panel logic
...
panel keybindings are now on top and
global keybindings are below separated with empty newline
2018-09-07 14:19:16 +02:00
Jesse Duffield
ca715c5b23
support switching to recent repo
2018-09-07 09:41:15 +10:00
Jesse Duffield
ba7e6add86
Merge pull request #267 from glvr182/feature/add-effgo-link
...
Added entry to the contributing guide
2018-09-07 09:30:29 +10:00
Glenn Vriesman
a820189450
Added entry to the contributing guide
2018-09-06 17:31:19 +02:00
Jesse Duffield
ce95e6771a
Merge pull request #263 from dawidd6/feature/confirm_quit
...
Add confirmOnQuit config option
2018-09-06 09:33:06 +10:00
Dawid Dziurla
e9268d1828
add confirmOnQuit config option
2018-09-05 19:56:11 +02:00
Dawid Dziurla
db2e2160a9
change menu keybinding from ? to x
2018-09-05 15:55:24 +02:00
Dawid Dziurla
08395ae76c
workaround to include menu keybinding in cheatsheet
2018-09-05 15:45:20 +02:00
Dawid Dziurla
4188786749
update pl translation
2018-09-05 15:20:34 +02:00
Jesse Duffield
cf41338a9f
Merge pull request #262 from jesseduffield/feature/50/jesse
...
Add commit counter using subtitle
2018-09-05 23:09:20 +10:00
Jesse Duffield
a2d40cfbf1
allow users to configure whether the commit length is shown
2018-09-05 23:02:13 +10:00
Dawid Dziurla
34d1648bd3
fmt strikes again
2018-09-05 13:23:06 +02:00
Dawid Dziurla
906f8e252e
include global keybindings in menu
2018-09-05 13:16:40 +02:00
Jesse Duffield
986774e5c7
add commit count via gocui subtitle
2018-09-05 20:43:45 +10:00
Dawid Dziurla
98763e98cb
initial commit message counter
2018-09-05 11:26:54 +02:00
Jesse Duffield
f777c60ea4
Merge pull request #260 from jesseduffield/hotfix/258-commit-message-newlines
...
Fix popup panel resizing
2018-09-05 19:15:39 +10:00
Dawid Dziurla
557009e660
help -> menu
2018-09-05 11:12:11 +02:00
Jesse Duffield
af876d2be2
Merge branch 'master' into hotfix/258-commit-message-newlines
2018-09-05 19:11:30 +10:00
Jesse Duffield
422b263df4
fix popup panel resizing
2018-09-05 19:10:46 +10:00
Jesse Duffield
4fc290b101
Update README.md
2018-09-05 18:44:24 +10:00
Jesse Duffield
c1bf1e52b0
Merge pull request #257 from antham/master
...
Increase circleci compile speed
2018-09-05 17:12:29 +10:00
Anthony HAMON
4d745fa525
update cache path in circleci
2018-09-05 08:55:15 +02:00
Jesse Duffield
f0e19690f5
Merge pull request #254 from jesseduffield/feature/dockerfile-for-alpine
...
Dockerfile for testing on alpine linux
2018-09-05 14:20:51 +10:00
Jesse Duffield
580c1cbc89
Merge branch 'master' into feature/dockerfile-for-alpine
2018-09-05 11:03:17 +10:00
Dawid Dziurla
e21f739f4f
add renderGlobalOptions
...
render only global options for all panels
2018-09-04 16:07:31 +02:00
Dawid Dziurla
97ad4a1643
delete options
2018-09-04 15:40:29 +02:00
Dawid Dziurla
cbafadd48e
move keys slice to guiState struct
2018-09-04 15:29:43 +02:00
Dawid Dziurla
7b84c162f4
set help panel fgcolor to white
2018-09-04 15:25:54 +02:00
Dawid Dziurla
f29c81fb5c
add getMaxKeyLength
2018-09-04 15:25:02 +02:00
Jesse Duffield
59003c8bbf
Merge pull request #253 from jesseduffield/hotfix/238-xdg-open-2
...
Update xdg-open command
2018-09-04 22:21:03 +10:00
Jesse Duffield
6c1d133315
dockerfile for testing on alpine linux
2018-09-04 22:19:08 +10:00
Jesse Duffield
33ea093d88
Merge branch 'master' into hotfix/238-xdg-open-2
2018-09-04 20:37:35 +10:00
Jesse Duffield
a81f8b84e3
Merge pull request #245 from antham/master
...
Rewrite SetupGit in GitCommand
2018-09-04 19:29:21 +10:00
Jesse Duffield
3f68fe42cb
update xdg-open command
2018-09-04 19:18:18 +10:00
Anthony HAMON
172cd7c687
fix tests locally
2018-09-04 08:32:43 +02:00
Anthony HAMON
df3e7abd68
use RunCommand
2018-09-04 08:32:40 +02:00
Anthony HAMON
8c67578063
replace fmt with errors
2018-09-04 06:21:58 +02:00
Anthony HAMON
06846ef3ae
rename NewApp to Setup
2018-09-04 06:21:58 +02:00
Anthony HAMON
43ad9a81c2
merge setup in function that create a new git command
2018-09-04 06:21:58 +02:00
Anthony HAMON
9f7775df26
pkg/git : remove unused Map function
2018-09-04 06:21:58 +02:00
Anthony HAMON
c1984528c8
pkg/git : add tests for SetupGit
2018-09-04 06:21:58 +02:00
Anthony HAMON
624d63d2fa
pkg/git : remove panic in SetupGit method
2018-09-04 06:21:58 +02:00
Dawid Dziurla
67d99a24ea
get selected branch from correct panel
2018-09-03 18:45:52 +02:00
Dawid Dziurla
bf8514f5e2
helperize spaces
2018-09-03 18:44:56 +02:00
Dawid Dziurla
93e88ea8fe
add missing translated polish strings
2018-09-03 18:34:04 +02:00
Dawid Dziurla
a2073528f4
add missing untranslated dutch strings
...
@mjarkk
2018-09-03 18:33:38 +02:00
Dawid Dziurla
230a5afa4c
remove capitalization of keybindings descriptions
2018-09-03 18:16:54 +02:00
Dawid Dziurla
c49e4dc287
get item position from correct panel
2018-09-03 18:07:38 +02:00
Dawid Dziurla
59f50010b6
apply fmt again
2018-09-03 18:01:07 +02:00
Dawid Dziurla
b5827b7d80
merge conflict effect fix
2018-09-03 17:57:03 +02:00
Dawid Dziurla
36874be45b
apply very important fmt
2018-09-03 17:54:06 +02:00
Dawid Dziurla
83b7c60246
add untranslated dutch strings
...
@mjarkk
2018-09-03 17:54:06 +02:00
Dawid Dziurla
323016aa01
polish translation
2018-09-03 17:54:06 +02:00
Dawid Dziurla
b403b6e46d
better english string
2018-09-03 17:54:06 +02:00
Dawid Dziurla
359636c1aa
add generate_cheatsheet script
...
script is generating markdown document with small cheatsheet
in selected language
2018-09-03 17:54:06 +02:00
Dawid Dziurla
1fa55875e2
remove testing content
2018-09-03 17:54:06 +02:00
Dawid Dziurla
5177e458ef
use Fprint instead of renderString
...
renderString is wrapping content
because of that lines are being select wrong
2018-09-03 17:54:06 +02:00
Dawid Dziurla
314c8c279a
apply fmt on keybindings
2018-09-03 17:54:06 +02:00
Dawid Dziurla
20073d0293
don't panic
...
"panic: runtime error: index out of range"
when executing stash pop 'g' from help menu
2018-09-03 17:54:06 +02:00
Dawid Dziurla
90a4cada82
add missing descriptions
2018-09-03 17:54:06 +02:00
Dawid Dziurla
e376de6d1a
explicitly delete 'help' view
2018-09-03 17:54:06 +02:00
Dawid Dziurla
265d7e121a
use Key if it's a rune, otherwise KeyReadable
2018-09-03 17:54:06 +02:00
Dawid Dziurla
7ec5b6cc30
indent keybindings
2018-09-03 17:54:06 +02:00
Dawid Dziurla
9ceaf5b9a9
move descriptions to i18n
2018-09-03 17:52:05 +02:00
Dawid Dziurla
cc3fa4b79d
make '?' key visible on every panel
2018-09-03 17:52:05 +02:00
Dawid Dziurla
653d590157
help panel size from getConfirmationPanelDimensions
2018-09-03 17:52:05 +02:00
Dawid Dziurla
8a01d11202
more error checks
2018-09-03 17:52:05 +02:00
Dawid Dziurla
28a9594ef7
update help panel
...
- delete scrolling ability
- lines are now selectable
- implemented handler execution when space is pressed
- add example descriptions for status panel keybindings
2018-09-03 17:52:05 +02:00
Dawid Dziurla
77623db1d0
apply fmt
2018-09-03 17:52:05 +02:00
Dawid Dziurla
6a99d36ae1
change key from 'H' to '?'
2018-09-03 17:52:05 +02:00
Dawid Dziurla
2416f585ce
initial help panel
2018-09-03 17:52:05 +02:00
Dawid Dziurla
741e28d01a
move bindings to getKeybindings()
2018-09-03 17:52:05 +02:00
Jesse Duffield
19a8029795
Merge pull request #250 from dawidd6/fix/tests
...
Fix testing with localized rmdir + don't test scripts directory
2018-09-03 22:04:16 +10:00
Jesse Duffield
796f17eef4
Merge branch 'master' into fix/tests
2018-09-03 21:20:17 +10:00
Jesse Duffield
8fbb3aea4f
Merge pull request #242 from d-dorazio/rename-commits-in-user-editor
...
add keybinding to open user editor when renaming last commit
2018-09-03 20:11:13 +10:00
Jesse Duffield
6fc4cb1b96
Merge branch 'master' into rename-commits-in-user-editor
2018-09-03 19:53:16 +10:00
Jesse Duffield
3c1935fee4
Merge pull request #249 from jesseduffield/hotfix/238-xdg-open
...
238: opening with xdg-open
2018-09-03 19:48:42 +10:00
Jesse Duffield
dfb87d34dc
Merge branch 'master' into hotfix/238-xdg-open
2018-09-03 19:42:06 +10:00
Jesse Duffield
4ab1a1f72b
Merge branch 'master' into hotfix/238-xdg-open
2018-09-03 19:33:37 +10:00
Jesse Duffield
a9cd277070
add test for ResolvePlaceholderString
2018-09-03 19:31:27 +10:00
Dawid Dziurla
5c1463313d
respect localized output of rmdir
2018-09-01 17:22:49 +02:00
Dawid Dziurla
0355fc3008
don't run tests on scripts/ directory
2018-09-01 17:22:23 +02:00
Daniele D'Orazio
39f065207e
add simple test for PrepareCommitAmendSubProcess
2018-09-01 12:29:43 +02:00
Daniele D'Orazio
9e6a4a529a
add keybinding to open user editor when renaming last commit
2018-09-01 12:14:42 +02:00
Jesse Duffield
87de803a6c
update default config header
2018-09-01 14:38:30 +10:00
Jesse Duffield
3cafa2bb12
update config to reflect platform specific defaults
2018-09-01 14:35:46 +10:00
Jesse Duffield
d31520261f
introduce platform specific defaults
2018-09-01 14:33:01 +10:00
Jesse Duffield
ad880e2d56
wrap windows start command in shell
2018-09-01 13:28:10 +10:00
Jesse Duffield
865809e625
better error handling for commands
2018-09-01 13:27:58 +10:00
Jesse Duffield
04d5a473d7
use start instead of cygstart to open files on windows
2018-09-01 12:53:51 +10:00
Jesse Duffield
f127ae62bb
update config
2018-09-01 12:18:16 +10:00
Jesse Duffield
3f14b764d5
update tests
2018-09-01 12:13:41 +10:00
Jesse Duffield
ae0d88f855
WIP using runDirectCommand with xdg-open
2018-09-01 11:38:32 +10:00
Jesse Duffield
b65fa852f1
Merge pull request #248 from jesseduffield/hotfix/better-backwards-compatibility-error
...
Better error for nonbackwards compatible changes
2018-09-01 11:26:58 +10:00
Jesse Duffield
42500817e0
better error for nonbackwards compatible changes
2018-09-01 10:36:55 +10:00
Jesse Duffield
d8aba3aeee
Merge pull request #241 from antham/master
...
Fix linting issues
2018-08-29 23:05:14 +10:00
antham
1b8836e92d
fix fmt issue
2018-08-29 13:46:51 +02:00
Anthony HAMON
54326907c3
fix linting issues
2018-08-29 13:46:51 +02:00
Anthony HAMON
cda7b374e2
fix linting issues
2018-08-29 13:46:51 +02:00
Anthony HAMON
e889a40caf
fix golint issue
2018-08-29 13:46:51 +02:00
Jesse Duffield
3f26ddc06f
Merge pull request #225 from antham/master
...
Add tests to pkg/commands/git - Part 1
2018-08-29 20:25:39 +10:00
Anthony HAMON
dac7c90483
add cache based on Gopkg.lock checksum
2018-08-29 12:03:32 +02:00
Anthony HAMON
66e5dacf5e
fix git tests
2018-08-29 12:03:32 +02:00
Anthony HAMON
e3ed899b20
refactor MergeStatusFiles
2018-08-29 12:03:32 +02:00
Anthony HAMON
d6b4d4b063
add tests for MergesStatusFiles
2018-08-29 12:03:32 +02:00
Anthony HAMON
45fa257128
add test for StashSave and refactor StashSave method
2018-08-29 12:03:32 +02:00
Anthony HAMON
99840d8fc4
add test for StashDo and refactor StashDo method
2018-08-29 12:03:32 +02:00
Anthony HAMON
85012dbc8f
add tests for GetStatusFiles
2018-08-29 12:03:32 +02:00
Anthony HAMON
13f9073552
add test for GetStashEntryDiff
2018-08-29 12:03:32 +02:00
Anthony HAMON
49b507d2ff
replace make
2018-08-29 12:03:32 +02:00
Anthony HAMON
8247fd69c9
add test for GetStashEntries
2018-08-29 12:03:32 +02:00
Anthony HAMON
983d0bd586
replace make
2018-08-29 12:03:32 +02:00
Anthony HAMON
ca9ce22693
use assert in tests, rename testing method
2018-08-29 12:03:32 +02:00
Jesse Duffield
cff1dee6dc
more lenient version comparison
2018-08-29 09:37:47 +10:00
Jesse Duffield
2181a91fea
Merge pull request #231 from jesseduffield/feature/24-support-unicode-characters
...
Support unicode characters
2018-08-28 20:09:27 +10:00
Jesse Duffield
8c2b8cfb51
support unicode characters
2018-08-28 20:08:35 +10:00
Jesse Duffield
145cba34a0
Merge pull request #228 from jesseduffield/hotfix/226-dont-panic-when-catting
...
226: dont panic when catting directories
2018-08-28 19:19:03 +10:00
Jesse Duffield
7e1e97d050
dont panic when catting directories
2018-08-28 19:12:35 +10:00
Jesse Duffield
320ccdb22a
when panicking due to malformed gitconfig, show a more useful error
2018-08-28 18:01:53 +10:00
Jesse Duffield
db1d5328f2
Merge pull request #213 from jesseduffield/feature/add-all
...
Add 'a' keybinding to toggle staged/unstaged for all files
2018-08-27 21:01:52 +10:00
Jesse Duffield
da2d3f253f
better translation
2018-08-27 20:58:17 +10:00
Jesse Duffield
b4323c029f
Merge branch 'master' into feature/add-all
2018-08-27 20:57:50 +10:00
Jesse Duffield
203ad29349
use logrus entry rather than logger
2018-08-27 20:51:21 +10:00
Jesse Duffield
04735d0601
update call to update user config function
2018-08-27 20:49:47 +10:00
Jesse Duffield
bbe603ff5b
separate english translation structs
2018-08-27 20:46:06 +10:00
Jesse Duffield
23a9f41d9d
Merge branch 'feature/anonymous-reporting'
2018-08-27 20:35:55 +10:00
Jesse Duffield
1901901d24
Merge pull request #189 from jesseduffield/feature/auto-updates
...
Auto updates
2018-08-27 20:33:02 +10:00
Jesse Duffield
f861175f83
move update quit confirmation function into updates file
2018-08-27 20:26:49 +10:00
Jesse Duffield
25c60b1854
localize update errors
2018-08-27 20:23:47 +10:00
Jesse Duffield
38557f131d
record last update check as soon as you begin checking
2018-08-27 20:16:26 +10:00
Jesse Duffield
96eef7838e
better auto update logic
2018-08-27 20:08:10 +10:00
Jesse Duffield
2bf536265a
disable updating on windows for now
2018-08-27 19:37:01 +10:00
Jesse Duffield
43f612feb1
Merge branch 'master' into feature/auto-updates
2018-08-27 19:20:07 +10:00
Jesse Duffield
a1c6adab59
Merge branch 'master' into feature/anonymous-reporting
2018-08-27 18:50:24 +10:00
Jesse Duffield
e72d090c5c
Merge pull request #221 from antham/fix-master
...
Fix format issue
2018-08-27 18:05:18 +10:00
Anthony HAMON
a2a9e0c478
fix format issue
2018-08-27 10:01:05 +02:00
Jesse Duffield
d3953a1440
Merge pull request #206 from antham/add-pkg-commands-test
...
Add test to pkg/commands, refactor some methods
2018-08-27 17:58:02 +10:00
Jesse Duffield
a251cffb9a
Merge pull request #220 from dawidd6/flag/config
...
Add config flag
2018-08-27 17:56:19 +10:00
Dawid Dziurla
b7f6bcb3ca
add config flag
2018-08-26 17:31:28 +02:00
Anthony HAMON
55c6af258d
increase parallel build
2018-08-26 11:30:03 +02:00
Jesse Duffield
540edc0c35
anonymous reporting data
2018-08-26 16:53:31 +10:00
Jesse Duffield
12261ceb05
update config docs for auto updates
2018-08-26 13:03:37 +10:00
Anthony HAMON
f6ab11e4ee
run gofmt
2018-08-26 02:20:01 +02:00
Anthony HAMON
2d9f7009fa
add gofmt to circle
2018-08-26 02:17:46 +02:00
Anthony HAMON
4b19b4108e
add circleci cache
2018-08-26 01:58:20 +02:00
Anthony HAMON
a23753dc18
exclude darwin arm from building
2018-08-26 01:58:20 +02:00
antham
caf99d2d64
exclude openbsd cause of go-git bugs on this platform
2018-08-26 01:58:20 +02:00
antham
2273f4c0a5
add compile step in circleci
2018-08-26 01:58:20 +02:00
Anthony HAMON
23fe0290ad
add openFile to gui struct
2018-08-26 01:58:20 +02:00
Anthony HAMON
ed2dcd9e46
add tests
2018-08-26 01:58:20 +02:00
Anthony HAMON
75e08993ea
extract dependencies
2018-08-26 01:58:20 +02:00
Anthony HAMON
0b07cd19f7
switch GetOpenCommand scope to private
2018-08-26 01:58:20 +02:00
Anthony HAMON
38f11f1f4a
move dummy functions, rename functions
2018-08-26 01:58:19 +02:00
Anthony HAMON
f91e2b12db
add tests to pkg/commands
2018-08-26 01:58:19 +02:00
Anthony HAMON
364c1ac5e7
remove useless returned variable
2018-08-26 01:58:19 +02:00
Anthony HAMON
883fcf1083
remove useless returned variable
2018-08-26 01:58:19 +02:00
Anthony HAMON
a891bc90b7
simplify method
2018-08-26 01:58:19 +02:00
Anthony HAMON
7a74bc504b
avoid useless allocation
2018-08-26 01:58:19 +02:00
Anthony HAMON
32f4d09e89
move platform specific code to dedicated platform files
2018-08-26 01:58:19 +02:00
Anthony HAMON
a5adfaee8a
remove useless returned variable
2018-08-26 01:58:19 +02:00
Jesse Duffield
57decdd11d
check error from setViewOnBottom
2018-08-25 17:38:03 +10:00
Jesse Duffield
87dc2bcad9
bump dependencies
2018-08-25 17:36:16 +10:00
Jesse Duffield
21f6e9ba87
auto-updates
2018-08-25 17:32:34 +10:00
Jesse Duffield
f24c95aede
Merge branch 'master' into feature/auto-updates
2018-08-25 11:02:46 +10:00
Jesse Duffield
93ab892bdd
Merge pull request #214 from jesseduffield/hotfix/global-rune-keybindings
...
Ignore global rune keybindings when in editable view
2018-08-25 09:14:05 +10:00
Jesse Duffield
ee7f88e123
ignore global rune keybindings when in editable view
2018-08-25 09:13:29 +10:00
Jesse Duffield
60422912c8
add 'a' keybinding to toggle staged/unstaged for all files
2018-08-25 08:59:51 +10:00
Jesse Duffield
6c389df57d
Merge pull request #200 from remyabel/feature/esc-quits
...
Esc will quit when not in popup, fixes #197
2018-08-24 09:16:56 +10:00
Jesse Duffield
22de5e7b23
Merge pull request #210 from dawidd6/sirupsen/imports
...
Sirupsen -> sirupsen
2018-08-24 07:58:47 +10:00
Dawid Dziurla
bcbeec1a56
Sirupsen -> sirupsen
2018-08-23 14:22:03 +02:00
Jesse Duffield
5628eae502
WIP
2018-08-23 18:43:16 +10:00
Jesse Duffield
2cdd439286
Merge pull request #204 from remyabel/hotfix/fix-dutch-errors
...
Fix typos causing tests to fail
2018-08-23 10:19:31 +10:00
Tommy Nguyen
110ff38c0d
Remove accidentally checked in code
2018-08-22 11:34:16 -04:00
Tommy Nguyen
2680b2f4fe
Merge branch 'hotfix/fix-dutch-errors' of github.com:remyabel/lazygit into hotfix/fix-dutch-errors
2018-08-22 11:28:09 -04:00
Tommy Nguyen
3e8ef0d12d
Remove space before punctuation
2018-08-22 11:27:45 -04:00
remyabel
bee4d98f52
Remove space before punctuation
2018-08-21 21:27:20 -04:00
Jesse Duffield
584d6b241c
Merge pull request #198 from antham/fix-various-errors
...
Fix various errors reported by goreportcard
2018-08-22 09:28:19 +10:00
Anthony HAMON
37681627ab
remove useless check
2018-08-21 20:54:48 +02:00
Anthony HAMON
810155ef2f
fix documentation and reference issues
2018-08-21 20:54:46 +02:00
Tommy Nguyen
924a9bb2c9
Fix typos causing tests to fail
2018-08-21 10:55:33 -04:00
Jesse Duffield
4d635cd1cd
Merge pull request #151 from alcohol/force-delete-branch
...
add option to force delete given branch
2018-08-21 23:45:27 +10:00
Jesse Duffield
3d49ab6666
Merge pull request #202 from dawidd6/test
...
Fix testPath for debian packaging
2018-08-21 23:33:25 +10:00
Tommy Nguyen
eff931a138
Update gocui fork
2018-08-21 09:00:16 -04:00
Tommy Nguyen
cd4063c763
s/escape/quit
2018-08-21 08:54:51 -04:00
Tommy Nguyen
646c205227
s/quit/escape, don't use special handling for views
2018-08-21 07:50:37 -04:00
Tommy Nguyen
dc911906b3
Esc will quit when not in popup, fixes #197
2018-08-21 06:36:20 -04:00
Rob Bast
182e475116
correct variable assignment
2018-08-21 12:09:13 +02:00
Rob Bast
5f6b61d28c
adjust translation(s) for forced branch deletion
2018-08-21 12:06:42 +02:00
Rob Bast
810540edfa
add return
2018-08-21 11:32:17 +02:00
Jesse Duffield
042c83387e
make bom.sh executable for easier testing
2018-08-21 17:41:18 +10:00
Jesse Duffield
c6a8899060
Merge pull request #160 from remyabel/157_remove_bom
...
#157 : clean BOM, allowing CSV files to display correctly
2018-08-21 17:39:55 +10:00
Jesse Duffield
da4c12bf9e
Merge pull request #193 from antham/add-tests
...
Add tests to i18n package
2018-08-21 17:34:13 +10:00
Jesse Duffield
d6ee413587
Update Config.md
2018-08-21 13:42:17 +10:00
Jesse Duffield
9b63887867
add colored borders example image
2018-08-21 13:27:27 +10:00
Jesse Duffield
d35eaa062b
remove org-global context in circle ci config
2018-08-21 12:57:19 +10:00
Jesse Duffield
0c27776a83
Merge pull request #179 from antham/master
...
Update circleci config, add badges
2018-08-21 12:49:22 +10:00
Anthony HAMON
4972a4c218
rewrite addBundles
2018-08-20 21:18:50 +02:00
Anthony HAMON
e4070ccb4f
rewrite language detection, rewrite tests
2018-08-20 21:12:42 +02:00
Dawid Dziurla
483b4d939d
fix testPath for debian packaging
2018-08-20 15:21:05 +02:00
Tommy Nguyen
45fea83771
Convert \r\n to \n; don't depend on unix2dos
2018-08-20 09:16:35 -04:00
Jesse Duffield
2aa89ade0d
Merge pull request #195 from jesseduffield/hotfix/194-support-empty-version
...
194: Support empty version string
2018-08-20 20:54:23 +10:00
Jesse Duffield
37029f7db3
support empty version string
2018-08-20 20:52:32 +10:00
Jesse Duffield
954dfb12e4
Merge branch 'master' into feature/auto-updates
2018-08-20 19:53:53 +10:00
Jesse Duffield
8364509d1f
Merge pull request #188 from jesseduffield/feature/force-push
...
Force push confirmation panel
2018-08-20 19:52:41 +10:00
Jesse Duffield
d938a437a2
WIP auto updates
2018-08-20 19:52:20 +10:00
Anthony HAMON
3c0fb9b324
add tests to i18n package
2018-08-20 09:02:57 +02:00
Rob Bast
8e3df6b981
add option to force delete given branch
2018-08-20 08:37:16 +02:00
Tommy Nguyen
5dd049eb82
Convert test to use new library
2018-08-19 23:39:57 -04:00
Tommy Nguyen
f1a4a7e1ff
synchronize deps
2018-08-19 23:34:58 -04:00
Tommy Nguyen
108815c790
Add missing brace
2018-08-19 23:31:26 -04:00
remyabel
5c65066cbb
Merge branch 'master' into 157_remove_bom
2018-08-19 23:29:47 -04:00
Jesse Duffield
64cf8f5b10
update dependencies
2018-08-20 13:25:33 +10:00
Jesse Duffield
5fcbe4ff8a
Merge pull request #191 from jesseduffield/hotfix/174-language-not-found
...
174: Use fallback language if language not detected on startup
2018-08-20 13:23:26 +10:00
Jesse Duffield
fa8248bd70
use fallback language if language not detected on startup
2018-08-20 13:20:59 +10:00
Jesse Duffield
65c5a6014b
Merge pull request #185 from antham/add-tests
...
Add test to utils package
2018-08-20 09:24:54 +10:00
Anthony HAMON
fc126a1718
remove test
2018-08-19 21:39:23 +02:00
Anthony HAMON
bb86a3ff7c
update github template
2018-08-19 20:21:19 +02:00
Anthony HAMON
bbf7a9d790
add various badges
...
* golangci (https://golangci.com )
* circleci (https://circleci.com/ )
* codecov.io (https://codecov.io )
* godoc
* tag release
2018-08-19 20:21:19 +02:00
Anthony HAMON
fbfa48f0fc
update circleci
...
* define release worflow when a tag is created
* add dep install
* run tests with coverage
* add goreleaser
2018-08-19 20:21:14 +02:00
Tommy Nguyen
e8b12a086c
Fix ineffectual assignment
2018-08-19 08:52:08 -04:00
Tommy Nguyen
766197de9d
NormalizeLinefeeds removes rather than converts Window/Mac style lf's
2018-08-19 08:48:03 -04:00
Jesse Duffield
1e44001910
Merge branch 'master' into feature/auto-updates
2018-08-19 21:36:40 +10:00
Jesse Duffield
317926c808
fix golangci lint
2018-08-19 21:34:24 +10:00
Jesse Duffield
4d2346f80a
popup force push confirmation panel if the local branch has diverged from the upstream branch
2018-08-19 21:28:13 +10:00
Tommy Nguyen
d2bdac29aa
Merge branch 'master' into 157_remove_bom
2018-08-19 07:22:48 -04:00
Tommy Nguyen
cea736e6e9
Factor out into NormalizeLinefeeds; add tests
2018-08-19 07:20:50 -04:00
Jesse Duffield
e6712832b5
Merge pull request #187 from jesseduffield/hotfix/177-fix-gitignore
...
177: Fix ignore feature
2018-08-19 20:42:51 +10:00
Jesse Duffield
aa4d739577
fix ignore feature
2018-08-19 20:41:04 +10:00
Jesse Duffield
51558f51ab
Merge pull request #186 from jesseduffield/hotfix/169-more-filenames-with-spaces
...
Handle filenames with spaces better
2018-08-19 20:19:53 +10:00
Jesse Duffield
35884f81e9
handle filenames with spaces better
2018-08-19 20:13:29 +10:00
Jesse Duffield
2008607108
remove VERSION file
2018-08-19 20:04:57 +10:00
Jesse Duffield
21be9fb3b1
bump version to v0.1.72
2018-08-19 19:48:31 +10:00
Jesse Duffield
80fac559c2
revert changes to ldflags
2018-08-19 19:48:21 +10:00
Jesse Duffield
e6a6301144
bump version to v0.1.71
2018-08-19 19:47:04 +10:00
Jesse Duffield
c5d4024d58
compare error message rather than error itself on no-commits error
2018-08-19 18:51:42 +10:00
Anthony HAMON
f91b4067f4
add test to utils package
2018-08-19 10:37:03 +02:00
Tommy Nguyen
b46d174f70
view_helpers.go: don't ignore return value
2018-08-19 02:21:33 -04:00
Tommy Nguyen
cdc6d45fa4
view_helpers.go: replace \r with \r\n
2018-08-19 02:19:19 -04:00
Jesse Duffield
81b07daa01
Merge branch 'hotfix/167-ambiguous-name-in-diff'
2018-08-19 15:06:06 +10:00
Jesse Duffield
93266cc2a4
support forked branches when getting project root
2018-08-19 15:05:36 +10:00
Jesse Duffield
60fc24eada
Merge pull request #172 from jesseduffield/hotfix/167-ambiguous-name-in-diff
...
167: Support File names that match Branch names
2018-08-19 14:53:14 +10:00
Jesse Duffield
6978785ccf
add user email and config to test repo generators
2018-08-19 14:52:08 +10:00
Jesse Duffield
cd9eada0c6
add test for variety of potential git diff situations
2018-08-19 14:48:39 +10:00
Jesse Duffield
7b3679d546
Merge pull request #181 from glvr182/feature/ignore-unused
...
Cleaned the gitignore and added the linux binary
2018-08-19 13:26:35 +10:00
Jesse Duffield
c8e63894b4
Merge pull request #182 from glvr182/feature/docs-images
...
Feature/docs images
2018-08-19 13:25:23 +10:00
Jesse Duffield
af93d04479
Merge pull request #183 from mjarkk/master
...
Removed logrus logger import from i18n
2018-08-19 13:23:29 +10:00
Mark Kopenga
29f2bdbba3
removed logrus logger import
2018-08-18 14:03:20 +02:00
Mark Kopenga
c90e865e34
Merge pull request #10 from jesseduffield/master
...
Updated to latest master
2018-08-18 14:00:41 +02:00
Jesse Duffield
b104dccab2
Merge pull request #163 from dawidd6/translation/pl
...
Add Polish translation
2018-08-18 21:08:56 +10:00
Glenn Vriesman
2dbd5be24e
Removed duplicates
2018-08-18 13:04:44 +02:00
Glenn Vriesman
0a4cf6a544
Docs: Fixed typo
2018-08-18 12:56:15 +02:00
Glenn Vriesman
5f5e275a0e
Docs: Made commit-diffs example a local file
2018-08-18 12:55:13 +02:00
Glenn Vriesman
7b85d146af
Docs: Made resolving merge conflicts a local file
2018-08-18 12:53:26 +02:00
Glenn Vriesman
fd01cdb137
Docs: Made the example gif a local file
2018-08-18 12:51:15 +02:00
Glenn Vriesman
9e8dc37308
Docs: Moved slack image to docs/resources
2018-08-18 12:46:50 +02:00
Jesse Duffield
08666889f4
improve remove file logic
2018-08-18 20:14:44 +10:00
Jesse Duffield
13ac1d151a
WIP updater package
2018-08-18 19:54:44 +10:00
Glenn Vriesman
c091401571
Cleaned the gitignore and added the linux binary
2018-08-18 11:49:37 +02:00
Jesse Duffield
0174375562
Merge pull request #180 from jesseduffield/hotfix/174-nil-pointer-reference-on-startup
...
Hotfix for issue 174: avoid nil pointer reference on startup
2018-08-18 19:45:28 +10:00
Jesse Duffield
1f756d3d0a
avoid nil pointer reference on startup
2018-08-18 19:43:58 +10:00
Jesse Duffield
6473e5ca3c
use runtime package to get GOOS and GOARCH
2018-08-18 17:28:03 +10:00
Jesse Duffield
896dda3adf
bump version to v0.1.70
2018-08-18 17:17:22 +10:00
Jesse Duffield
b9ef1a4d67
leave bump commits out of release notes
2018-08-18 17:17:05 +10:00
Jesse Duffield
671c693459
bump version to v0.1.67
2018-08-18 17:12:44 +10:00
Jesse Duffield
41171304b2
add platform/os details to goreleaser ldflags
2018-08-18 17:10:27 +10:00
Jesse Duffield
f025b289f0
enforce white text color in prompt panels
2018-08-18 16:23:19 +10:00
Tommy Nguyen
018b43163c
synchronize deps
2018-08-18 02:20:10 -04:00
remyabel
9a923eb300
Merge branch 'master' into 157_remove_bom
2018-08-18 02:11:13 -04:00
Jesse Duffield
3f5c1a4243
bump version to v0.1.66
2018-08-18 16:00:30 +10:00
Jesse Duffield
db7e623c0c
bump version to v0.1.65
2018-08-18 16:00:12 +10:00
Jesse Duffield
ad8f02b986
add 386 architecture to releases
2018-08-18 16:00:00 +10:00
Jesse Duffield
29431ddc8e
create dashboard
2018-08-18 15:30:56 +10:00
Jesse Duffield
a1a828a781
support opening and editing config file
2018-08-18 14:54:05 +10:00
Jesse Duffield
6b150a4be0
bump dependencies
2018-08-18 14:20:19 +10:00
Jesse Duffield
284c534251
user configurable border colors
2018-08-18 13:53:58 +10:00
Jesse Duffield
10fdb5a609
support writing back to user config
2018-08-18 13:22:05 +10:00
Jesse Duffield
4dc6d40b5a
merge master
2018-08-18 12:08:21 +10:00
Jesse Duffield
99d40c2f8e
run codecov report after other commands on circle ci
2018-08-18 11:17:31 +10:00
Mark Kopenga
0f145093fe
Here i a fix for the error go complain on your pull
2018-08-17 20:43:51 +02:00
Jesse Duffield
bd91b9e1e9
add test repo for all the kinds of files that show up when diffing
2018-08-17 22:46:10 +10:00
Dawid Dziurla
bf5f3bb972
pl translation 3
2018-08-17 14:27:13 +02:00
Jesse Duffield
03a7e32694
support filenames that match branchnames
2018-08-17 22:25:53 +10:00
Dawid Dziurla
b0e08491ac
pl translation 2
2018-08-17 14:11:48 +02:00
Jesse Duffield
aaa8558de8
Merge pull request #159 from remyabel/158_escape_backticks
...
#158 : escapes backticks, which is a problem in shells like Bash
2018-08-17 21:11:20 +10:00
Mark Kopenga
633553bcf8
Merge pull request #7 from jesseduffield/master
...
Update to latest master
2018-08-17 10:33:10 +02:00
Tommy Nguyen
52033b32f7
Use strings.Replace instead of regexp
2018-08-16 17:04:39 -04:00
Mark Kopenga
5c738fa493
Removed duplicates
2018-08-16 20:59:32 +02:00
Mark Kopenga
9a0f29ff5b
Merge pull request #5 from jesseduffield/master
...
Updated to latest master
2018-08-16 20:08:14 +02:00
Dawid Dziurla
2d80a83d27
pl translation 1
2018-08-16 18:56:16 +02:00
remyabel
64d8a55dbd
Merge branch 'master' into 157_remove_bom
2018-08-16 07:59:31 -04:00
Tommy Nguyen
74d81ae080
[rebase] Fix errors; update dependencies
...
Argument must be []byte not string
Don't commit bomtest.txt
2018-08-16 07:17:47 -04:00
Tommy Nguyen
a7755ab184
reformat
2018-08-16 07:00:13 -04:00
Jesse Duffield
df7d1df4cb
bump dependencies
2018-08-16 19:20:59 +10:00
Jesse Duffield
5819e04c53
use shibukawa/configdir package to follow xdg spec config directory structure
2018-08-16 19:17:38 +10:00
Jesse Duffield
fd3ce21576
use yaml for config file rather than json
2018-08-16 18:43:46 +10:00
Tommy Nguyen
3a31b84d1a
add BOM test generator
2018-08-16 02:00:34 -04:00
Tommy Nguyen
f09515867d
#157 : clean BOM, allowing CSV files to display correctly
2018-08-16 01:53:53 -04:00
Tommy Nguyen
db94dde114
fix formatting
2018-08-15 23:58:44 -04:00
Tommy Nguyen
ee4660af97
#158 : escapes backticks, which is a problem in shells like Bash
2018-08-15 23:55:55 -04:00
Jesse Duffield
29ed971558
add user configuration in json file
2018-08-15 22:06:37 +10:00