Thread (1 message) 1 message, 1 author, 2020-08-21

Re: gitignore does not ignore wildcard directory if it is a link

From: Junio C Hamano <hidden>
Date: 2020-08-21 16:47:19

voxspox [off-list ref] writes:
/somefile1
/test/dir1  (directory)
/test/dir2  (link to directory)
/test/dir3  (link to directory)
/test/file1

I want to ignore all subfolders in "test", thus I modified my .gitignore to:

/test/*/

quoted
git status
Untracked files:
  test/dir2
  test/dir3


Putting "/test/dir3" into .gitignore will work fine.


-> It seems that directories are not ignored by a wildcard pattern if
the directory is a link
This is working as designed, intended and expected, I would think.
Git does track symbolic links as the first-class citizen, and dir2
and dir3 in the above example are *not* directories.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help