mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
Allow setting a default name when creating new branches
This commit is contained in:
committed by
Jesse Duffield
parent
436240bbeb
commit
5959f7bc8e
@@ -274,6 +274,10 @@ func (self *RefsHelper) NewBranch(from string, fromFormattedName string, suggest
|
||||
},
|
||||
)
|
||||
|
||||
if suggestedBranchName == "" {
|
||||
suggestedBranchName = self.c.UserConfig.Git.BranchPrefix
|
||||
}
|
||||
|
||||
return self.c.Prompt(types.PromptOpts{
|
||||
Title: message,
|
||||
InitialContent: suggestedBranchName,
|
||||
|
||||
Reference in New Issue
Block a user