Hello fellow developers.
I have a repository with a subfolder in it, containing code files used as an internal framework. Let's pretend this folder is called package.
I'm keeping this package files committed because this guarantees easier builds, and the particular framework we are using is lacking a package manager.
The files in the package folder should be mantained by a single developer (maybe on a separate branch), and updated just sparingly.
Now, I would like to prevent accidental commits on files in the package folder.
Is there a way I can achieve this task?
I'm considering different solutions:
- git hooks; but the users could easily forget to enable them;
- alternative package managers; but they should be really easy to add, because we already use npm and nuget and I don't want to manage too many tools;
- git submodules; but many developers have a hard time figuring how to update/sync/etc, and the repo in which the package is built is not the same as the files that are shared. So I should manage two repos for the package, one for the development and one for the distribution.
I'm banging my head against the wall... Any suggestion would be greatly appreciated.
Thanks!
 
    