mirror of
https://github.com/libretro/docs.git
synced 2024-11-27 18:50:37 +00:00
8a8f9b31d2
In #526 I accidentally lost some of my edits trying to selectively stage lines with typo fixes, while deleting hunks that were only whitespace changes. In hopes nobody else falls into this trap, I ran the following command to find all the files to edit, and apply emacs's delete-trailing-whitespace function to each file. ```sh find * -type f -print0 | xargs -0 -P$(nproc) -n1 -I{} sh -c 'if file -b "{}" | grep -qFi text; then emacs -batch "{}" -f delete-trailing-whitespace -f save-buffer; fi' ``` Note: `git add -u` will add only known paths to the stage (index), even if `tidy.sh` exists in the git work directory. |
||
---|---|---|
.. | ||
libretro-gl.pdf | ||
libretro-gl.tex | ||
libretro-shader.lyx | ||
libretro-shader.pdf | ||
libretro.lyx | ||
libretro.pdf | ||
mario-water1.jpg | ||
mario-water2.jpg | ||
overlay.pdf | ||
overlay.tex | ||
ratecontrol-data.pdf | ||
ratecontrol.pdf | ||
ratecontrol.tex | ||
retroarch-blackberry-playbook-0.9.9.pdf | ||
retroarch-cores-manual.lyx | ||
retroarch-cores-manual.pdf | ||
retroarch-enduserguide.lyx | ||
retroarch-enduserguide.pdf | ||
retroarch-ios-0.9.9.pdf | ||
RetroArch-Libretro-Technical-Brochure.pdf | ||
retroarch-manual.lyx | ||
retroarch-manual.pdf | ||
shader-rarch-2.jpg | ||
supermetroid.jpg |