git-annex/doc/design/assistant
Joey Hess 9aab70de66 always check with ls-files before adding new files
Makes it safe to use git annex unlock with the watcher/assistant.
And also to mix use of the watcher/assistant with regular files stored in git.

Long ago, I had avoided doing this check, except during the startup scan,
because it would be slow to run ls-files repeatedly.

But then I added the lsof check, and to make that fast, got it to detect
batch file adds. So let's move the ls-files check to also occur when it'll
have a batch, and can check them all with one call.

This does slow down adding a single file by just a bit, but really only
a little bit. (The lsof check is probably more expensive.) It also
speeds up the startup scan, especially when there are lots of new files
found by the scan.

Also, fixed the sleep for annex.delayadd to not run while the threadstate
lock is held, so it doesn't unnecessarily freeze everything else.

Also, --force no longer makes it skip the lsof check, which was not
documented, and seems never a good idea.
2012-10-02 17:41:23 -04:00
..
android Added a comment 2012-09-11 09:34:42 +00:00
blog blog for the day 2012-10-01 18:39:54 -04:00
cloud Added a comment: OwnCloud 2012-08-27 20:43:19 +00:00
deltas Added a comment: zsync? 2012-09-10 12:35:45 +00:00
desymlink Added a comment: Modifying files in a folder watched by assistant 2012-09-19 14:18:55 +00:00
inotify Comment moderation 2012-07-26 17:21:26 +00:00
OSX Added a comment: Mount detection 2012-09-21 09:23:34 +00:00
partial_content Added a comment: selective sync 2012-07-28 04:08:00 +00:00
polls poll vote (My phone (or MP3 player)) 2012-09-29 03:05:36 +00:00
progressbars Added a comment: librsync 2012-06-13 02:14:29 +00:00
screenshot blog for the day 2012-07-31 17:56:32 -04:00
syncing Comment moderation 2012-07-26 17:21:26 +00:00
thanks Added a comment: Special 2012-07-20 23:45:15 +00:00
transfer_control Added a comment 2012-09-23 21:58:08 +00:00
webapp Added a comment 2012-07-26 17:45:28 +00:00
windows Added a comment 2012-08-07 04:15:43 +00:00
android.mdwn something I heard on irc 2012-07-29 16:25:19 -04:00
blog.mdwn show all 2012-07-18 19:52:07 -04:00
cloud.mdwn notes on possibilities 2012-10-01 11:30:51 -04:00
comment_1_a48fcfbf97f0a373ea375cd8f07f0fc8._comment Added a comment 2012-06-02 12:06:38 +00:00
comment_2_6d3552414fdcc2ed3244567e6c67989d._comment Added a comment 2012-06-04 19:45:00 +00:00
comment_3_05223be50c889b2ed6bc4abf74116450._comment Added a comment 2012-06-07 20:22:58 +00:00
comment_4_fbbd93b55803ae21e6ba4b6568c2fafd._comment Added a comment 2012-06-08 01:56:52 +00:00
comment_5_f4e9af3fed6c27e8ff39badb9794064d._comment Added a comment 2012-06-08 07:22:34 +00:00
comment_6_c7ad07cade1f44f9a8b61f92225bb9c5._comment Added a comment 2012-06-08 15:21:21 +00:00
comment_7_609d38e993267195a80fecd84c93d1e2._comment Added a comment 2012-06-09 18:07:51 +00:00
comment_8_22b818e1a2a825efb78139271a14f944._comment Added a comment: Homebrew instead of MacPorts 2012-06-22 04:26:06 +00:00
comment_9_d052e2142da8b4838fb1edf791ea23ae._comment Comment moderation 2012-07-26 17:21:26 +00:00
comment_10_f2233fad55c20686cf299bf6788f1f23._comment Comment moderation 2012-07-26 17:21:26 +00:00
comment_11_a38f0f21c2346e65b786d791b6829f9b._comment Added a comment 2012-08-13 00:37:36 +00:00
comment_12_5e991177d6577384f39a36ae02f5f574._comment Added a comment: Multiple annexes? 2012-09-20 16:10:29 +00:00
comment_13_f8625c6f43b58847840df338a73b7972._comment Added a comment 2012-09-20 16:21:12 +00:00
comment_14_c37ef5931b0f5c1f808083e0d636a208._comment Added a comment: you rock! & roadmap update? 2012-09-21 04:25:59 +00:00
comment_15_68c98a27083567f20c2e6bc2a760991b._comment Added a comment 2012-09-21 05:25:53 +00:00
comment_16_8e6788c817c60371d2a2f158e1a65f87._comment Added a comment: Maybe a DEB?2 2012-09-27 09:44:14 +00:00
comment_17_97bdfacac5ac492281c9454ee4c0228e._comment Added a comment 2012-09-27 18:44:11 +00:00
configurators.mdwn add special remotes poll 2012-09-12 13:56:25 -04:00
deltas.mdwn typos 2012-05-28 14:43:27 -04:00
desymlink.mdwn update 2012-05-26 21:38:25 -04:00
inotify.mdwn always check with ls-files before adding new files 2012-10-02 17:41:23 -04:00
leftovers.mdwn reorg osx stuff 2012-08-30 13:47:00 -04:00
OSX.mdwn update 2012-09-28 12:16:25 -04:00
pairing.mdwn blog for the day 2012-09-11 16:16:11 -04:00
partial_content.mdwn reorg 2012-05-28 14:29:21 -04:00
polls.mdwn fix 2012-09-16 13:13:17 -04:00
progressbars.mdwn hooked up git-annex-shell transferinfo 2012-09-21 23:25:06 -04:00
syncing.mdwn when a Download finishes, queue Uploads 2012-09-18 14:10:33 -04:00
transfer_control.mdwn terminology 2012-10-01 18:26:47 -04:00
webapp.mdwn update 2012-09-28 12:16:25 -04:00
windows.mdwn note 2012-06-11 02:13:04 -04:00