From 84366fa2d031726a4c77241aa78b7760f95a639f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 19 May 2021 11:13:53 -0400 Subject: [PATCH] fix by improving docs --- doc/bugs/delayadd_doesn__39__t_work.mdwn | 1 + ..._1501fc7de682c0f2920c6c592204268c._comment | 19 +++++++++++++++++++ doc/git-annex.mdwn | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 doc/bugs/delayadd_doesn__39__t_work/comment_1_1501fc7de682c0f2920c6c592204268c._comment diff --git a/doc/bugs/delayadd_doesn__39__t_work.mdwn b/doc/bugs/delayadd_doesn__39__t_work.mdwn index 1cb143cdf9..50be127b4a 100644 --- a/doc/bugs/delayadd_doesn__39__t_work.mdwn +++ b/doc/bugs/delayadd_doesn__39__t_work.mdwn @@ -44,3 +44,4 @@ local repository version: 8 ### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) +> [[done]] --[[Joey]] diff --git a/doc/bugs/delayadd_doesn__39__t_work/comment_1_1501fc7de682c0f2920c6c592204268c._comment b/doc/bugs/delayadd_doesn__39__t_work/comment_1_1501fc7de682c0f2920c6c592204268c._comment new file mode 100644 index 0000000000..7dd3105257 --- /dev/null +++ b/doc/bugs/delayadd_doesn__39__t_work/comment_1_1501fc7de682c0f2920c6c592204268c._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2021-05-19T15:08:44Z" + content=""" +The assistant scans on startup for changes that happened while it was not +running, and delayadd does not affect those. It only affects changes while +the assistant is running. + +I don't think it would be possible to make the startup scan respect +delayadd in general. It could look at mtime, but eg, renaming a file +does not affect its mtime. + +Also, the only reason the feature exists is that it can be annoying, when +the assistant is running, to have every little change you make to a file +be recorded; a short delay can let such changes be bundled together. + +I will document this and close it. +"""]] diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index f355359bb3..9f35f62610 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -1745,6 +1745,10 @@ Remotes are configured using these settings in `.git/config`. is not needed, because they already wait for all writers of the file to close it. + Note that this only delays adding files created while the daemon is + running. Changes made when it is not running will be added the next time + it is started up. + * `annex.expireunused` Controls what the assistant does about unused file contents