Submodules or subtree merges with Drupal module projects

Events happening in the community are now at Drupal community events on www.drupal.org.
skomorokh's picture

I am working on a D6 module that I'd like to port to 7 soon. While I will certainly need to maintain the PHP files in separate branches, it involves a lot of Javascript that I think can be nearly identical between versions. Rather than copying files back and forth or cherry-picking commits between the branches, will it be possible to use git submodules or subtree merge with Drupal projects?

Comments

Subtree merge, I can't think

sdboyer's picture

Subtree merge, I can't think of a reason why not. Submodules, I don't think so. Our packager doesn't have support for doing the nested operations necessary to retrieve submodules.

Drupal.org Git Team

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: