LZ4: vendoring in the kernel
LZ4: vendoring in the kernel
Posted Feb 2, 2017 16:43 UTC (Thu) by mathstuf (subscriber, #69389)In reply to: LZ4: vendoring in the kernel by daurnimator
Parent article: LZ4: vendoring in the kernel
To import, we take a subset of that repo (we usually do not care about docs and the like), put it in a tree, make a commit with its parent pointing to the previous commit (initial imports use a new root commit), and then merge into place using -Xsubtree. This allows us to keep the history as one would expect as well as not inflating our repo size with the full history of the import. Git checks ensure that the imported directory is only changed via this mechanism (and also protects against "evil merges").
