From 0e3802c7ee4e4be76573bfb9c6f031bcb381d30b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jun 2021 15:11:09 -0400 Subject: [PATCH] comment --- ..._9206087f7320982ef26ef401d39a394f._comment | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/forum/List_if_files_are_stored_in_annex_or_in_git/comment_1_9206087f7320982ef26ef401d39a394f._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 +"""]] -- 2.30.2