git ls-files - 根据 .git 属性查询文件的未记录语法 - git ls-files ':(attr:filter=lfs)'
git ls-files - undocumented syntax that queries files based on their .gitattributes - git ls-files ':(attr:filter=lfs)'
使用 git ls-files 语法根据文件的 .git 属性查询文件(在 filter=lfs 的特定情况下)
git ls-files ':(attr:filter=lfs)'
问题是虽然它实际上可以正常工作,但文档中没有解释 - https://git-scm.com/docs/git-ls-files
那么,这是我在文档中遗漏的东西,还是一些未记录的功能?
记录在 gitglossary:
After attr:
comes a space separated list of "attribute requirements", all of which must be met in order for the path to be considered a match; this is in addition to the usual non-magic pathspec pattern matching.
实际上, 已将其记录在案,但不在您期望的位置,甚至可能看不到。记录的地方在 the gitglossary, under the definition for pathspec:
A pathspec that begins with a colon :
has special meaning ...
After attr:
comes a space separated list of "attribute requirements", all of which must be met in order for the path to be considered a match; ...
git ls-files ':(attr:filter=lfs)'
问题是虽然它实际上可以正常工作,但文档中没有解释 - https://git-scm.com/docs/git-ls-files
那么,这是我在文档中遗漏的东西,还是一些未记录的功能?
记录在 gitglossary:
After
attr:
comes a space separated list of "attribute requirements", all of which must be met in order for the path to be considered a match; this is in addition to the usual non-magic pathspec pattern matching.
实际上, 已将其记录在案,但不在您期望的位置,甚至可能看不到。记录的地方在 the gitglossary, under the definition for pathspec:
A pathspec that begins with a colon
:
has special meaning ...After
attr:
comes a space separated list of "attribute requirements", all of which must be met in order for the path to be considered a match; ...