Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions noir-projects/precommit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ if [[ -n "$staged_nr_files" ]]; then
done

echo "Formatting completed."

# Re-stage formatted .nr files
echo "Re-staging formatted .nr files..."
repo_root=$(git rev-parse --show-toplevel)
echo "$staged_nr_files" | xargs -I {} git add "$repo_root/{}"
fi

# We just don't say anything if there are no staged nr files, because no one cares.
Loading