You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining project configurations, I would like to define a project for a specific company root directory, and be able to apply the company's copyright to all child git repos.
With this config, if you create a repository /home/user/software/company/git-repo/ then when trying to call auto-header with <leader>ah it should apply the company notice.
In the current state, it is applying the MIT license.
Ideal State
The ideal state would be to load both the git config, and the parent project config. With the parent project taking precedence.
The text was updated successfully, but these errors were encountered:
I do agree that I should make both the project config and the git one merge.
I’m a bit confused about the script exiting when it finds the git config though since it seems to me to be clearly the opposite: it looks for a project configuration if one is found, it’ll return it (l.70), and only if no existing project configuration is found will it look and return a git one if it exists (l.74).
That being said, if it doesn’t work as it should with the configuration you posted, something is clearly going wrong. I’m just not sure what right now… I’ll have a look.
So I’ve had that look. There were a few things that I needed to fix, but in my tests I cannot reproduce your problem even though I have a very similar setup (a generic copyright notice for the language templates, and the MIT one for the auto-header). The right copyright notice gets inserted in the header.
Description
When defining project configurations, I would like to define a project for a specific company root directory, and be able to apply the company's copyright to all child git repos.
Currently, when loading the configuration, it is early exiting as soon as it finds the
.git/
folder.Setup
With this config, if you create a repository
/home/user/software/company/git-repo/
then when trying to call auto-header with<leader>ah
it should apply the company notice.In the current state, it is applying the MIT license.
Ideal State
The ideal state would be to load both the git config, and the parent project config. With the parent project taking precedence.
The text was updated successfully, but these errors were encountered: