gitui-org / gitui-org/gitui

gitui does not offer to add files due to conflicting .gitignore files

Open
#1,779 2 comments 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.