tianocore / edk2-edkrepo

Repository for the edkrepo utility
Other
21 stars 24 forks source link

add filter configurations at a per-Source or per-Remote granularity #239

Open ndhaller opened 4 months ago

ndhaller commented 4 months ago

edkrepo 3.2.0 release adds the --treeless and --blobless options to the edkrepo clone command.

This applies the git clone --filter=tree:0 and --filter=blob:none across all Source in a Combination.

I would like the option to specify 'blobless' and 'treeless' in the manifest file at the Source level or the Remote level.

Example:
--filter=blob:none on the Edk2Repo and Edk2PlatformsRepo, and --filter=tree:0 on the Edk2NonOsiRepo and FspRepo when cloning the Intel-MinPlatform project.

https://github.com/tianocore/edk2-edkrepo-manifest/blob/main/edk2-platforms/Intel-MinPlatform/IntelMinPlatformManifest.xml

    <Remote name="Edk2Repo">https://github.com/tianocore/edk2.git</Remote>
    <Remote name="Edk2PlatformsRepo">https://github.com/tianocore/edk2-platforms.git</Remote>
    <Remote name="Edk2NonOsiRepo">https://github.com/tianocore/edk2-non-osi.git</Remote>
    <Remote name="FspRepo">https://github.com/intel/FSP.git</Remote>
    <Combination name="master" description="the master branch from edk2 Repo, master branch from edk2-platforms repo, master branch from edk2-non-osi repo, master branch from FSP repo">
      <Source localRoot="edk2" remote="Edk2Repo" branch="master" sparseCheckout="true" enableSubmodule="true" />
      <Source localRoot="edk2-platforms" remote="Edk2PlatformsRepo" branch="master" sparseCheckout="true" />
      <Source localRoot="edk2-non-osi" remote="Edk2NonOsiRepo" branch="master" sparseCheckout="true" />
      <Source localRoot="FSP" remote="FspRepo" branch="master" sparseCheckout="false" />
    </Combination>