sapling/eden/fs/model
Xavier Deguillard 3307c3ac79 inodes: no longer follow symlinks for gitignore
Summary:
Starting with Git 2.32
(https://github.com/git/git/blob/master/Documentation/RelNotes/2.32.0.txt#L7),
gitignore symlinks are no longer followed, and auditing the entire codebase
shows that this feature is not used (or easily replaced).

Removing support for symlinked gitignore makes us closer in behavior to Git,
but also allows the code to be simplified a bit. When diffing trees, inodes
were being loaded in order to read the gitignore files, which had a few
drawbacks:
 - Loading inodes causes slower updates on Windows and macOS,
 - The behavior was likely incorrect as the content of the gitignore read came
   from the working copy state, not from the trees diffed.
Since handling of symlinks was the major benefit of loading inodes and this
behavior is no longer needed, the store code can simply load the correct
gitignore from the ObjectStore, eliminating the drawbacks listed above.

Reviewed By: chadaustin

Differential Revision: D37355747

fbshipit-source-id: 569478a958ff01cf9fbef01508008d8b29e0c056
2022-07-13 19:30:34 -07:00
..
git inodes: no longer follow symlinks for gitignore 2022-07-13 19:30:34 -07:00
test model: use PathMap in Tree 2022-05-19 18:57:33 -07:00
Blob.h fix some laziness in the include structure 2022-03-03 12:11:31 -08:00
BlobMetadata.h fs: fix license header 2022-01-04 15:00:07 -08:00
CMakeLists.txt fs: fix license header 2022-01-04 15:00:07 -08:00
Hash.cpp fs: fix license header 2022-01-04 15:00:07 -08:00
Hash.h fix some laziness in the include structure 2022-03-03 12:11:31 -08:00
ObjectId.cpp migrate to throw_ and throwf 2022-07-08 13:30:53 -07:00
ObjectId.h use BackingStore to translate object IDs to human readable representations 2022-03-03 17:17:25 -08:00
RootId.cpp fs: fix license header 2022-01-04 15:00:07 -08:00
RootId.h use BackingStore to translate object IDs to human readable representations 2022-03-03 17:17:25 -08:00
Tree.cpp model: use PathMap in Tree 2022-05-19 18:57:33 -07:00
Tree.h model: use PathMap in Tree 2022-05-19 18:57:33 -07:00
TreeEntry.cpp fix error reporting 2022-07-11 14:03:34 -07:00
TreeEntry.h fix error reporting 2022-07-11 14:03:34 -07:00