{"thread":{"id":"50015","subject":"Issues with gitattributes pattern matching","startedAt":"2018-12-12T08:24:05Z","lastAt":"2018-12-12T08:24:05Z","messageCount":1,"participants":["Sebastian Schuberth"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"365161","messageId":"puqgen$t0m$1@blaine.gmane.org","threadId":"50015","inReplyTo":null,"subject":"Issues with gitattributes pattern matching","fromName":"Sebastian Schuberth","fromEmail":"sschuberth@gmail.com","sentAt":"2018-12-12T08:23:50Z","receivedAt":"2018-12-12T08:24:05Z","isPatch":false,"sender":{"key":"sschuberth@gmail.com","avatar":"https://avatars.githubusercontent.com/u/349154?v=4"},"body":"Hi,\n\nafter reading though [1] and [2] again, I believe a pattern in \n.gitattributes like\n\n     */src/*/assets/**/*-expected-* text eol=lf\n\nshould match a committed file at\n\n     reporter/src/funTest/assets/NPM-is-windows-1.0.2-expected-NOTICE\n\nIn other words, \"**\" should be able to match \"nothing\", but it doesn't \nseem to do in my case.\n\nTo cross-check, assuming that ls-files supports the same patterns, running\n\n     git ls-files \"*/src/*/assets/**/*-expected-*\"\n\nindeed does not list the committed file at\n\n     reporter/src/funTest/assets/NPM-is-windows-1.0.2-expected-NOTICE\n\nfor me. Tested with Git 2.20 on Windows and Git 2.19.2 on Linux. Is it a \ndocumentation error or a bug in Git?\n\n[1] https://git-scm.com/docs/gitattributes\n[2] https://git-scm.com/docs/gitignore#_pattern_format\n\n-- \nSebastian Schuberth\n\n"}]}