From: Sebastian Schuberth <sschuberth@gmail.com>
To: git@vger.kernel.org
Subject: Issues with gitattributes pattern matching
Date: Wed, 12 Dec 2018 09:23:50 +0100 [thread overview]
Message-ID: <puqgen$t0m$1@blaine.gmane.org> (raw)
Hi,
after reading though [1] and [2] again, I believe a pattern in
.gitattributes like
*/src/*/assets/**/*-expected-* text eol=lf
should match a committed file at
reporter/src/funTest/assets/NPM-is-windows-1.0.2-expected-NOTICE
In other words, "**" should be able to match "nothing", but it doesn't
seem to do in my case.
To cross-check, assuming that ls-files supports the same patterns, running
git ls-files "*/src/*/assets/**/*-expected-*"
indeed does not list the committed file at
reporter/src/funTest/assets/NPM-is-windows-1.0.2-expected-NOTICE
for me. Tested with Git 2.20 on Windows and Git 2.19.2 on Linux. Is it a
documentation error or a bug in Git?
[1] https://git-scm.com/docs/gitattributes
[2] https://git-scm.com/docs/gitignore#_pattern_format
--
Sebastian Schuberth
reply other threads:[~2018-12-12 8:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='puqgen$t0m$1@blaine.gmane.org' \
--to=sschuberth@gmail.com \
--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).