Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare the miniaudio submodule as shallow #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nmlgc
Copy link

@nmlgc nmlgc commented Jan 14, 2025

If a repo includes dr_libs as a submodule, a recursive clone would also pull miniaudio with its full history, which currently takes up 157.5 MiB on disk. Declaring miniaudio as shallow would reduce this to 7.4 MiB by only downloading any data needed for the recorded commit. This seems to be a better default for consumers who most likely won't need to jump around in miniaudio's history, if they even build the tests at all. This won't affect existing checkouts, and even new ones can later add back the history via git fetch --unshallow.

If a repo includes dr_libs as a submodule, a recursive clone would also
pull miniaudio with its full history, which currently takes up 157.5 MiB
on disk. Declaring miniaudio as shallow would reduce this to 7.4 MiB by
only downloading any data needed for the recorded commit. This seems to
be a better default for consumers who most likely won't need to jump
around in miniaudio's history, if they even build the tests at all.
This won't affect existing checkouts, and even new ones can later add
back the history via `git fetch --unshallow`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant