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

Add section describing git hook functionality #848

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Add section describing git hook functionality #848

merged 1 commit into from
Oct 8, 2020

Conversation

caass
Copy link
Contributor

@caass caass commented Sep 5, 2020

This is a companion to this PR, which deals with including functionality for automatically running tidy --bless on each commit.

@jyn514 jyn514 self-assigned this Sep 5, 2020
@jyn514 jyn514 added the S-blocked Status: this PR is blocked waiting for something label Sep 8, 2020
src/building/suggested.md Outdated Show resolved Hide resolved
src/building/suggested.md Outdated Show resolved Hide resolved
src/building/suggested.md Outdated Show resolved Hide resolved
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 6, 2020
Add a command to install a git hook to automatically run `x.py test tidy --bless`

Some folks (such as myself) would probably find a lot of convenience in a pre-commit hook that automatically runs tidy before committing, to avoid burning CI time learning that your commit wasn't tidy.

I'm absolutely positive I have missed some stuff. I basically just got this to where you can run `./x.py run install-git-hook` and then clicked the commit button. Please let me know what else you'd like me to add before this can be merged!

[rustc-dev-guide companion PR](rust-lang/rustc-dev-guide#848)
@camelid
Copy link
Member

camelid commented Oct 7, 2020

I believe this is no longer blocked, so I'm removing the label.

@rustbot modify labels: -blocked

@rustbot rustbot removed the S-blocked Status: this PR is blocked waiting for something label Oct 7, 2020
src/building/suggested.md Outdated Show resolved Hide resolved
@camelid
Copy link
Member

camelid commented Oct 8, 2020

@jyn514 Nit is fixed!

@caass Could you squash your commits?

Copy link
Member

@camelid camelid left a comment

Choose a reason for hiding this comment

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

Oops, I have a few more nits. But they're not a big deal if you just want to get this merged :)

src/building/suggested.md Outdated Show resolved Hide resolved
src/building/suggested.md Outdated Show resolved Hide resolved
src/building/suggested.md Outdated Show resolved Hide resolved
@caass
Copy link
Contributor Author

caass commented Oct 8, 2020

@camelid no by all means! i'll fix them and pending anything else squash :)

This is a companion to [this PR](rust-lang/rust#76356), which deals with including functionality for automatically running `tidy --bless` on each commit.

Undo editor auto-formatting and clarify git hook renaming

a word

Phrasing

Apply suggestions from code review

Co-authored-by: Camelid <37223377+camelid@users.noreply.github.com>
@jyn514 jyn514 merged commit b8cc0a5 into rust-lang:master Oct 8, 2020
spikespaz pushed a commit to spikespaz/dotwalk-rs that referenced this pull request Aug 29, 2024
Add a command to install a git hook to automatically run `x.py test tidy --bless`

Some folks (such as myself) would probably find a lot of convenience in a pre-commit hook that automatically runs tidy before committing, to avoid burning CI time learning that your commit wasn't tidy.

I'm absolutely positive I have missed some stuff. I basically just got this to where you can run `./x.py run install-git-hook` and then clicked the commit button. Please let me know what else you'd like me to add before this can be merged!

[rustc-dev-guide companion PR](rust-lang/rustc-dev-guide#848)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants