Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2012-06-19 09:09:47 -04:00
commit c8d4efeed3
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,30 @@
Running the tip of the watch branch on OSX in an annex'ed directory.
The watch command detects the changes, does _something_, see the output below.
Output from watch command
<pre>
(Recording state in git...)
Added "./KeePass2.18.dmg"
Added "./KeePassX-0.4.3.dmg"
add ./KeePass2.18.dmg (checksum...) ok
add ./KeePassX-0.4.3.dmg (checksum...) ok
</pre>
State of the annex
<pre>
laplace:annex jtang$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# KeePass2.18.dmg
# KeePassX-0.4.3.dmg
nothing added to commit but untracked files present (use "git add" to track)
</pre>
It seems to not do a git add and commit afterw the creation of the symlinks, manually doing this makes it all happy again till more files are added.
note: i had posted a commend in the blog post, but posting the issue here is probably more appropriate.

View file

@ -0,0 +1,14 @@
I think it would be useful to supplement the `reinject` command with an automatic
mode which calculates the checksum of the source file and injects the file if it
is known to the repository (without the need to provide a destination filename).
In addition, this could be done recursively if the user provides a directory to
inject. All this can probably be done already with some plumbing, but a simple
`reinject --auto` (or `scour`, or `scavenge`, if you like) would be a nice addition.
Of course this would only work for the checksum backends.
Example use cases would be:
* Recovering data from lost+found easily
* Making use of old (pre-git-annex) archival volumes with useful files
scattered among non-useful files
* Sneaker-netting files between disconnected git-annex repositories

View file

@ -0,0 +1,14 @@
[[!comment format=mdwn
username="http://www.davidhaslem.com/"
nickname="David"
subject="comment 7"
date="2012-06-19T04:41:27Z"
content="""
$(brew --prefix) should, in most cases, be /usr/local. That's the recommended install location for homebrew.
I already had git installed and homebrew as my package manager - my install steps were as follows:
1. brew install haskell-platform ossp-uuid md5sha1sum coreutils pcre
2. PATH=\"$(brew --prefix coreutils)/libexec/gnubin:$PATH\" cabal install git-annex
"""]]