should ignore BOM in .gitignore
You are opening a bug report against the LibGit2Sharp project: we use GitHub Issues for tracking bug reports and feature requests. If you have a question about an API or usage, please ask on StackOverflow: http://stackoverflow.com/questions/tagged/libgit2sharp.
Otherwise, to report a bug, please fill out the reproduction steps (below) and delete these introductory paragraphs. Thanks!
Reproduction steps
- Try this with an existing repo. Put a BOM at the header of a .gitignore file, and a directory to ignore such as .vs/ on the same (top, first) line of the .gitignore file.
- confirm command-line native git still ignores the .vs directory.
- Write a quick program that uses libgit2sharp to look at the above repo and get the status.
- Get the status and note the status is marked dirty, and the .vs dir is listed as untracked, not ignored.
Expected behavior
The status reported by libgit2sharp should report status is clean. It should ignore the .vs dir.
Actual behavior
The .vs dir is listed as untracked, not ignored.
The status is dirty.
Version of LibGit2Sharp (release number or SHA1)
0.26.2
Operating system(s) tested; .NET runtime tested
Windows 10
What does git do here? If it's ignoring BOMs that's new behavior and we need to remain compatible.
ethomson, git seemed to happily ignore.
Oops just read your point #2. Would you mind opening this on https://github.com/libgit2/libgit2 instead?
sure. I'll give it a shot.
posted https://github.com/libgit2/libgit2/issues/5984
fun one, as most editors seem to make BOM's invisible. :D
This appears to be fixed in 0.27.0 .
LibGit2Sharp.0.26.2 -> LibGit2Sharp.0.27.0
LibGit2Sharp.NativeBinaries.2.0.306 -> LibGit2Sharp.NativeBinaries.2.0.319
Thank you all for your hard work on this library.