comment
This commit is contained in:
parent
643dc36e37
commit
0e3802c7ee
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||||
|
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue