Commit graph

47 commits

Author SHA1 Message Date
Stephan
4a442f3829 cleanup use 2020-06-29 12:30:10 +02:00
Stephan
ce4f3af767 leave alternate screen when going into external editor (fixes #152) 2020-06-29 10:27:16 +02:00
Stephan Dilly
c856c23aef remove outdated commit method 2020-06-29 09:46:38 +02:00
Jon Grythe Stødle
477fdd303d Add support for external editor
Adds support for editing commit messages in an external editor. It read the GIT_EDITOR, VISUAL, EDITOR environment variables in turn (in the same order git does natively) and tries to launch the specified editor. If no editor is found, it falls back to "vi" (same as git). If vi is not available, it will fail with a message.
2020-06-26 00:50:39 +02:00
Stephan Dilly
df338334e1 2% optimisation in revlog where amend was still run on each event 2020-06-25 18:35:16 +02:00
Stephan Dilly
0d84abd1c6 make draw take shared ref again 2020-06-23 11:03:02 +02:00
Stephan Dilly
b899751c2b share theme instead of copying it all over the place 2020-06-22 12:21:21 +02:00
Stephan Dilly
5185f1c4d4 support commit amend (#89) 2020-06-13 01:50:39 +02:00
Stephan Dilly
38413d069e consistent log:: usage 2020-05-23 23:31:15 +02:00
Mehran Kordi
4c17660956
anyhow integration (closes #77) 2020-05-23 17:12:38 +02:00
Stephan Dilly
60ba75f1db fix stash msg popup title/msg 2020-05-22 18:02:25 +02:00
Stephan Dilly
1f5706fa0c support stash msg 2020-05-22 17:37:48 +02:00
Stephan Dilly
b34deddb0e split commitComponent to have generic reusable textInputComponent 2020-05-22 14:33:44 +02:00
Stephan Dilly
f03a1ac611 make msgbox error msgs only for now 2020-05-20 11:29:11 +02:00
Stephan Dilly
25c07a839c warn if commit fails (like when no name is set) (#74) 2020-05-20 11:26:56 +02:00
Stephan Dilly
1c03458de7 merge uses 2020-05-19 23:11:28 +02:00
Stephan Dilly
5f8c333a24 pass theme as ref where possible 2020-05-19 20:38:56 +02:00
Mehran Kordi
4ec1a4e94b
Implement color themes #65 (closes #28) 2020-05-19 20:19:30 +02:00
Mehran Kordi
03505b9eb6
Replace unwrap calls in asyncgit with error handling - closes #53 2020-05-15 15:15:26 +02:00
Stephan Dilly
e7f0db2941 simplify ctrl+c handling, its done first so no one can block it 2020-05-13 16:47:39 +02:00
Stephan Dilly
70e5201956 allow all draw calls to mutate self 2020-05-12 13:22:55 +02:00
Stephan Dilly
c638eb0329 ignore ctrl+c in commit to allow quitting 2020-05-10 14:47:19 +02:00
Stephan Dilly
871f2cf2c3 commit error handling 2020-05-05 13:54:43 +02:00
Stephan Dilly
5382ce7408 Improve navigation (#29)
* offer commit only when selecting staging area
* show quickbar cmd to switch between unstaged/staged
* adjust size of focused file tree
2020-04-30 12:22:38 +02:00
Stephan Dilly
1b90436421 switch to tui clear new in 0.9 2020-04-16 15:12:32 +02:00
Stephan Dilly
e50f15f72b tui upgrade 2020-04-15 22:38:09 +02:00
Stephan Dilly
6bcdee4d63 more clean update messaging 2020-04-13 01:22:09 +02:00
Stephan Dilly
520456d0cd visualize commit-msg hook when failed 2020-04-10 14:02:24 +02:00
Stephan Dilly
36ff0be9d1
support hooks: post-commit,commit-msg (#15)
* support hooks: post-commit and commit-msg
* some unittests
* exclude tests on windows for now
2020-04-09 09:23:59 +02:00
Stephan Dilly
6001593a0a rename 2020-04-03 16:26:05 +02:00
Stephan Dilly
2282305e7c switch to new command texts 2020-04-03 16:24:52 +02:00
Stephan Dilly
ed5668c4c8 cmd help grouping and long desc 2020-04-03 14:48:41 +02:00
Stephan Dilly
6c7c155cef better system for cmd propagation 2020-04-02 18:07:53 +02:00
Stephan Dilly
510400a784 clippy fix 2020-04-02 13:34:28 +02:00
Stephan Dilly
4bd9826666 move more into sub components 2020-04-02 13:29:25 +02:00
Stephan Dilly
e46ab3ac7b cleanup eventpump, generalization 2020-04-02 01:50:39 +02:00
Stephan Dilly
41a52cfc8c more clean solution that does not need git cli
* make test run in parallel again
* better test structure
2020-03-28 13:45:19 +01:00
Stephan Dilly
8e7d2eb4a1 fix more clippy 2020-03-27 01:11:15 +01:00
Stephan Dilly
37da79233a fix tons of clippy warnings 2020-03-26 23:45:52 +01:00
Stephan Dilly
adf925083d first test for a help popup 2020-03-24 14:39:00 +01:00
Stephan Dilly
b0b9fb570d better asyncgit crate structure 2020-03-23 00:50:55 +01:00
Stephan Dilly
9580f8b489 move all git method in crate, reduce main deps 2020-03-23 00:14:57 +01:00
Stephan Dilly
8a7e3414d0 cleanup mod structure 2020-03-22 02:38:39 +01:00
Stephan Dilly
87254045c3 trigger update only after sending commit 2020-03-22 02:26:32 +01:00
Stephan Dilly
cb247b9e7f less libgit calls and added optional timing logging for benchmarking 2020-03-22 02:17:03 +01:00
Stephan Dilly
09f893f3b0 central place for strings/keys and better key bindings for focusing 2020-03-19 21:40:48 +01:00
Stephan Dilly
c2a80225ae put components into seperate mod 2020-03-18 15:20:32 +01:00
Renamed from src/commit.rs (Browse further)