Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8569937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:26:56+00:00 2026-06-11T18:26:56+00:00

We have a super project which has a couple of sub modules, this has

  • 0

We have a super project which has a couple of sub modules, this has been working well.

But now we have reached the point where in one of the sub modules needs to be modified for this specific project, but still want to be able to pull in changes from original sub module if possible.

We want these changes to be tracked by the super project obviously, and not be pushed through to the original sub module if we make a change.

How can we manage this?

I imagine we could create a branch in the sub module for this specific project, but that could get messy with 100+ projects using the same sub module.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:26:57+00:00Added an answer on June 11, 2026 at 6:26 pm

    I don’t know the details of your projects/subprojects, so I will only give vague and general observations.

    Your issue does not seem to be with git specifically, but rather with managing projects/subprojects dependencies.

    First a word of warning : from what you are describing, you want to tweak the behavior of a submodule used by 100+ projects for only one of these projects. If you really end up modifying the submodule (e.g : modifying the code also used by the other projects), you are entering one new circle in the hell of testing. Look at how your submodule works, and determine if you should really change your submodule, or only tweak it for one project.

    If the modifications you need are only specific to one project, try to keep these modifications confined to the project – and not modify the submodule.

    One possible way would to wrap its call in the specific project, e.g replace calls to :

    submodule::do_stuff()
    

    with

    function adjust_behaviour(){
        result = submodule::do_stuff();
        tweak_for_my_project(result);
        return result;
    }
    

    If the behaviour of your submodule should really change depending on a parameter, you should display this in the interface it provides to use it.

    For example : if your submodule contains a function computeThis(), and the computation actually depends on the parameter weather, you should consider changing the function so it acts accordingly : computeThis(weather).

    Or maybe your sumodule can load a configuration file, and each project should provide its own.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Project model. This model has Days which are inlines . How
I have an xcode project which has 2 classes - Stem & Player, I'm
I have been working on an iPhone project, where we created all the user
I have got this super weird bug in my current project. To understand what
I have recently being trying to create a project which has several levels of
I have set up a MapView Class which has Overlays (and they're working fine.)
I have a super pom defined in which I specify a "resources" directory for
I have a super fish menu, the delay is set to 800, but when
I am deploying to Glassfish 3.1.1. I have a JPA project which creates a
In a project I'm creating, I have various classes. One of my classes has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.