Commit graph

7687 commits

Author SHA1 Message Date
Joey Hess
e872c3f648 convert notBareRepo to a CommandCheck
This avoids some small overhead by only running the check once per command;
it also ensures that, even if the command doesn't find anything to run on,
it still fails to run when in a bare repo.
2012-12-29 14:45:19 -04:00
Joey Hess
e2788a5d15 document --autostart 2012-12-29 14:43:53 -04:00
Joey Hess
2ce736ac50 block all commands that don't work in direct mode
I left status working in direct mode, although it doesn't show correct
stats for known annex keys.
2012-12-29 14:28:19 -04:00
Joey Hess
9f2150c7d3 memoize parsing of annex.direct config setting
It occurs to me that all config settings should be parsed once at startup,
into a proper ADT, rather than all this ad-hoc parsing and memoization. One
day..
2012-12-29 13:37:11 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
774f2b41b7 Added a comment 2012-12-29 13:26:31 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnFhHPFP7j3wGNgBxEJoA8LcBJ4Xd1tTMY
d3b8bbd502 Added a comment: Release + Version Number 2012-12-29 11:16:05 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog
9833cd8ac6 Added a comment 2012-12-29 08:00:57 +00:00
https://www.google.com/accounts/o8/id?id=AItOawm5iosFbL2By7UFeViqkc6v-hoAtqILeDA
4dba5af93d Added a comment 2012-12-28 23:53:22 +00:00
http://phil.0x539.de/
ff1076e514 Added a comment 2012-12-28 23:23:29 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkBTVYS5lTecuenAB01eHgfUxE20vWVpU4
aa57b30c74 Added a comment: Large Mountain Loin package size 2012-12-28 22:17:44 +00:00
Joey Hess
3d57f0d356 blog for the day 2012-12-28 16:42:17 -04:00
Joey Hess
c0f9810f0b OSX assistant: Uses direct mode by default when setting up a new local repository. 2012-12-28 16:42:11 -04:00
Joey Hess
561e317506 typo 2012-12-28 16:25:18 -04:00
Joey Hess
94d735c12a fix fsevents rename handling
For both files and whole directories; also tested on moving whole dirs out
of and into the working copy.
2012-12-28 16:20:05 -04:00
Joey Hess
6e4ec17da4 ignore events generated by us in fsevents
This avoids some churn.
2012-12-28 16:05:33 -04:00
Joey Hess
75de4b8004 Merge branch 'master' of ssh://git-annex.branchable.com 2012-12-28 16:02:01 -04:00
Joey Hess
bf3270c5b7 add missing modifyHook for watcher
Needed for FSEvents, which calls that hook for modified files.
inotify seems to call the add hook, so I didn't notice it before.
2012-12-28 16:00:45 -04:00
Joey Hess
2fdefc656b fix logic error breaking direct mode assistant autocommit of modified files 2012-12-28 16:00:19 -04:00
markus
3539cfe9a9 Added a comment: Great util! 2012-12-28 17:45:28 +00:00
http://joeyh.name/
c1df8eb398 Added a comment 2012-12-28 02:46:23 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkey8WuXUh_x5JC2c9_it1CYRnVTgdGu1M
f67afe5923 Added a comment: Linux Support 2012-12-27 21:37:47 +00:00
Joey Hess
ae2c04d248 blog for the day 2012-12-27 16:09:11 -04:00
Joey Hess
64664248b6 OSX no longer affected by kqueue bugs 2012-12-27 15:52:57 -04:00
Joey Hess
5d0356de67 typo 2012-12-27 15:49:32 -04:00
Joey Hess
ede34ec185 exclude closed bugs 2012-12-27 15:48:37 -04:00
Joey Hess
69247ebd28 startup scan for FSEvents 2012-12-27 15:46:37 -04:00
Joey Hess
bd31a9fbd1 fsevents bugfix for symlinks 2012-12-27 15:35:35 -04:00
Joey Hess
7af958d92c OSX FSEvents support
Needs work to deal with directory renames better; otherwise seems to
basically work.
2012-12-27 15:22:29 -04:00
108.13.12.20
44665452a8 poll vote (Tahoe-LAFS) 2012-12-26 08:52:54 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmRFKwny4rArBaz-36xTcsJYqKIgdDaw5Q
e610c36276 sudo should not be used with homebrew 2012-12-26 01:34:47 +00:00
Joey Hess
811f88e942 Merge branch 'master' of ssh://git-annex.branchable.com 2012-12-25 16:22:23 -04:00
https://www.google.com/accounts/o8/id?id=AItOawltmUlf_zHb-hDkjLLYeUxyd81YVoIgZew
39fb971df0 Added a comment 2012-12-25 20:21:17 +00:00
Joey Hess
dde219dc95 update 2012-12-25 16:19:03 -04:00
Joey Hess
57fddd5cd2 blog for the day 2012-12-25 16:18:51 -04:00
Joey Hess
eb40227d15 assistant direct mode file add/change bookkeeping
When a file is changed in direct mode, the old content is probably lost
(at least from the local repo), and bookeeping needs to be updated to
reflect this.

Also, synthetic add events are generated at assistant startup, so
make it detect when the file has not really changed, and avoid re-adding
it.

This does add the overhead of querying the runing git cat-file for the
key that's recorded in git for the file, each time a file is added or
modified in direct mode.
2012-12-25 15:48:15 -04:00
Joey Hess
221584ec7f document direct mode files 2012-12-25 14:25:47 -04:00
Joey Hess
8a8380f1b7 use sync command merge engine in assistant
To handle direct mode merging.
2012-12-25 14:10:07 -04:00
https://www.google.com/accounts/o8/id?id=AItOawltmUlf_zHb-hDkjLLYeUxyd81YVoIgZew
96173c0b76 Added a comment: Still somewhat broken 2012-12-25 17:58:53 +00:00
Joey Hess
9fcfcab485 Merge branch 'master' of ssh://git-annex.branchable.com 2012-12-25 12:48:24 -04:00
Joey Hess
c3a35eb857 add a guard against using git annex add in direct mode repo
Currently, it deletes files when run in one, so until I get a chance to fix
it, block foot shooting.
2012-12-24 14:54:36 -04:00
Joey Hess
cc5140d295 assistant adding of modified files in direct mode
Works with inotify, but I think in kqueue we don't get events
existing files that get modified.
2012-12-24 14:42:19 -04:00
Joey Hess
95db595e91 make startup scan for deleted files work in direct mode
git add --update cannot be used, because it'll stage typechanged direct
mode files. Intead, use ls-files to find deleted files, and stage them
ourselves.

It seems that no commit was made before when the scan staged deleted files.
(Probably masked since if files were added, a commit happened then..)
Now that I'm doing the staging, I was also able to fix that bug.
2012-12-24 14:24:13 -04:00
Joey Hess
c6d2bbe402 assistant adding of files in direct mode 2012-12-24 13:37:29 -04:00
http://joeyh.name/
6c435adcde Added a comment 2012-12-23 19:51:53 +00:00
http://joeyh.name/
87a35859c9 Added a comment 2012-12-23 19:29:27 +00:00
http://joeyh.name/
f0e3ce5edf Added a comment 2012-12-23 19:26:23 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmBUR4O9mofxVbpb8JV9mEbVfIYv670uJo
57c4ac76c3 Added a comment 2012-12-23 17:40:14 +00:00
http://www.joachim-breitner.de/
d98784aab4 2012-12-22 22:06:45 +00:00
Steve
4b8ae4f9e8 added link to forum post 2012-12-22 16:57:35 +00:00
Steve
8b202a30d6 2012-12-22 16:55:37 +00:00