mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Add bisect menu entry that lets you choose bisect terms
This can be useful if you want to find the commit that fixed a bug (you'd use "broken/fixed" instead of "good/bad" in this case), or if you want to find the commit that brought a big performance improvement (use "slow/fast"). It's pretty mind-bending to have to use "good/bad" in these cases, and swap their meanings in your head. Thankfully, lazygit already had support for using custom terms during the bisect (for the case that a bisect was started on the command-line, I suppose), so all that's needed is adding a way to specify them in lazygit.
This commit is contained in:
@ -552,6 +552,9 @@ type Bisect struct {
|
||||
ResetTitle string
|
||||
ResetPrompt string
|
||||
ResetOption string
|
||||
ChooseTerms string
|
||||
OldTermPrompt string
|
||||
NewTermPrompt string
|
||||
BisectMenuTitle string
|
||||
Mark string
|
||||
Skip string
|
||||
@ -1350,6 +1353,9 @@ func EnglishTranslationSet() TranslationSet {
|
||||
ResetTitle: "Reset 'git bisect'",
|
||||
ResetPrompt: "Are you sure you want to reset 'git bisect'?",
|
||||
ResetOption: "Reset bisect",
|
||||
ChooseTerms: "Choose bisect terms",
|
||||
OldTermPrompt: "Term for old/good commit:",
|
||||
NewTermPrompt: "Term for new/bad commit:",
|
||||
BisectMenuTitle: "Bisect",
|
||||
CompleteTitle: "Bisect complete",
|
||||
CompletePrompt: "Bisect complete! The following commit introduced the change:\n\n%s\n\nDo you want to reset 'git bisect' now?",
|
||||
|
Reference in New Issue
Block a user