aboutsummaryrefslogtreecommitdiff
path: root/Config
Commit message (Collapse)AuthorAge
* reorgGravatar Joey Hess2014-01-21
|
* move programPath out of Config.Files to Annex.PathGravatar Joey Hess2013-11-24
| | | | | | | | This works around horribleness in the Mavericks cpp, which falls over on the #if when configure is running. Moving it avoids the file being built at that point. But it's also a location that makes sense..
* watch git-annex program file to detect upgradesGravatar Joey Hess2013-11-22
| | | | | | | | | | | | | | | | | | | | | | | | Not yet wired up to restart the assistant on upgrade; that needs careful sanity checking to wait until the upgrade is done before restarting. Used the DirWatcher here, so it gets events for any changes to the directory containing the program file. (But not subdirs.) This is necessary in order to detect when the file is renamed as part of the upgrade, which an inotify on a single file would not detect. (Also, I have DirWatcher code, but not FileWatcher code.) Note that upgrades that remove or rename a whole directory tree containing the executable will *not* trigger this code. So eg, deleting and replacing the whole standalone tarball dir tree won't work -- but untarring it over top will. So should dpkg package upgrades. Added programPath, using a new GHC feature to find the full path to the executable. The fallback code for old GHC or unsupported OS is less good; its worst failure mode would be either failing to find the program, and so not checking for upgrades, or finding a git-annex that's in PATH, but is not the one running. This commit was sponsored by John Roepke.
* hlintGravatar Joey Hess2013-09-25
| | | | test suite still passes
* webapp: When the user switches to display a different repository, that ↵Gravatar Joey Hess2013-06-11
| | | | repository becomes the default repository to be displayed next time the webapp gets started.
* Detect bad content in ~/.config/git-annex/program and look in PATH instead.Gravatar Joey Hess2013-05-20
|
* rename moduleGravatar Joey Hess2013-05-12
|
* better autostart file modificationGravatar Joey Hess2013-04-23
| | | | | | | | As well as just being nicer, and less code, this uses nubBy equalFilePath to ensure that the autostart file never gets dups. Also, removing from the file no longer needs to be a perfect string match; it also uses equalFilePath.
* strip newlines in programfileGravatar Joey Hess2013-04-23
| | | | | | Indeed, ignore lines after the first. Use might create it with echo..
* rename moduleGravatar Joey Hess2013-04-23
|
* minor robustness fixes in repo cost reordering codeGravatar Joey Hess2013-03-18
|
* better costBetween; avoid unnecessary fractional valuesGravatar Joey Hess2013-03-14
|
* split cost out into its own moduleGravatar Joey Hess2013-03-13
Added a function to insert a new cost into a list, which could be used to asjust costs after a drag and drop.