git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitignore does not ignore wildcard directory if it is a link
@ 2020-08-21 13:37 voxspox
  2020-08-21 16:46 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: voxspox @ 2020-08-21 13:37 UTC (permalink / raw)
  To: git


Hi,

I start with a scenario:

contents of working copy:

/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/*/


> 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
using: 2.25.1 on Linux


regards Knut




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-21 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-21 13:37 gitignore does not ignore wildcard directory if it is a link voxspox
2020-08-21 16:46 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).