I would not do this. You are not going to save any disk space. Git works on blobs. If the same blob is on multiple different branches, there is only one copy of it in git.
Mike On Fri, Oct 2, 2020, 8:45 PM [email protected] <[email protected]> wrote: > Hi All, > > I am not sure how to tackle this issue. I am currently working on two > branches for two different platforms. Some of the code on these branches is > different but 99% is same. What I intend to do is make them merge on > singlebranch the problem I have is > > > 1. One branch uses Android.bp and other uses Android.mk > 2. I want to use Android.bp when building for Android 8 and Android.mk > when building for Android 5 > 3. Not sure how to tackle this issue. > > Would be grateful if someone can shed somelight of how to make this > process conditional. > > I have tried to convert Android.bp to Android.mk but have ran into issues > due to dependencies as other repo's are using Android.bp so this is not an > option. For Android 8 i can but if else in a make file to say this but in > Android 5 how to I say dont use Android.bp for building or will Android 5 > not pick up Android.bp file > > Regards > > Ali > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/c89163c3-291f-43b2-b46b-33cdfbc331f1n%40googlegroups.com > <https://groups.google.com/d/msgid/android-building/c89163c3-291f-43b2-b46b-33cdfbc331f1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAJt7Dwz3ufob2epPy1A%3DxnjX683nsD66dEiCtJz7bdmwckuz9w%40mail.gmail.com.
