mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Add commitPrefix for defining a prefix for any project
This commit is contained in:
parent
af0897f18f
commit
01ff18dd92
7 changed files with 86 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue