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 8285485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:28:43+00:00 2026-06-08T11:28:43+00:00

Note: In case it matters, we are using git , (so branching and merging

  • 0

Note: In case it matters, we are using git, (so branching and merging is a breeze), and this is an Android application (Java – so conditional compilation is not really applicable).

Similar to this question here, but what if you have more than just UI differences between different rebrands of a single version of your software? For example, what if an entire feature or subsystem should not be compiled into one of the rebrands (e.g. it contains code that is intellectual property of one company and should not be available to others)?

Should a separate branch be created for each rebrand in this case? If so, is there any use for a main/master branch, since it will just become code-storage and not compile into any useful application (weird)? But not having a main/master branch means having to cherry-pick (individually select) commits to merge across rebrands, which seems like a bad approach.

Or is there another way to solve this that doesn’t involve branches?

  • 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-08T11:28:45+00:00Added an answer on June 8, 2026 at 11:28 am

    From the information provided in Your question, I’d recomment not using branches.

    Branches will divert unless merged. Therefore, making a bugfix available in all
    branches will require a lot of cherry-picking or at least very careful commit/merge handling.

    What about putting customer-specific code into libraries that are loaded by the application?

    Pro:

    • Only customer specific code gets duplicated.
    • Generic code won’t be forked for no reason.
    • Generic code is coded against common interfaces.
    • Customer specific application parts are only shipped to the corresponding customers.

    Con:

    • Careful design and life-cycle-management of common interfaces is required.
    • Additional code for looking up and loading customer specific libraries. (not too difficult in Java or in the build process of Android)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to do a case-insensitive where in NHibernate Linq query? e.g. //note this one
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
(Note: This is not a question about what is the best way with code
Note: Not sure if this is the right stack, please tell if I should
Note: I am not asking how to use Google Code's SVN repo as a
NOTE: This is a followup to my question here. I have a program that
NOTE: This is an old question and the answers here no longer works (since
Note: I had another similar question about how to GZIP data using Ruby's zlib
Note: This is a railsier (and more succinct) version of this question , which
(I'm not using Rails) I have a rake task that sets the environment that

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.