mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
Add commitPrefix for defining a prefix for any project
This commit is contained in:
committed by
Stefan Haller
parent
af0897f18f
commit
01ff18dd92
@ -220,9 +220,9 @@ func (self *WorkingTreeHelper) prepareFilesForCommit() error {
|
||||
|
||||
func (self *WorkingTreeHelper) commitPrefixConfigForRepo() *config.CommitPrefixConfig {
|
||||
cfg, ok := self.c.UserConfig.Git.CommitPrefixes[self.c.Git().RepoPaths.RepoName()]
|
||||
if !ok {
|
||||
return nil
|
||||
if ok {
|
||||
return &cfg
|
||||
}
|
||||
|
||||
return &cfg
|
||||
return self.c.UserConfig.Git.CommitPrefix
|
||||
}
|
||||
|
Reference in New Issue
Block a user