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
Jesse Duffield
db011d8e34
Improve staging panel integration tests
2023-02-25 11:35:41 +11: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
Jesse Duffield
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
Jesse Duffield
94a53484a1
would you believe that I'm adding even 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
c7a629c440
make more use of generics
2022-03-24 20:14:41 +11:00
Jesse Duffield
a34bdf1a04
update linters
2022-03-19 12:12:57 +11:00
Jesse Duffield
18f48a43d5
add some more linters
2022-01-09 14:09:53 +11:00
Jesse Duffield
bbb5eee23a
privatise some fields
2022-01-07 10:52:51 +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
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
Jesse Duffield
d626bcac00
color fixups
2021-08-01 16:14:56 +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
Jesse Duffield
e73de332a1
refactor line by line panel
2021-04-18 16:55:09 +10:00
Jesse Duffield
7d62f103e4
big refactor to give our enums actual types
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
ade54b38c1
cleanup
2020-08-23 14:29:18 +10:00
Jesse Duffield
95a4ca6f8e
remove todo comment
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
30a555b108
don't needlessly load every file
2020-08-23 14:29:18 +10:00
Jesse Duffield
12bf851c7d
faster patch manager
2020-08-23 14:29:18 +10:00
Jesse Duffield
59f5f5c1af
refactor
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
826d1660c9
move patch stuff into its own package
2020-08-15 11:41:37 +10:00