Skip to content
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

Some usability improvements to formatting script #6153

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

aleino-nv
Copy link
Collaborator

@aleino-nv aleino-nv commented Jan 22, 2025

  • Don't require binaries that wouldn't be used in certain cases
  • Add option to only format files since a given revision (speeds up local use a lot)
    • Example: extras/formatting.sh --cpp --no-version-check --since master

@aleino-nv aleino-nv requested a review from a team as a code owner January 22, 2025 11:20
@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

🌈 Formatted, please merge the changes from this PR

aleino-nv added a commit to aleino-nv/slang that referenced this pull request Jan 22, 2025
@aleino-nv aleino-nv added the pr: non-breaking PRs without breaking changes label Jan 22, 2025
@aleino-nv aleino-nv enabled auto-merge (squash) January 22, 2025 12:07
@@ -4,6 +4,7 @@ set -e

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
source_dir="$(dirname "$script_dir")"
since_rev=
Copy link
Collaborator

@csyonghe csyonghe Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=0 or ="", don't leave it empty.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@aleino-nv aleino-nv force-pushed the aleino/formatting-fixes branch from ee53f7d to 84e9fe3 Compare January 23, 2025 06:27
@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

🌈 Formatted, please merge the changes from this PR

@aleino-nv aleino-nv requested a review from csyonghe January 23, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants