Skip to content

Make sure AddToGitignore keeps the newline at the end of the file#6847

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-fix-gitignore-trailing-newline
Feb 27, 2026
Merged

Make sure AddToGitignore keeps the newline at the end of the file#6847
greg-at-moderne merged 1 commit intomainfrom
greg-fix-gitignore-trailing-newline

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Feb 27, 2026

What's changed?

A cosmetic bug fix to org.openrewrite.AddToGitignore.
Now it no longer removes newline characters at the end of the file.

What's your motivation?

I just noticed someone ran the recipe and it garbled the file endings.

@greg-at-moderne greg-at-moderne force-pushed the greg-fix-gitignore-trailing-newline branch from 6fa4374 to 12f4f07 Compare February 27, 2026 19:18
@greg-at-moderne greg-at-moderne marked this pull request as ready for review February 27, 2026 19:19
@greg-at-moderne greg-at-moderne merged commit d6c7f67 into main Feb 27, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 27, 2026
@greg-at-moderne greg-at-moderne deleted the greg-fix-gitignore-trailing-newline branch February 27, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant