jesseduffield / jesseduffield/lazygit

Ability to set `commitPrefixes` for all project submodules

Open
#2,407 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

## Is your feature request related to a problem? Please describe.

At work, I have a large project, that is a repository with multiple (more than 20) submodules. With each repository, I need to include a commit prefix with the ticket number, which I deduce from the branch name using lazygit `commitPrefixes` functionality. However, the number of submodules is so large, so that I have to specify each one's folder `Base` name in the lazygit config and using a yml-anchor to avoid repetition. I think, that this workflow could be improved.

## Describe the solution you'd like

I would like so that lazygit have `commitPrefixes` threat configuration keys not as a `Base` name for the repository full path (i.e. name of the last folder in the path), but as one of the directories, that appear in the full path, so that I can have the same configuration for all the numerous submodules, even which I have not yet discovered due to vastness of the project our team is working on.

## Describe alternatives you've considered
`commitPrefixes` could use a regular expression for matching the repos full path.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.