Replies: 2 comments
-
Same I need to allow-empty commits because my organizations uses this commits to trigger CI |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm trying something like this out mikavilpas/dotfiles@43a59c0 disclaimer: just tried it out once, so not much real world testing on this one yet 😄 commit 43a59c0eb06500f21135837a78317a7b0e913a10
Author: Mika Vilpas <[email protected]>
Date: Fri May 17 16:14:10 2024 +0300
feat(lazygit): skip re-verifying when rewording (`R`) commit in editor
diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml
index 013db32..e3225f4 100644
--- a/.config/lazygit/config.yml
+++ b/.config/lazygit/config.yml
@@ -72,6 +72,10 @@ customCommands:
# want to reduce the repetition in the commit messages
command:
"git commit --amend --no-verify --message '{{.SelectedLocalCommit.Name}}'"
+ - key: R
+ context: commits
+ command: git commit --allow-empty --amend --no-verify
+ subprocess: true
keybinding:
universal: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I want to rename a commit with my editor without firing the commit hooks in my repo.
currently, you can reword the commit in your editor with R in the commits panel but this fires the commit hook.
I guess I need something like a custom command that calls 'git commit --allow-empty --amend --no-verify' and opens the editor in lazygit. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions