Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Should I Handle a Plugins Repo Using Git?

Tags:

git

github

dvcs

I have a bit of a dvcs design question: I have a project that I am hosting on github. I also have several plugins that I have written for the project, but that I don't want to include in the core code, because they are optional plugins.

In svn, I just created an additional dir that contained all of the plugins. Users could point their svn:externals to each plugin in the directory. With git, I'm not sure if I should create on plugins repo, and have a separate branch for each plugin that users can submodule, or if I should have a totally separate repo for each plugin that can be submoduled. Any thoughts?

like image 386
jscheel Avatar asked Mar 14 '26 01:03

jscheel


1 Answers

I'd create a separate repo for each plugin, which can be submoduled. Git repos work best when they only contain one project, and the branches in that repo relate to each other (rather than keeping each project in separate, unrelated branches in the same repo).

like image 198
mipadi Avatar answered Mar 15 '26 17:03

mipadi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!