Added a comment

This commit is contained in:
nobodyinperson 2023-07-12 09:21:56 +00:00 committed by admin
parent 1b8d5940bd
commit e4cb4ec3d2

View file

@ -0,0 +1,22 @@
[[!comment format=mdwn
username="nobodyinperson"
avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5"
subject="comment 4"
date="2023-07-12T09:21:55Z"
content="""
Just for the record:
- `git annex assist -m MESSAGE` works, you can make own messages.
- `git annex assist` has nothing to do with the assistant and can be used without. It's just `git annex sync --content` plus adding new files. A very important command for newcomers to 'just sync it'.
To get 'the old sync' back, you have several options:
- `git config --global annex.synccontent false` for your entire local machine, overrides the next option
- `git annex config --set annex.synccontent false` for all participants of a git annex repo (yes, it syncs between machines), still overrideable by users' local git configs above
- properly set up preferred content expressions (effectively), e.g. `git annex wanted . present`.
- `git annex sync --no-content`
If you don't use preferred content expressions to decide which repo should get which files and you want only partial checkouts with some files, then I indeed don't see why you would ever need `git annex sync --content` as you probably manually `get` the files you want. In that case one could argue that `sync` is a misleading word, you are actually only looking for a metadata sync (`msync`, `metasync`, ...?) strictly without content.
[I was also surprised](https://git-annex.branchable.com/todo/Having___39__git_annex_sync__39___optionally_add/#comment-c8c3138128a684080e2aaafc48aedfcf) that joey opted for introducing `assist` instead of teaching `sync` how to (optionally) add new files as well and keeping the rest as it was. But I can understand the direction of his reasoning.
"""]]