This commit is contained in:
Joey Hess 2021-06-14 15:11:09 -04:00
parent 643dc36e37
commit 0e3802c7ee
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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
"""]]