-
Notifications
You must be signed in to change notification settings - Fork 599
chore: cleanup the new IVC integration #17931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c234d26
cleanup
kashbrti 62b8952
more cleanup
kashbrti c733747
more cleanup
kashbrti 22c246b
die protogalaxy die
kashbrti 98bb120
change pg to hn in noir code
kashbrti 3050619
more cleanup
kashbrti 25059cb
fix formatting
ludamad 8293520
update
ludamad d382f44
.
ludamad 413db6e
change pg to hn in noir code
kashbrti 3511105
more cleanup
kashbrti eade7e7
-
ludamad e45dfb1
die protogalaxy die
kashbrti 89eb127
merge
ludamad 2419eb9
.
kashbrti 5696833
more cleanup
kashbrti 766cadb
fixes
ludamad 0d9a841
format
ludamad 2ac5b15
update
ludamad ffa1cdc
-
ludamad 63a1204
update
ludamad 5f9b1ee
review
ludamad d28a1e8
review
ludamad d549c7b
.
ludamad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,28 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
| function format_files { | ||
| if [ -n "$1" ]; then | ||
| echo "$1" | parallel -j+0 'clang-format-20 -i {} && sed -i.bak "s/\r$//" {} && rm {}.bak' | ||
| fi | ||
| } | ||
|
|
||
| if [ "$1" == "staged" ]; then | ||
| echo Formatting barretenberg staged files... | ||
| for FILE in $(git diff-index --diff-filter=d --relative --cached --name-only HEAD | grep -e '\.\(cpp\|hpp\|tcc\)$'); do | ||
| clang-format-20 -i $FILE | ||
| sed -i.bak 's/\r$//' $FILE && rm ${FILE}.bak | ||
| git add $FILE | ||
| done | ||
| files=$(git diff-index --diff-filter=d --relative --cached --name-only HEAD | grep -e '\.\(cpp\|hpp\|tcc\)$') | ||
| format_files "$files" | ||
| if [ -n "$files" ]; then | ||
| git add "$files" | ||
| fi | ||
| elif [ "$1" == "changed" ]; then | ||
| echo Formatting barretenberg changed files... | ||
| for FILE in $(git diff-index --diff-filter=d --relative --name-only HEAD | grep -e '\.\(cpp\|hpp\|tcc\)$'); do | ||
| clang-format-20 -i $FILE | ||
| sed -i.bak 's/\r$//' $FILE && rm ${FILE}.bak | ||
| done | ||
| files=$(git diff-index --diff-filter=d --relative --name-only HEAD | grep -e '\.\(cpp\|hpp\|tcc\)$') | ||
| format_files "$files" | ||
| elif [ "$1" == "check" ]; then | ||
| find ./src -iname *.hpp -o -iname *.cpp -o -iname *.tcc | grep -v src/msgpack-c | grep -v bb/deps | \ | ||
| parallel -N10 clang-format-20 --dry-run --Werror | ||
| files=$(find ./src -iname *.hpp -o -iname *.cpp -o -iname *.tcc | grep -v bb/deps) | ||
| echo "$files" | parallel -N10 clang-format-20 --dry-run --Werror | ||
| elif [ -n "$1" ]; then | ||
| for FILE in $(git diff-index --relative --name-only $1 | grep -e '\.\(cpp\|hpp\|tcc\)$'); do | ||
| clang-format-20 -i $FILE | ||
| sed -i.bak 's/\r$//' $FILE && rm ${FILE}.bak | ||
| done | ||
| files=$(git diff-index --relative --name-only $1 | grep -e '\.\(cpp\|hpp\|tcc\)$') | ||
| format_files "$files" | ||
| else | ||
| for FILE in $(find ./src -iname *.hpp -o -iname *.cpp -o -iname *.tcc | grep -v src/msgpack-c); do | ||
| clang-format-20 -i $FILE | ||
| sed -i.bak 's/\r$//' $FILE && rm ${FILE}.bak | ||
| done | ||
| files=$(find ./src -iname *.hpp -o -iname *.cpp -o -iname *.tcc) | ||
| format_files "$files" | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added by me tired of waiting to format files