If you have written a feature or fix that belongs in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Project516/sm64dx/llms.txt
Use this file to discover all available pages before exploring further.
enhancements/ directory, you can package it as a standalone .patch file using tools/create_patch.sh. The script captures all staged and unstaged changes relative to the current master branch in standard unified-diff format, making the result immediately usable by tools/apply_patch.sh and the POSIX patch utility.
Workflow
Switch to the master branch
Patches are always authored against
master. Make sure you are on that
branch before starting.Make your changes
Edit, add, or delete source files as needed. Do not commit the
changes —
create_patch.sh works against the unstaged and untracked
diff relative to the last commit.New files that have never been tracked by Git are included automatically:
the script runs git add . internally to stage them before generating
the diff, then immediately runs git reset to unstage everything, leaving
your working tree exactly as it was.Run create_patch.sh
Pass the desired output path as the only argument. By convention, patch
files live in the The script will:
enhancements/ directory.- Run
git add .to pick up any new untracked files. - Run
git diff -p --staged > enhancements/my_feature.patchto write the patch. - Run
git resetto unstage everything.
Patch format
The output is a standard unified diff (git diff -p --staged) with one level of path prefix — the same format consumed by patch -p1. Each hunk records the original and modified lines with ---/+++ headers so the patch can be applied to or reversed from any checkout of the repository.
The patch file is stored in
enhancements/ alongside the existing patches.
This keeps all optional features in a single, predictable location and makes
it easy to share the file with other developers.