Skip to content

Conversation

sepruko
Copy link

@sepruko sepruko commented Sep 2, 2025

fixes #3196

@alex-courtis
Copy link
Member

It looks like that function is unused. It was added for gitignore support eadead6 which has been rewritten several times over the years. We use git itself to track ignored now, rather than reading the .gitignore file.

Have you got a use case that uses this function? Maybe a recipe or extension plugin?

I reckon we should just delete this function.

@sepruko
Copy link
Author

sepruko commented Sep 4, 2025

It looks like that function is unused.

I'm not overly familiar with the codebase, I was just perusing GitHub for the status quo on reading from a file and noticed this bug. I could've sworn I did a ripgrep on the codebase first and found several references, but maybe I was out of it and mindlessly searched for a different pattern.

Have you got a use case that uses this function? Maybe a recipe or extension plugin?

No, and anything of the sort I feel can just roll their own similarly written function.

I reckon we should just delete this function.

Probably, the entire file it's in seems to be using the deprecated vim.loop which will need to be thought about (with regards to minimum-supported Neovim version), too.

@sepruko sepruko closed this Sep 4, 2025
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.

utils.read_file may hold onto fd
2 participants