gitui does not offer to add files due to conflicting .gitignore files
- Dominant language
- Rust
- Stars
- 22.5k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
Assessment
This issue has not been assessed yet.