Merge remote-tracking branch 'branchable/master'
This commit is contained in:
commit
3d22364bcb
5 changed files with 59 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
|||
This is work in progress, since there is now a [[special_remotes/hook]] for users to plug in whatever they want as a remote, here's my recipe for using tahoe-lafs as a remote, this is a copy and paste the relavent section from my .git/config file
|
||||
|
||||
tahoe-store-hook = tahoe put $ANNEX_FILE tahoe:$ANNEX_KEY
|
||||
tahoe-retrieve-hook = tahoe get tahoe:$ANNEX_KEY $ANNEX_FILE
|
||||
tahoe-remove-hook = tahoe rm tahoe:$ANNEX_KEY
|
||||
tahoe-checkpresent-hook = tahoe ls tahoe:$ANNEX_KEY 2>&1 || echo FAIL
|
||||
|
||||
Where `tahoe:` is a tahoe-lafs alias, ideally you should create a new alias (DIR-CAP or whatever the terminolgy is) to store your files, I just used the default `tahoe:` alias for testing.
|
||||
|
||||
The only quirk I've noticed is this...
|
||||
|
||||
<pre>
|
||||
$ git annex whereis .
|
||||
whereis frink.jar (2 copies)
|
||||
084603a8-7243-11e0-b1f5-83102bcd7953 -- testtest <-- here
|
||||
1d1bc312-7243-11e0-a9ce-5f10c0ce9b0a
|
||||
ok
|
||||
</pre>
|
||||
|
||||
1d1bc312-7243-11e0-a9ce-5f10c0ce9b0a is my [[!google tahoe-lafs]] remote, but there is no label/description on it. The checkpresent-hook was a little confusing when I was setting it up, I'm currently unsure if I am doing the right thing or not with my hook. My get and put commands are a little verbose for now, i might redirect it to /dev/null once I am happier with the overall performance/behaviour my setup.
|
||||
|
||||
Other than the quirks above, I am able to put and get files from my tahoe-lafs remote. The only thing that I have not figured out is how to "remove a file" on the remote to free up space on the remote.
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmBUR4O9mofxVbpb8JV9mEbVfIYv670uJo"
|
||||
nickname="Justin"
|
||||
subject="whereis labels"
|
||||
date="2011-04-29T13:08:35Z"
|
||||
content="""
|
||||
You should be able to fix the missing label by editing .git-annex/uuid.log and adding
|
||||
|
||||
1d1bc312-7243-11e0-a9ce-5f10c0ce9b0a tahoe
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus"
|
||||
nickname="Jimmy"
|
||||
subject="comment 3"
|
||||
date="2011-04-29T10:43:31Z"
|
||||
content="""
|
||||
Cool!, I just tried adding tahoe-lafs as a remote, and it wasn't too hard.
|
||||
"""]]
|
|
@ -13,7 +13,7 @@ next Apert! :) --[[Joey]]
|
|||
|
||||
# git config annex.cuneiform-store-hook 'tocuneiform < "$ANNEX_FILE" | tablet-writer --implement=stylus --title="$ANNEX_KEY" | tablet-proofreader | librarian --shelve --floor=$ANNEX_HASH_1 --shelf=$ANNEX_HASH_2'
|
||||
# git config annex.cuneiform-retrieve-hook 'librarian --get --floor=$ANNEX_HASH_1 --shelf=$ANNEX_HASH_2 --title="$ANNEX_KEY" | tablet-reader --implement=coffee --implement=glasses --force-monastic-dedication | fromcuneiform > "$ANNEX_FILE"'
|
||||
# git config annex.cuneiform-remove-hook 'goon --hit-with-hammer --floor=$ANNEX_HASH_1 --shelf=$ANNEX_HASH_2 --title="$ANNEX_KEY"'
|
||||
# git config annex.cuneiform-remove-hook 'librarian --get --floor=$ANNEX_HASH_1 --shelf=$ANNEX_HASH_2 --title="$ANNEX_KEY" | goon --hit-with-hammer'
|
||||
# git config annex.cuneiform-checkpresent-hook 'librarian --find --force-distrust-catalog --floor=$ANNEX_HASH_1 --shelf=$ANNEX_HASH_2 --title="$ANNEX_KEY" --shout-title'
|
||||
# git annex initremote library type=hook hooktype=cuneiform encryption=none
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkjvjLHW9Omza7x1VEzIFQ8Z5honhRB90I"
|
||||
nickname="Asheesh"
|
||||
subject="Duplication of the filenames is what I am concerned about"
|
||||
date="2011-04-29T11:48:22Z"
|
||||
content="""
|
||||
For what it's worth, yes, I want to actually forget I ever had the same file in the filesystem with a duplicated name. I'm not just aiming to clean up the disk's space usage; I'm also aiming to clean things up so that navigating the filesystem is easier.
|
||||
|
||||
I can write my own script to do that based on the symlinks' target (and I wrote something along those lines), but I still think it'd be nicer if git-annex supported this use case.
|
||||
|
||||
Perhaps:
|
||||
|
||||
<pre>git annex drop --by-contents</pre>
|
||||
|
||||
could let me remove a file from git-annex if the contents are available through a different name. (Right now, \"git annex drop\" requires the name *and* contents match.)
|
||||
|
||||
-- Asheesh.
|
||||
"""]]
|
Loading…
Add table
Reference in a new issue