File: day_548__hiding_missing_files.mdwn

package info (click to toggle)
git-annex 8.20210223-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,764 kB
  • sloc: haskell: 70,359; javascript: 9,103; sh: 1,304; makefile: 212; perl: 136; ansic: 44
file content (18 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
At long last there's a way to hide annexed files whose content
is missing from the working tree: `git-annex adjust --hide-missing`

And once you've run that command, `git annex sync` will update the tree
to hide/unhide files whose content availability has changed.
(So will running `git annex adjust` again with the same options.)

You can also combine `--hide-missing` with `--unlock`, which should prove
useful in a lot of situations.

My implementation today is as simple as possible, which means that every
time it updates the adjusted branch it does a full traversal of the
original branch, checks content availability, and generates a new branch.
So it may not be super fast in a large repo, but I was able to implement
it in one day's work. It should be possible later to speed it up a
lot, by [maintaining more state](http://git-annex.branchable.com/todo/hide_missing_files/#comment-5f56545b69a0baebffe5411258ee30ea).

Today's work was sponsored by Ethan Aubin.