libgit2 / libgit2/libgit2sharp
should ignore BOM in .gitignore
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện báo cáo với LibGit2Sharp 0.26.2 trên Windows 10 bằng cách sử dụng một .gitignore có dòng đầu tiên bắt đầu bằng BOM và nêu tên .vs. So sánh trạng thái của nó với Git gốc. Hoàn tất khi LibGit2Sharp báo cáo trạng thái sạch và đánh dấu .vs là bị bỏ qua thay vì chưa được theo dõi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, git
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100