Commit graph

6 commits

Author SHA1 Message Date
Joey Hess
5df89d58c7
git-annex pull and push
Split out two new commands, git-annex pull and git-annex push. Those plus a
git commit are equivilant to git-annex sync.

In a sense, git-annex sync conflates 3 things, and it would have been
better to have push and pull from the beginning and not sync. Although
note that git-annex sync --content is faster than a pull followed by a
push, because it only has to walk the tree once, look at preferred
content once, etc. So there is some value in git-annex sync in speed, as
well as user convenience.

And it would be hard to split out pull and push from sync, as far as the
implementaton goes. The implementation inside sync was easy, just adjust
SyncOptions so it does the right thing.

Note that the new commands default to syncing content, unless
annex.synccontent is explicitly set to false. I'd like sync to also do
that, but that's a hard transition to make. As a start to that
transition, I added a note to git-annex-sync.mdwn that it may start to
do so in a future version of git-annex. But a real transition would
necessarily involve displaying warnings when sync is used without
--content, and time.

Sponsored-by: Kevin Mueller on Patreon
2023-05-16 16:51:07 -04:00
Joey Hess
f4c49b8f81
this is not all run as root 2019-03-27 11:15:03 -04:00
Joey Hess
ba6cba97d2 update docs for sync --content 2014-02-02 16:21:42 -04:00
Joey Hess
c1cdfabcbb adjust for earlier change that made sync be introduced earlier 2013-09-07 19:18:16 -04:00
Joey Hess
0caee4ae28 add a note 2013-07-08 16:17:24 -04:00
Joey Hess
f165e4aa99 add section on syncing to the walkthrough 2011-12-31 14:50:40 -04:00