git-annex/Assistant/Threads
Joey Hess b191d5c595 gitignore support for the assistant and watcher
Requires git 1.8.4 or newer. When it's installed, a background
git check-ignore process is run, and used to efficiently check ignores
whenever a new file is added.

Thanks to Adam Spiers, for getting the necessary support into git for this.

A complication is what to do about files that are gitignored but have
been checked into git anyway. git commands assume the ignore has been
overridden in this case, and not need any more overriding to commit a
changed version.

However, for the assistant to do the same, it would have to run git ls-files
to check if the ignored file is in git. This is somewhat expensive. Or it
could use the running git-cat-file process to query the file that way,
but that requires transferring the whole file content over a pipe, so it
can be quite expensive too, for files that are not git-annex
symlinks.

Now imagine if the user knows that a file or directory tree will be getting
frequent changes, and doesn't want the assistant to sync it, so gitignores
it. The assistant could overload the system with repeated ls-files checks!

So, I've decided that the assistant will not automatically commit changes
to files that are gitignored. This is a tradeoff. Hopefully it won't be a
problem to adjust .gitignore settings to not ignore files you want the
assistant to autocommit, or to manually git annex add files that are listed
in .gitignore.

(This could be revisited if git-annex gets access to an interface to check
the content of the index w/o forking a git command. This could be libgit2,
or perhaps a separate git cat-file --batch-check process, so it wouldn't
need to ship over the whole file content.)

This commit was sponsored by Francois Marier. Thanks!
2013-08-02 20:37:03 -04:00
..
Committer.hs better git version checking 2013-08-02 18:32:26 -04:00
ConfigMonitor.hs webapp: Now allows restarting any threads that crash. 2013-01-26 17:09:33 +11:00
DaemonStatus.hs webapp: Fix a race that sometimes caused alerts or other notifications to be missed if they occurred while a page was loading. 2013-03-27 14:56:20 -04:00
Glacier.hs add additional debug info about reasons for transfers 2013-03-01 15:23:59 -04:00
Merger.hs assistant: Fix bug that could cause incoming pushes to not get merged into the local tree. 2013-04-30 16:37:13 -04:00
MountWatcher.hs sync, assistant: Sync with remotes that have annex-ignore set 2013-04-22 14:57:09 -04:00
NetWatcher.hs assistant: Fix NetWatcher to not sync with remotes that have remote.<name>.annex-sync set to false. 2013-07-26 16:54:20 -04:00
PairListener.hs log local pairing messages received when debugging is enabled 2013-06-11 00:25:44 -04:00
Pusher.hs use a DList for the deferred downloads queue 2013-04-25 01:26:23 -04:00
SanityChecker.hs assistant: Daily sanity check thread is run niced. 2013-06-21 13:29:42 -04:00
TransferPoller.hs remove debug 2013-04-11 16:36:45 -04:00
Transferrer.hs rename module 2013-04-23 11:38:52 -04:00
TransferScanner.hs assistant: On Linux, the expensive transfer scan is run niced. 2013-06-20 22:25:41 -04:00
TransferWatcher.hs more efficient uuid to remote lookup 2013-04-02 16:39:11 -04:00
Watcher.hs gitignore support for the assistant and watcher 2013-08-02 20:37:03 -04:00
WebApp.hs Android: Make the "Open webapp" menu item open the just created repository when a new repo is made. 2013-06-10 23:55:53 -04:00
XMPPClient.hs avoid debug logging unknown xmpp messages, which may contain sensative information 2013-05-27 15:00:07 -04:00
XMPPPusher.hs add two long-running XMPP push threads, no more inversion of control 2013-05-22 15:13:31 -04:00