diff --git a/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_3_6b75bd75623004f05f609a39e95250ab._comment b/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_3_6b75bd75623004f05f609a39e95250ab._comment new file mode 100644 index 0000000000..fc523c098c --- /dev/null +++ b/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_3_6b75bd75623004f05f609a39e95250ab._comment @@ -0,0 +1,33 @@ +[[!comment format=mdwn + username="nguenthe@0f416ab0ba07a395eb8a0c85732e0105e4970e10" + nickname="nguenthe" + avatar="http://cdn.libravatar.org/avatar/0e245fd49594e98b19d4c57efcb134ad" + subject="comment 3" + date="2021-02-09T17:06:24Z" + content=""" +I just figured this out today! + +In v8 repos, every annexed file gets replaced by a text string like this: + +``` ++/annex/objects/SHA256E-s320029--488e29f5584ba4e474db95aa42fbb58ddb92f2a59bc0b24a91171acb4d8f4828.png +``` + +(( + +you can see them with `git log -p` or + +``` +$ git show HEAD:vlcsnap-2019-03-22-03h42m47s659.png +/annex/objects/SHA256E-s320029--488e29f5584ba4e474db95aa42fbb58ddb92f2a59bc0b24a91171acb4d8f4828.png +``` + +)) + +So to get the reverse pointer, you can use `git grep`: + +``` +$ git grep SHA256E-s320029--488e29f5584ba4e474db95aa42fbb58ddb92f2a59bc0b24a91171acb4d8f4828.png HEAD +HEAD:vlcsnap-2019-03-22-03h42m47s659.png:/annex/objects/SHA256E-s320029--488e29f5584ba4e474db95aa42fbb58ddb92f2a59bc0b24a91171acb4d8f4828.png +``` +"""]] diff --git a/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_4_e54268d93837b3b8e216ec6af074f3c6._comment b/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_4_e54268d93837b3b8e216ec6af074f3c6._comment new file mode 100644 index 0000000000..6c3db9d361 --- /dev/null +++ b/doc/forum/Reverse_index_key_to_list_of_file_paths/comment_4_e54268d93837b3b8e216ec6af074f3c6._comment @@ -0,0 +1,9 @@ +[[!comment format=mdwn + username="nguenthe@0f416ab0ba07a395eb8a0c85732e0105e4970e10" + nickname="nguenthe" + avatar="http://cdn.libravatar.org/avatar/0e245fd49594e98b19d4c57efcb134ad" + subject="comment 4" + date="2021-02-09T17:09:15Z" + content=""" +`git grep` might be just as slow as `find` in the end, but so far it has always been very fast for me. Maybe I just don't have a hyper-huge number of files. +"""]]