git-annex/Command
Joey Hess 5c3e14649e avoid unnecessary transfer scans when syncing a disconnected remote
Found a very cheap way to determine when a disconnected remote has
diverged, and has new content that needs to be transferred: Piggyback on
the git-annex branch update, which already checks for divergence.

However, this does not check if new content has appeared locally while
disconnected, that should be transferred to the remote.

Also, this does not handle cases where the two git repos are in sync,
but their content syncing has not caught up yet.

This code could have its efficiency improved:

* When multiple remotes are synced, if any one has diverged, they're
  all queued for transfer scans.
* The transfer scanner could be told whether the remote has new content,
  the local repo has new content, or both, and could optimise its scan
  accordingly.
2012-08-22 15:05:57 -04:00
..
Add.hs maintain set of files pendingAdd 2012-06-20 16:31:46 -04:00
AddUnused.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
AddUrl.hs maintain set of files pendingAdd 2012-06-20 16:31:46 -04:00
Assistant.hs full autostart support 2012-08-02 00:42:33 -04:00
Commit.hs fishy commit 2012-06-14 00:01:48 -04:00
ConfigList.hs set oneshot mode on a per-command basis 2012-02-14 12:40:40 -04:00
Copy.hs copy, drop: Avoid checking numcopies attribute unnecessarily 2012-07-10 11:53:45 -06:00
Dead.hs add 2011-12-02 19:22:43 -04:00
Describe.hs lint 2011-11-11 01:52:58 -04:00
Drop.hs copy, drop: Avoid checking numcopies attribute unnecessarily 2012-07-10 11:53:45 -06:00
DropKey.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
DropUnused.hs factor out nukeFile 2012-06-06 13:13:13 -04:00
Find.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Fix.hs extend Git.Queue to be able to queue more than simple git commands 2012-06-07 15:19:44 -04:00
FromKey.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Fsck.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Get.hs fix transfer log cleanup crash 2012-08-07 13:30:08 -04:00
Import.hs import: New subcommand, pulls files from a directory outside the annex and adds them 2012-05-31 19:47:18 -04:00
InAnnex.hs set oneshot mode on a per-command basis 2012-02-14 12:40:40 -04:00
Init.hs init: When run in an already initalized repository, and without a description specified, don't delete the old description. 2011-11-12 15:42:52 -04:00
InitRemote.hs initremote: Avoid recording remote's description before checking that its config is valid. 2012-07-27 21:05:27 -04:00
Lock.hs extend Git.Queue to be able to queue more than simple git commands 2012-06-07 15:19:44 -04:00
Log.hs Clean up handling of git directory and git worktree. 2012-05-18 17:03:12 -04:00
Map.hs add back debug logging 2012-07-19 00:46:52 -04:00
Merge.hs improve alwayscommit=false mode 2012-02-25 16:18:55 -04:00
Migrate.hs maintain set of files pendingAdd 2012-06-20 16:31:46 -04:00
Move.hs record transfer information on local git remotes 2012-07-01 17:15:11 -04:00
PreCommit.hs added ifM and nuked 11 lines of code 2012-03-14 17:43:34 -04:00
RecvKey.hs record transfers for git-annex-shell 2012-07-02 01:31:10 -04:00
Reinject.hs hlint 2012-02-16 00:44:51 -04:00
ReKey.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Semitrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
SendKey.hs record transfers for git-annex-shell 2012-07-02 01:31:10 -04:00
Status.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Sync.hs avoid unnecessary transfer scans when syncing a disconnected remote 2012-08-22 15:05:57 -04:00
Trust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unannex.hs Support git's core.sharedRepository configuration 2012-04-21 15:36:52 -04:00
Uninit.hs hlint 2012-06-12 11:32:06 -04:00
Unlock.hs better file mode setting code 2012-04-21 16:01:56 -04:00
Untrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unused.hs add routes to pause/start/cancel transfers 2012-08-08 16:20:24 -04:00
Upgrade.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Version.hs set oneshot mode on a per-command basis 2012-02-14 12:40:40 -04:00
Watch.hs full autostart support 2012-08-02 00:42:33 -04:00
WebApp.hs implement resuming of paused transfers 2012-08-12 12:11:20 -04:00
Whereis.hs hlint 2012-06-12 11:32:06 -04:00