1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00
Commit Graph

2735 Commits

Author SHA1 Message Date
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
0f7003d939 allow spamming the p key 2020-08-23 11:30:29 +00:00
d2d88fe64e fix focus change on merge popup return 2020-08-23 19:28:59 +10:00
fa2a385a0c when in the remote branches view, prefill name for creating branch off of remote branch 2020-08-23 19:27:34 +10:00
66bd86b9b7 set keybindings after initialising views 2020-08-23 17:49:58 +10:00
364bdcf532 safer getting of branch 2020-08-23 17:49:58 +10:00
ba7e098373 check for missing view when scrolling 2020-08-23 16:05:20 +10:00
9f71c8d2b9 rename Status to PatchStatus 2020-08-23 15:11:06 +10:00
fce7cdcc0a enlargen stash window when its focused 2020-08-23 15:11:06 +10:00
4fb52ce2ab better handling of there being no commit files 2020-08-23 15:11:06 +10:00
2915134007 show file statuses in commit files view 2020-08-23 15:11:06 +10:00
2f893bf361 format 2020-08-23 14:29:18 +10:00
f815c5607c prefill remote edit prompts 2020-08-23 14:29:18 +10:00
59d61f00a6 hide secondary view when escaping patch building panel 2020-08-23 14:29:18 +10:00
262ff24c5b always reset branch selected index when creating new branch 2020-08-23 14:29:18 +10:00
1189c2fab7 we've now flipped the boolean 2020-08-23 14:29:18 +10:00
3eb3de3edc allow explicitly managing focus 2020-08-23 14:29:18 +10:00
94601b4dc9 use context to return to the correct view 2020-08-23 14:29:18 +10:00
9ca0073cd7 attempt at fixing bad lazyloading 2020-08-23 14:29:18 +10:00
55e6366529 run task for appropriate view 2020-08-23 14:29:18 +10:00
bd66162972 fix up patch manager 2020-08-23 14:29:18 +10:00
5cdfd41dca prevent spamming pull or push buttons 2020-08-23 14:29:18 +10:00
a95fd581fd fix logic for entering merging panel 2020-08-23 14:29:18 +10:00
fda9f4ea7a centralise logic for rendering options map 2020-08-23 14:29:18 +10:00
f876d8fdc8 use constants 2020-08-23 14:29:18 +10:00
4198bbae6c ensure there is always a current context 2020-08-23 14:29:18 +10:00
ade54b38c1 cleanup 2020-08-23 14:29:18 +10:00
0dd2c869a8 minor refactor 2020-08-23 14:29:18 +10:00
ed85ea69bd cleanup of list context file 2020-08-23 14:29:18 +10:00
953298de74 remove dead code 2020-08-23 14:29:18 +10:00
628404e114 use actual keys 2020-08-23 14:29:18 +10:00
5638a40007 carry more mode state across after returning from subprocess 2020-08-23 14:29:18 +10:00
d6005dc0eb more accurate comment 2020-08-23 14:29:18 +10:00
b3a7acbdad more standardising modes 2020-08-23 14:29:18 +10:00
88ae550b93 unused method 2020-08-23 14:29:18 +10:00
2c3f5be093 comment these things out because we're not using them yet 2020-08-23 14:29:18 +10:00
148f601bcb cleanup now that we're always using the same diff command 2020-08-23 14:29:18 +10:00
43d891b8d6 support creating patches from files in diff mode 2020-08-23 14:29:18 +10:00
2eee079d3a minor rename 2020-08-23 14:29:18 +10:00
8be970e688 stop loading all the diffs at once now that we load them as we go 2020-08-23 14:29:18 +10:00
12bf851c7d faster patch manager 2020-08-23 14:29:18 +10:00
c837c54c39 handle diffing and filtering by file in commit files view 2020-08-23 14:29:18 +10:00
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
e290710f67 support drilling down into the files of a diff 2020-08-23 14:29:18 +10:00
438abd6003 centralise code for copying to clipboard 2020-08-23 14:29:18 +10:00
442f6cd854 more cherry picking stuff, mostly around the reflog 2020-08-23 14:29:18 +10:00
c2b154acad better handling of our different modes and also cherry picking 2020-08-23 14:29:18 +10:00
fbd61fcd17 refactor how we handle different modes 2020-08-23 14:29:18 +10:00
b1529f19ad more cherry picking code into its own file 2020-08-23 14:29:18 +10:00
134566ed49 move into more appropriate file 2020-08-23 14:29:18 +10:00