Skip to content

Commit

Permalink
Add script for removing all comments
Browse files Browse the repository at this point in the history
During review of changes during API updates, temporarily removing all
comments simplifies diffing the functional changes.
  • Loading branch information
HenningHolmDE committed Nov 9, 2024
1 parent 33a2791 commit 7af450e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/remove_all_comments.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# Remove all comments in Rust files for diffing non-doc changes
find src -name '*.rs' -exec sed -Ei".bak" "/^[ ]*\/\/\//d" {} \;

rm -rf src/*.bak
rm -rf src/apis/*.bak
rm -rf src/models/*.bak

0 comments on commit 7af450e

Please sign in to comment.