Skip to main content
9 events
when toggle format what by license comment
Jun 16, 2020 at 10:01 history edited CommunityBot
Commonmark migration
Aug 28, 2011 at 12:56 history migrated from stackoverflow.com (revisions)
Aug 28, 2011 at 12:15 comment added adlawson Yeah, you could do that, but you'd be recommitting their work. Just make sure that the all of your licenses are compatible.
Aug 28, 2011 at 12:12 comment added user916336 Unless I'm missing something there doesn't seem to be a way to do this in the case of jQuery. Take a look at their repo github.com/jquery/jquery, it's just hundreds of individual .js files and a build script- so I can't include it in my project without just downloading a copy from jquery.com and committing it myself, or am I wrong?
Aug 28, 2011 at 12:06 comment added adlawson WordPress uses SVN for version control. Their Github repository is simply a mirror. As far as I'm aware, there is no "submodule" capability in SVN, so they didn't have any option but to recommit it. On another note, don't take WordPress as an example of best practice.
Aug 28, 2011 at 12:01 comment added user916336 Others don't seem to do this though: take Wordpress, they seem to have just stuck the minified files they need from jQuery into a folder and committed them: github.com/wordpress/wordpress/tree/master/wp-includes/js/…
Aug 28, 2011 at 11:56 comment added adlawson As is the nature of licensing, you can't split up and include only the files you want. You should include the whole project as it is packaged. git submodule add git://github.com/jquery/jquery.git public/vendor/jquery
Aug 28, 2011 at 11:52 comment added user916336 git submodule is also something I'm unclear on. For example, my project uses jQuery and jQuery UI- how can I include it as a submodule as the source on GitHub is split into many files and folders. I've had the same thing with HTMLPurifier which I'm also using. The files I need are in one subfolder, but with git submodule it seems like I have no choice but to either include loads of extra stuff I don't need which will bulk out my project unnecessarily, or as you say commit someone else's work as my own!
Aug 28, 2011 at 11:42 history answered adlawson CC BY-SA 3.0