libgit2 / libgit2/libgit2sharp

should ignore BOM in .gitignore

Aperta
#1,903 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
C#
Stelle
3.5k
Fork
925
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riprodurre il report con LibGit2Sharp 0.26.2 su Windows 10 usando un .gitignore la cui prima riga inizia con una BOM e nomina .vs. Confrontare il suo stato con Git nativo. Il lavoro è completato quando LibGit2Sharp segnala uno stato pulito e contrassegna .vs come ignorato anziché non tracciato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, git
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.