Wrong diff highlighting for "no newline at end of file"
- Lenguaje dominante
- Rust
- Estrellas
- 22.5k
- Forks
- 774
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
When a file without newline at the end is "fixed" by adding a newline, the diff view shows the message "\ No newline at end of file" in green:

This is a bit misleading, it suggests that the change was to remove the newline rather than add it.
For comparison here's how it looks with the default `git diff`:

(tested on gitui 0.26.1)
Guía de contribución
Línea de trabajo
Reproduce el comportamiento informado de la vista de diff para un archivo al que se añade el salto de línea final que faltaba, usando como referencia las capturas de pantalla del issue y gitui 0.26.1. Rastrea el comportamiento del resaltado del diff y verifica que el mensaje de ausencia de salto de línea tenga un color coherente con la salida predeterminada correspondiente de git diff.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, rust
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100