1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-25 00:46:54 +02:00
Commit Graph

171 Commits

Author SHA1 Message Date
9b32e99eb8 add reflog tab in commits panel 2020-01-09 22:36:07 +11:00
09aabce3cd allow commits to be checked out 2020-01-07 20:43:01 +11:00
3c13229145 add tags panel 2019-11-21 22:07:14 +11:00
3b0cef2ec8 better handling of click events in list views 2019-11-21 22:07:14 +11:00
07cbae4019 support setting upstream 2019-11-21 22:07:14 +11:00
b42202ea1c better fast forward 2019-11-21 22:07:14 +11:00
8347dcd671 make upstream branch display more lenient on git errors 2019-11-21 22:07:14 +11:00
dcb5285797 support rebasing onto remote branch 2019-11-21 22:07:14 +11:00
f0cd730fbb ensure we switch tabs when switching context 2019-11-21 22:07:14 +11:00
2afbd7ba7f support merging remote branches into checked out branch 2019-11-21 22:07:14 +11:00
6b7aaeca45 support adding/removing remotes 2019-11-21 22:07:14 +11:00
986abc1e45 support viewing a remote branch 2019-11-21 22:07:14 +11:00
61dac10bb9 support navigating remotes view 2019-11-21 22:07:14 +11:00
92e43d9e77 allow changing tabs with [ and ] 2019-11-21 22:07:14 +11:00
8aa1062e06 extract out some logic for list views 2019-11-21 22:07:14 +11:00
e6be849eb2 add remotes context to branches view 2019-11-21 22:07:14 +11:00
3b1d705473 show upstream branch for branch 2019-11-13 22:25:42 +11:00
12b84307ac specify upstream when pushing a branch for the first time 2019-11-11 23:30:30 +11:00
e85310c0a9 add mouse support 2019-11-10 22:32:13 +11:00
1a38bfb76d do not return focus to commitsFiles view after selecting to start a new patch 2019-11-05 19:22:01 +11:00
beaebb7dc7 handling when to show the split panel 2019-11-05 19:22:01 +11:00
d5e443e8e3 Support building and moving patches
WIP
2019-11-05 19:22:01 +11:00
75db4faf69 show actual error when trying to check out a branch that doesn't exist 2019-07-14 14:31:48 +10:00
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
e583cc2519 allow autostashing changes when checking out a branch 2019-03-16 12:51:48 +11:00
8c0ea8f45f mouse support 2019-03-02 17:49:30 +11:00
1337f6e76a appease golangci 2019-03-02 17:45:53 +11:00
e011e9bc42 more work on rebasing feature 2019-02-16 21:01:17 +11:00
198cbee498 introduce panel contexts and more work on rebasing 2019-02-16 12:07:27 +11:00
daca07eaca add loading panel 2019-02-16 12:03:22 +11:00
3d343e9b57 Merge branch 'master' into feature/rebasing 2019-02-11 21:02:53 +11:00
a365615490 only use subprocess for merging, not rebasing 2018-12-11 22:16:48 +11:00
9489a94473 Make merge panel its own panel 2018-12-11 22:02:12 +11:00
e0ff46fe53 more work on rebasing including visual indicators 2018-12-11 09:39:54 +11:00
cce6f405a5 Making ci happier 2018-12-11 09:39:54 +11:00
e39d2ed44b Added check to invoke continue/refresh 2018-12-11 09:39:54 +11:00
34fd18a395 Error handling 2018-12-11 09:39:54 +11:00
a1ee11e54e Added error check to satisfy ci 2018-12-11 09:39:54 +11:00
27994f7de8 Added rebase handler 2018-12-11 09:39:54 +11:00
50f20de8f3 Removed a lot of duplicated code 2018-12-10 08:22:52 +01:00
61c2778de1 Changed pushPassUname name to credentials 2018-12-10 07:51:06 +01:00
f14effe5f5 Worked and fixed a view comments 2018-12-09 13:04:19 +01:00
19a6a32625 Merge branch 'master' into https-ask-for-username-password 2018-12-08 16:41:39 +01:00
ff856b7630 fetching branches without checking out 2018-12-08 11:51:47 +11:00
ca3afa2a39 standardising how list panels deal with cursor movement 2018-12-08 11:51:47 +11:00
99a8b1ae8b making a start on unidirectional data binding to fix these UI bugs 2018-12-08 11:51:47 +11:00
8f904ffd72 Working popup 2018-12-07 14:56:29 +01:00
6d0fa8bc29 Made some small inprovements 2018-12-06 09:05:51 +01:00
f6e83cdbdf Started working on the popup 2018-12-06 08:26:05 +01:00
c269ad1370 Made the bot happy 2018-12-02 15:06:51 +01:00