-
Notifications
You must be signed in to change notification settings - Fork 611
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
Fix squash message warning. #3830
Conversation
r? @jtgeibel (rust-highfive has picked a reviewer for you, use r? to override) |
src/git.rs
Outdated
|
||
\n\ | ||
Previous HEAD was {}, now on the `snapshot-{}` branch\n\n\ | ||
|
||
\n\ | ||
More information about this change can be found [online] and on [this issue].\n\n\ | ||
|
||
\n\ |
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.
We could just remove these lines instead of inserting \n
, couldn't we? This adds one more blank line so the total number will be 2. I think 1 is fine here.
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.
Oh, oops! I didn't notice there were already two newlines. I have pushed an update that just removes the blank lines. It's maybe not as clear how it is formatted, though I'm not sure it really matters.
cfaedbe
to
8fb8972
Compare
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.
We might want to format like
"line1\n\
\n\
line2\n\
..."
instead, but I don't feel like it's a big deal.
@jtgeibel I'm going to r+ but feel free to tweak it like above if you'd like.
@bors r+ |
📌 Commit 8fb8972 has been approved by |
☀️ Test successful - checks-actions |
rust-lang/rust#87671 added a warning when backslash continuations eat multiple lines. This uncovered that the message for squashing the index was missing some blank lines. This adds some newlines to silence the warning and fix the message formatting.