libgit2 / libgit2/libgit2sharp

should ignore BOM in .gitignore

Offen
#1,903 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
C#
Sterne
3.5k
Forks
925
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
  1. 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.
  2. confirm command-line native git still ignores the .vs directory.
  3. Write a quick program that uses libgit2sharp to look at the above repo and get the status.
  4. 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduzieren Sie den Bericht mit LibGit2Sharp 0.26.2 unter Windows 10 und verwenden Sie eine .gitignore, deren erste Zeile mit einer BOM beginnt und .vs nennt. Vergleichen Sie den Status mit nativem Git. Erledigt ist die Aufgabe, wenn LibGit2Sharp einen sauberen Status meldet und .vs als ignoriert statt als nicht versioniert markiert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp, git
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.