Рет қаралды 6,244
Understanding diff files and how to use them along with the patch command to patch files. Patching Suckless dwm is used as an example at the end.
Notes:
[out] represents the less than sign.
What is a patch? What is a diff? What is a git diff?
Generating a diff file, generating a diff with git
Patching:
patch -p1 [out] patch.diff
-p refers to the directory level that the file to patch is on