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

227 Commits

Author SHA1 Message Date
8932d17393 Cleanup: remove unnecessary if statements
The assert package is already very good at displaying errors, including printing
a diff of expected and actual value, so there's no point in printing the same
information again ourselves.
2023-06-26 08:11:10 +02:00
a4db44bc3d show commits against branches 2023-06-01 19:21:24 +10:00
61f00e6dd4 update seconds ago function and add tests 2023-06-01 18:48:06 +10:00
0e0458f355 More compact and flexible date format
You can now configure both a time format and a short time format, where the short format kicks in
when the time is within the last day
2023-05-26 17:31:39 +10:00
ec3a28df43 Right-align key labels in menu
I find this makes it look a little nicer
2023-05-21 12:09:43 +10:00
e156e090cc add ability to update yaml path while preserving comments 2023-05-10 22:31:27 +10:00
e63858215e refactor moveFixupCommitDown 2023-04-29 07:28:33 +02:00
3fe4db9316 Make RebaseCommands.AmendTo more robust
This fixes two problems with the "amend commit with staged changes" command:

1. Amending to a fixup commit didn't work (this would create a commmit with the
   title "fixup! fixup! original title" and keep that at the top of the branch)
2. Unrelated fixup commits would be squashed too.

The added integration test verifies that both of these problems are fixed.
2023-04-29 07:28:33 +02:00
a8586ba57e Refactor: simplify PrepareInteractiveRebaseCommand API
Instead of passing a bunch of different options in
PrepareInteractiveRebaseCommandOpts, where it was unclear how they interact if
several are set, have only a single field "instruction" which can be set to one
of various different instructions.

The functionality of replacing the entire todo file with our own is no longer
available; it is only possible to prepend todos to the existing file.

Also, instead of using different env vars for the various rebase operations that
we want to tell the daemon to do, use a single one that contains a json-encoded
struct with all available instructions. This makes the protocol much clearer,
and makes it easier to extend in the future.
2023-04-29 07:28:33 +02:00
ab25600ccb Extract EditRebaseTodo into a function in utils.rebaseTodo
We want to reuse it from the daemon code in the next commit.
2023-04-29 07:28:33 +02:00
aec46942a8 enforce lowercase filenames 2023-04-29 13:05:05 +10:00
dc4e88f8a4 Make moving todo commits more robust 2023-04-15 08:36:03 +02:00
120dd1530a Make EditRebaseTodo more robust
It used to work on the assumption that rebasing commits in lazygit's model
correspond one-to-one to lines in the git-rebase-todo file, which isn't
necessarily true (e.g. when users use "git rebase --edit-todo" at the custom
command prompt and add a "break" between lines).
2023-04-15 08:36:03 +02:00
7149cfeb11 fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
39e84e13f4 Use lazycore utils: Clamp and GetLazyRootDirectory 2022-10-15 13:55:44 -03:00
a4239c7a37 fix: fix stash with empty message 2022-10-13 22:23:56 +09:00
ed98b60078 use thread safe map 2022-10-02 20:57:44 -07:00
19df238b77 feat: allow OSCommand.Quote to be invoked within a custom command 2022-09-30 21:16:45 +09:00
fd66499c8f Merge pull request #2167 from xiaoliwang/remove_deprecated 2022-09-23 23:01:40 -07:00
3d79c6a3d3 formatter 2022-09-17 15:10:41 -07:00
b8900baf1a remove deprecated calls 2022-09-17 15:10:41 -07:00
7e9dffe1b9 Add Key field to CustomCommandPrompt struct
Add Form field to CustomCommandObjects struct

Write user prompts responses to Form field

Ensure that map keys exists

Add form prompts integration test

Remove redundant index
2022-09-17 14:58:44 -07:00
5173d7f5e1 better CLI interface 2022-08-14 17:20:52 +10:00
77881a9c7d add new integration test pattern 2022-08-11 21:24:15 +10:00
755ae0ef84 add deadlock mutex package
write to deadlock stderr after closing gocui

more deadlock checking
2022-08-07 11:16:14 +10:00
524bf83a4a refactor to only have one context per view 2022-08-06 13:49:11 +10:00
1f1d871837 feat: add ability to customize time format 2022-05-18 20:55:27 +09:00
494368a241 feat: accept named colors for gui.authorColors 2022-05-04 19:03:00 +09:00
340a145bc8 refactor cheatsheet generator 2022-03-24 20:14:41 +11:00
1b75ed3740 many more generics 2022-03-24 20:14:41 +11:00
bf4f06ab4e more generics 2022-03-24 20:14:41 +11:00
c7a629c440 make more use of generics 2022-03-24 20:14:41 +11:00
a34bdf1a04 update linters 2022-03-19 12:12:57 +11:00
c084abb378 move more view model logic into the files view model 2022-03-17 19:13:40 +11:00
a90b6efded start refactoring gui 2022-03-17 19:13:40 +11:00
9adf4a1908 Add shared function for loading map of custom colors 2022-02-01 18:55:45 +11:00
4ab5e54139 add support for git bisect 2022-01-22 10:48:51 +11:00
18f48a43d5 add some more linters 2022-01-09 14:09:53 +11:00
c9a0cc6b30 refactor 2022-01-09 14:09:53 +11:00
3621854dc7 fix tests 2022-01-09 14:09:53 +11:00
f503ff1ecb start breaking up git struct 2022-01-09 14:09:53 +11:00
ad9b2df104 more test refactoring 2022-01-04 09:07:15 +11:00
192a548c99 refactoring the config struct 2022-01-04 09:07:15 +11:00
18ab086126 introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
7bc8b96aba add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
802cfb1a04 render commit graph 2021-11-05 07:58:21 +11:00
9989c96321 better formatting 2021-10-31 22:33:39 +11:00
f91892b8f1 fix truncation 2021-10-30 20:19:40 +11:00
b04b457246 fix yet another issue with indentation 2021-10-30 18:26:06 +11:00
6457800748 fix another issue with indentation 2021-10-30 18:26:06 +11:00