Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

BF: ensure first --message is not part of the subject#794

Merged
TobiasKadelka merged 1 commit intomainfrom
bf-commit-message
Apr 28, 2025
Merged

BF: ensure first --message is not part of the subject#794
TobiasKadelka merged 1 commit intomainfrom
bf-commit-message

Conversation

@aqw
Copy link
Copy Markdown
Collaborator

@aqw aqw commented Apr 28, 2025

Running (for example) onyo new --message haha would not put a blank line between the auto-generated subject and the user-provided message. Thus the first message was part of the subject, which is not desired.

Git strips trailing newlines, so there's need to detect if there's a follow-up message or not.

@aqw aqw force-pushed the bf-commit-message branch from 6aef522 to 43c70eb Compare April 28, 2025 08:45
@aqw aqw marked this pull request as draft April 28, 2025 08:48
Git strips trailing newlines, so there's need to detect if there's a
follow-up message or not.
@aqw aqw force-pushed the bf-commit-message branch from 43c70eb to 3d417b8 Compare April 28, 2025 08:52
@aqw aqw marked this pull request as ready for review April 28, 2025 08:53
@TobiasKadelka
Copy link
Copy Markdown
Collaborator

A small change, looks all good to me!

Thanks for working on this so quickly!

@TobiasKadelka TobiasKadelka merged commit 648cd9b into main Apr 28, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants