From: voxspox <voxspox@gmx.net>
To: git@vger.kernel.org
Subject: gitignore does not ignore wildcard directory if it is a link
Date: Fri, 21 Aug 2020 15:37:15 +0200 [thread overview]
Message-ID: <0179b688-576b-7423-8824-9b57fe8f92fc@gmx.net> (raw)
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
next reply other threads:[~2020-08-21 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 13:37 voxspox [this message]
2020-08-21 16:46 ` gitignore does not ignore wildcard directory if it is a link Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0179b688-576b-7423-8824-9b57fe8f92fc@gmx.net \
--to=voxspox@gmx.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).