chore: untrack bundled Windows FFmpeg/FFprobe binaries - #1
Open
rsmxingu wants to merge 1 commit into
Open
Conversation
Remove bin/ffmpeg.exe and bin/ffprobe.exe (~200 MB combined) from version control. These are already listed in .gitignore and are downloaded on demand by build_windows.py (download_ffmpeg_binaries), so they never needed to be committed. They were tracked despite the .gitignore entry (added before the ignore rule or with -f), which inflated the repository: .git is ~220 MB and every clone pulls the full binaries. This change stops tracking them; the files remain on disk locally and are untouched for builds. Note: this only stops future tracking. Reclaiming the space already in history requires a separate history rewrite (e.g. git filter-repo), intentionally not done here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
bin/ffmpeg.exeandbin/ffprobe.exe(~200 MB combined) are committed to the repository even though:.gitignore(thebin/entry), andbuild_windows.pydownloads them on demand viadownload_ffmpeg_binaries()from gyan.dev.They ended up tracked despite the ignore rule (added before the rule existed, or force-added). The cost is real:
.gitis ~220 MB, and every clone/fetch drags the full binaries.Change
git rm --cached bin/ffmpeg.exe bin/ffprobe.exe— stop tracking the two binaries. The files remain on disk locally and the build process is unaffected (it re-fetches/uses them as before).Scope / caveat
This stops future tracking only. The ~200 MB already in history is not reclaimed by this PR; doing so requires a history rewrite (e.g.
git filter-repo), which is destructive and intentionally left out of this change.Testing
build_windows.pystill finds the on-disk binaries and skips re-download when present.🤖 Generated with Claude Code