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

Dots in rename #2038

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Dots in rename #2038

merged 4 commits into from
Aug 15, 2024

Conversation

jonthegeek
Copy link
Contributor

Check for uncommitted changes before renaming files, and only remove .R file extensions in old and new.

Fixes #1969.

I think this is the least-surprising approach to take. It's probably best to just not use . in filenames, but this will stop things from breaking in confusing ways when people do.

jonthegeek and others added 4 commits August 15, 2024 10:12
Fixes r-lib#1969.

After digging into this a little, I think making sure everything is committed is enough. use_r() won't create a file with a `.` in it, so, unless you want to let this snowball, I think the check is enough.
@jonthegeek
Copy link
Contributor Author

Oops, I forgot I copy/pasted that!

@jennybc
Copy link
Member

jennybc commented Aug 15, 2024

Thanks!

@jennybc jennybc merged commit fa847b5 into r-lib:main Aug 15, 2024
12 checks passed
@jonthegeek jonthegeek deleted the dots-in-rename branch August 15, 2024 18:21
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.

rename_files breaks with . in old or new
2 participants