Closed MartinFillon closed 8 months ago
From my testing it appears eza regards symbolic links as ignored if and only if they link to paths that match .gitignore.
Git on the other hand regards symbolic links as ignored if and only if they themselves match .gitignore.
This is on Linux Mint 21.2 (based on Ubuntu).
$ cat ../.gitignore
*.foo
bar.*
foo.baz
baz.bar
zzz.zzz
$ eza -l --git
.rw-rw-r-- 0 rsholmes 13 Sep 09:33 -I bar.x
lrwxrwxrwx 0 rsholmes 13 Sep 09:35 N- bar.y -> x.x
lrwxrwxrwx 0 rsholmes 13 Sep 09:34 -I bar.z -> bar.x
lrwxrwxrwx 0 rsholmes 13 Sep 09:34 -I baz.bar -> foo.baz
.rw-rw-r-- 0 rsholmes 13 Sep 09:33 -I foo.baz
.rw-rw-r-- 0 rsholmes 13 Sep 09:33 -I x.foo
.rw-rw-r-- 0 rsholmes 13 Sep 09:35 N- x.x
lrwxrwxrwx 0 rsholmes 13 Sep 09:36 N- y.foo -> x.x
lrwxrwxrwx 0 rsholmes 13 Sep 09:46 -I y.y -> foo.baz
lrwxrwxrwx 0 rsholmes 13 Sep 09:33 -I z.foo -> x.foo
lrwxrwxrwx 0 rsholmes 13 Sep 09:38 N- zzz.zzz -> x.x
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: x.x
new file: y.y
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ../.gitignore
This issue is stale because it has been open for 30 days with no activity.
eza version: v0.11.1 [+git] command:
eza -lah --git --git-ignore
.gitignore file affected content:Output without --git-ignore:
Output with --git-ignore:
ArchLinux Output:
This looks like a ubuntu specific error as I also uses eza on arch and it works, never previously worked on exa ubuntu.