From: Joey Hess Date: Mon, 14 Jun 2021 19:11:09 +0000 (-0400) Subject: comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~91^2~233 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0e3802c7ee4e4be76573bfb9c6f031bcb381d30b;p=git-annex.git comment --- diff --git a/doc/forum/List_if_files_are_stored_in_annex_or_in_git/comment_1_9206087f7320982ef26ef401d39a394f._comment b/doc/forum/List_if_files_are_stored_in_annex_or_in_git/comment_1_9206087f7320982ef26ef401d39a394f._comment new file mode 100644 index 0000000000..e38ee78ef8 --- /dev/null +++ b/doc/forum/List_if_files_are_stored_in_annex_or_in_git/comment_1_9206087f7320982ef26ef401d39a394f._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2021-06-14T18:38:13Z" + content=""" +`git annex find`, like all git-annex commands except for `add`, +skips over non-annexed files. + +What you can do is get a list of all annexed files: + + git annex find --include '*' | sort > annexed-files + +And get a list of all files git knows: + + git -c core.quotepath=off ls-files | sort > all-files + +And then find files that are in the second list but not the first: + + comm -1 -3 annexed-files all-files +"""]]