comment
authorJoey Hess <joeyh@joeyh.name>
Mon, 14 Jun 2021 19:11:09 +0000 (15:11 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 14 Jun 2021 19:11:09 +0000 (15:11 -0400)
doc/forum/List_if_files_are_stored_in_annex_or_in_git/comment_1_9206087f7320982ef26ef401d39a394f._comment [new file with mode: 0644]

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 (file)
index 0000000..e38ee78
--- /dev/null
@@ -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
+"""]]