Merge remote-tracking branch 'branchable/master'

This commit is contained in:
Joey Hess 2011-03-22 17:54:09 -04:00
commit 3b312a0c2b
7 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# Calibre
Calibre is a somewhat popular eBook management package that's also free software. <http://calibre-ebook.com/>
Install via
# apt-get install calibre
There is a somewhat unfortunate interaction between Calibre and git-annex...
* git-annex makes its files become read-only. By the way, that's not quite obvious from the documentation; I suggest making that more prominent.
* Calibre modifies files (not quite sure of semantics, how, or why) when doing various operations, notably such as when copying a book from one's library to one's portable reading device.
These don't play well together, sadly.
I'd expect most of the issue to sit on the Calibre side, and have reported it as a bug.
[Calibre bug #739045](https://bugs.launchpad.net/calibre/+bug/739045)
Preliminary indication is that they're treating it as a functionality change they'll decline to fix. Which isn't entirely unreasonable - I anticipated as much, and I don't want to treat that as a bad/wrong decision.
However, I think it's:
* Unfortunate, as fitting Calibre together with git-annex seems like a neat idea.
* Useful to make sure that this kind of "doesn't play well together" condition is documented, even if only as a bug report.

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="praet"
ip="81.242.56.203"
subject="comment 5"
date="2011-03-21T19:58:34Z"
content="""
In the meantime, would it be acceptable to split the pre-commit hook
into two discrete parts?
This would allow to (if preferred) defer \"git annex fix\" until
post-commit while still keeping the safety net for unlocked files.
"""]]

View file

@ -37,3 +37,13 @@ Optionally, editing the meta-data should change the times in all annexes.
git add .metadata
>>>>>> Thanks a lot. Doing this in a new git-annex repo from the start should at least ensure local consistency and I assume I can simply add a post-pull hook to restore the mtimes on all all other repositories? -- RichiH
>>>>>>> This is even better:
#!/bin/sh
git annex pre-commit .
which metastore || echo "$0: metastore is not installed; exiting"; exit 99
metastore --save
git add .metadata
>>>>>>> -- RichiH

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus"
nickname="Jimmy"
subject="comment 8"
date="2011-03-21T08:52:18Z"
content="""
Just tried building both of the code paths, and they seem to build and somewhat function on OSX. I have yet to confirm the functionality is working correctly, but so far it's looking good. (I somewhat care less about the utimes/mtimes of my files since I care more about the content :) )
"""]]