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

540 Commits

Author SHA1 Message Date
bef26b9634 add common commit controller 2022-03-17 19:13:40 +11:00
574c5ca0de add subcommits controller 2022-03-17 19:13:40 +11:00
eab00de273 reflog controller 2022-03-17 19:13:40 +11:00
371b8d638b more consistent naming 2022-03-17 19:13:40 +11:00
943a8e83da ensure we retain state when returning to submodule parent 2022-03-17 19:13:40 +11:00
41527270ed appease linter 2022-03-17 19:13:40 +11:00
722410aded refactor controllers 2022-03-17 19:13:40 +11:00
b93b8cc00a controller for viewing sub commits 2022-03-17 19:13:40 +11:00
cd31a762b9 rename OSCommand field to os 2022-03-17 19:13:40 +11:00
d82f175e79 refactor contexts 2022-03-17 19:13:40 +11:00
145c69d9ae working again 2022-03-17 19:13:40 +11:00
482bdc4f1e more refactoring 2022-03-17 19:13:40 +11:00
8e3484d8e9 add global controller 2022-03-17 19:13:40 +11:00
226985bf76 refactor keybindings 2022-03-17 19:13:40 +11:00
2db4636815 no more indirection 2022-03-17 19:13:40 +11:00
2a1e3faa0c resetting controllers on new repo 2022-03-17 19:13:40 +11:00
0a8cff6ab6 some more refactoring 2022-03-17 19:13:40 +11:00
182c999ee0 fix linting 2022-03-17 19:13:40 +11:00
b5515da00b move commit files context into new structure 2022-03-17 19:13:40 +11:00
c084abb378 move more view model logic into the files view model 2022-03-17 19:13:40 +11:00
8ea7b7a62e migrate files context to new structure 2022-03-17 19:13:40 +11:00
f97de692e3 move helpers into their own struct 2022-03-17 19:13:40 +11:00
2692637fbe standardise naming 2022-03-17 19:13:40 +11:00
77d0732fa8 add actions abstraction 2022-03-17 19:13:40 +11:00
138be04e65 refactor contexts code 2022-03-17 19:13:40 +11:00
1a74ed3214 avoid deadlock 2022-03-17 19:13:40 +11:00
a2318d75b5 fix some things 2022-03-17 19:13:40 +11:00
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
a90b6efded start refactoring gui 2022-03-17 19:13:40 +11:00
fa8571e1f4 rename field 2022-03-17 19:01:28 +11:00
b8fc829f86 Record current directory on switch 2022-03-17 19:01:28 +11:00
7be25a105d allow skipping confirmation prompt after opening subprocess 2022-03-17 17:52:31 +11:00
9adf4a1908 Add shared function for loading map of custom colors 2022-02-01 18:55:45 +11:00
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
c8cc18920f improve merge conflict flow 2022-01-26 14:50:47 +11:00
5b7dd9e43c properly resolve cyclic dependency 2022-01-22 10:48:51 +11:00
4ab5e54139 add support for git bisect 2022-01-22 10:48:51 +11:00
ab84410b41 check returned error (if any) from UpdateWindowTitle 2022-01-21 23:13:39 +11:00
62a7d9bbcc invoke title-setting shell command appropriately 2022-01-21 23:13:39 +11:00
555d8bbc96 set repo name as window title when loading repo, fix #1691 2022-01-21 23:13:39 +11:00
0092c9d08d fix bug with subprocess 2022-01-16 03:32:09 +00:00
cdcfeb396f stop refreshing the screen so much 2022-01-15 14:15:41 +11:00
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
18f48a43d5 add some more linters 2022-01-09 14:09:53 +11:00
364c5db19c shorten name 2022-01-09 14:09:53 +11:00
f503ff1ecb start breaking up git struct 2022-01-09 14:09:53 +11:00
48a4565d1f remove log of error now that we're returning it normally 2022-01-07 11:01:42 +11:00
ee7a6391a8 remove redundant commit 2022-01-07 11:01:42 +11:00
68fc6059d3 rename variable to failedCommitMessage 2022-01-07 11:01:42 +11:00
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