You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the future, we'll want to support detecting various problems with
pointers. These fall into two types: pointers which are non-canonical
and files which should be pointers but are not.
Our existing scanning functions are not well suited to this,
unfortunately, so we add some additional functions. We first scan all
of the commits in the range we want and then, having found their object
IDs, call git ls-tree to enumerate each item in its corresponding root
tree. We accumulate the patterns in every found .gitattributes file,
and we keep track of every other file we process, checking small files
for being a pointer.
Once we've processed the entire tree, we compute the set of patterns for
the .gitattributes file and check each file against it. If the file is
a pointer, we emit the pointer to our callback, and if it is not a
pointer but matches the patterns, then we emit an error indicating that
it should have been a pointer.
0 commit comments