lethal-guitar / RigelEngine

A modern re-implementation of the classic DOS game Duke Nukem II
GNU General Public License v2.0
920 stars 60 forks source link

Add a `format-staged.sh` script #815

Closed lethal-guitar closed 2 years ago

lethal-guitar commented 2 years ago

Currently, we have tools/format-all.sh to run clang-format on the code. Formatting all of the code can take a bit of time though. It would be handy to additionally have a 2nd script which runs clang-format only on files that are currently staged in git.

mohitsaxenaknoldus commented 2 years ago

Please assign it to me, I'll do it.

lethal-guitar commented 2 years ago

@mohitsaxenaknoldus thanks, it's all yours

mohitsaxenaknoldus commented 2 years ago

Thanks! @lethal-guitar PR: https://github.com/lethal-guitar/RigelEngine/pull/824