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

1924 Commits

Author SHA1 Message Date
75db4faf69 show actual error when trying to check out a branch that doesn't exist 2019-07-14 14:31:48 +10:00
e1f5601d4b fix typo 2019-07-14 14:24:59 +10:00
b60ecdaa24 472 - Update error message 2019-07-14 14:24:18 +10:00
9fb9962ce7 472 - Don't panic if not in a repository
Display a friendly message and exit with an error if not
in a Git repository. Using the same approach used in this PR:
https://github.com/jesseduffield/lazydocker/pull/14/files
2019-07-14 14:24:18 +10:00
25c93c678d Create FUNDING.yml 2019-06-30 09:50:28 +10:00
b8baef7b8f use fork of roll that doesn't care about errors 2019-06-29 20:56:46 +10:00
235a47bb80 Revert "emergency situation: we're not logging to rollrus while we're past the request quota"
This reverts commit c107eed890.
2019-06-29 20:56:46 +10:00
c107eed890 emergency situation: we're not logging to rollrus while we're past the request quota 2019-06-24 12:29:44 +10:00
abddea060e revert menu panel error panel usage 2019-06-08 20:29:25 +10:00
3e40369fd2 add GIT_OPTIONAL_LOCKS=0 env var to all commands 2019-06-06 20:53:35 +10:00
0f0fda1660 allow stashing staged changes
reinstate old stash functionality with the 's' keybinding
2019-06-06 20:50:19 +10:00
bd2170a99c request explicit return from subprocess
Previously we were recording output from subprocesses using a multiwriter
and hooking that up to the cmd's stdout to write to both os.Stdout and
a buffer. We would then display the output after the program finished.

This worked well for commands like 'ls' but not for commands like 'vi'
which expect you to be in a tty, and when you've got the cmd's stdout
pointing at a multiwriter, the subprogram thinks we're not in a tty
and then things like terminal corruption can happen. This was the case
with neovim, and even in vim a warning was given with a pause before
starting the program.

Now we're chucking out the multiwriter and instead making it that you
need to press enter after the program has finished to return to lazygit.
This allows you to view the output of the program (e.g. if it's ls) and
then decide that you want to return. It's one level of unnecessary
redirection for editors like vim, but even they could potentially have
output to stderr/stdout that you want to look at before returning.

 Please enter the commit message for your changes. Lines starting
2019-05-26 21:19:54 +10:00
c039e5bed0 support going to start/end of line and deleting lines in simple editor 2019-05-26 12:42:17 +10:00
527c025a0c use shift+j/k to scroll main, ctrl+j/k to move commits 2019-05-25 16:48:17 +10:00
53cded77f1 fix padding with coloures strings 2019-05-19 15:25:33 +10:00
4a4dc676fc simplify code for logging output of subprocess 2019-05-18 11:30:10 +10:00
c61bfbdd4c Support opening lazygit in a submodule v0.8 2019-05-12 17:59:49 +10:00
e38d9d5f22 Add alternatives for scroll actions to context map 2019-05-12 16:20:42 +10:00
97f060d38d Add field Alternative to gui.Binding
Document and use alternative keybinding for generating cheatsheet. Add
alt keybinding fn+up/down for scroll up/down actions.

Also run `go run scripts/generate_cheatsheet.go`.
2019-05-12 16:20:42 +10:00
357b8fa98f Bump gocui fork 2019-05-09 21:27:35 +10:00
8754d766e2 Made not enough space pannel looks better on 1 height 2019-05-07 08:47:41 +02:00
2388c3ee9a Fixed some sugestions from jesseduffield 2019-05-06 20:04:54 +02:00
61890cb9de Merge branch 'master' into smaller-ui 2019-05-06 15:24:36 +02:00
5a0d0bb299 support resetting to a commit in either soft, hard, or mixed mode 2019-05-06 22:44:38 +10:00
2746b1bd38 Prevent crash when opening in small window
We were crashing when opening lazygit in a small window because the limit view
was the only view that got created, and there were two functions that referenced
either the 'current' view or the files view, neither of which existed.

Now those functions just return nil if the view does not exist
2019-05-06 22:39:35 +10:00
e09aac6450 Improve directory check for .git
Return error if the .git exists but is not a directory. This provides a
slightly better failure message for git repo with submodules in case
the '.git' is a file which provides the reference to the parent's .git
folder with the submodule inside.
2019-05-06 21:37:42 +10:00
19a6368377 Changed the way how the view height are set 2019-05-05 15:57:35 +02:00
e6122122e9 Updated the gocui package 2019-05-05 11:50:51 +02:00
492614ebc7 Made the ui even smaller 2019-04-26 08:24:14 +02:00
d31f0ed39b Merge branch 'master' into smaller-ui 2019-04-26 07:46:45 +02:00
b505c295d2 Fixed another view things 2019-04-26 13:44:37 +10:00
0b9d7edd47 Fixed sugestions 2019-04-26 13:44:37 +10:00
e9fbb608a8 Translated missing sentences 2019-04-26 13:44:37 +10:00
6ba05c94ea Added another resizing step 2019-04-25 21:37:19 +02:00
07fec6d00e Made the go bot happy 2019-04-20 16:51:50 +02:00
a69b985086 Better UI on small screens 2019-04-20 15:56:23 +02:00
471733fe03 add english translations to dutch/polish i18n files for translation later 2019-04-13 14:39:46 +10:00
0d3a193ab5 Add 'w' keybinding in files panel to commit as a WIP
If your git.skipHookPrefix is set to, say, WIP, in your config, then
hitting 'w' in the files panel will bring up the commit message panel
with 'WIP' pre-filled, so you just need to hit enter to confirm
(or add some more to the message) in order to commit your changes
with the --no-verify flag, meaning the pre-commit hook will be skipped
2019-04-13 14:38:17 +10:00
ab9fa291a8 Add skipHookPrefix to config
allows a user to specify a commit message prefix that will tell lazygit to skip
the pre-commit hook. This defaults to WIP. Setting it to the empty string will
disable the feature.

So if my message goes 'WIP: do the thing' then the pre-commit hook will not run
2019-04-13 14:38:17 +10:00
cadc74eeec Update issue templates 2019-04-13 12:35:09 +10:00
fc3a57b5e2 Change expected sha for DiscardOldFileChanges 2019-04-10 17:17:31 +10:00
7ff07e1454 Always include atleast 2 commits when doing squash and fixup 2019-04-10 17:17:31 +10:00
3e779bca8d bump gocui to fix invalid point crashing issue 2019-04-10 10:03:35 +10:00
0f1abcb10c remove subprocess channel stuff 2019-04-07 17:15:01 +10:00
55538a3695 support custom commands 2019-04-07 17:15:01 +10:00
878a15aff4 remove verbose flag from go test 2019-04-07 13:13:40 +10:00
60e33f5d8c Allow for creating fixup! commits 2019-04-07 13:13:40 +10:00
b422692746 Remove custom Homebrew tap from instructions
Now that lazygit has been added to the Homebrew core repository
([1] [2]), Homebrew users no longer need to tap into
`jesseduffield/lazygit` to install it.

[1]: https://github.com/jesseduffield/lazygit/issues/256

[2]: https://github.com/Homebrew/homebrew-core/pull/37614
2019-04-06 18:33:27 +11:00
f34be1896a fixed some #397 2019-04-06 13:02:20 +11:00
c350cdba43 add feature of display diff between specific commits #397 2019-04-06 13:02:20 +11:00