gitui does not offer to add files due to conflicting .gitignore files
- Lingua principale
- Rust
- Stelle
- 22.5k
- Fork
- 773
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**Describe the bug**
gitui does not offer to add files due to conflicting .gitignore files.
**To Reproduce**
Steps to reproduce the behavior:
1. Go into an empty folder
2. Follow these commands:
```bash
git init
mkdir -p directory/ignored
touch directory/ignored/file
echo "**/ignored" > .gitignore
echo "!ignored" > directory/.gitignore
```
**Expected behavior**
gitui should offer me to add the file with the path "directory/ignored/file" like git status shows me the directory with the files.
**Context (please complete the following information):**
- OS/Distro + Version: Ubuntu Mate 22.04.2 LTS
- GitUI Version: 0.22.1
- Rust version: 1.69
**Additional context**
Also I found this issue while working on a monorepo. When creating the test repo with the above reproduction steps above I actually couldn't reproduce the problem, because I also encountered another error, when starting gitui:
```bash
$ gitui
Error: receiving on an empty and disconnected channel
```
Would be nice if someone could try it out first. It should create the same problems like my monorepo, but confirmation would be helpful.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo i comandi elencati git init, directory, .gitignore e git status, quindi avvia gitui per confermare se la riproduzione si verifica. Analizza il comportamento di aggiunta dei file relativo ai file di ignore in conflitto; il lavoro è terminato quando gitui offre directory/ignored/file per l’aggiunta, come fa git status, mentre l’errore di avvio segnalato deve essere verificato separatamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, rust
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100