Incorrect treatment of symlink
- Dominant language
- Rust
- Stars
- 22.5k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I have `.venv` symlink in the repo, pointing to the `.venv` dir outside repo directory. `.venv` is also present in `.gitignore`.
**To Reproduce**
Steps to reproduce the behavior:
1. Create `.venv` symlink in the repository, pointing somewhere outside
2. add `.venv` to `.gitignore`
3. Look into _Unstaged changes_ view, it shows `.venv` as added
4. Select `.venv` in _Unstaged changes_ view, _Diff view_ shows:
```
┌@@ -0,0 +1 @@
│/home/dmig/Workspace/backend/.venv
└\ No newline at end of file
```
**Expected behavior**
No changes in status view, same is `git status` shows.
**Screenshots**
**Context (please complete the following information):**
- OS/Distro + Version: Arch inside WSL
- GitUI Version: gitui nightly 2025-02-28 (99f6967)
- Rust version: n/a
Contributor guide
Assessment
This issue has not been assessed yet.