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

This commit is contained in:
Joey Hess 2014-03-31 20:54:40 -04:00
commit 951c81af31
4 changed files with 58 additions and 5 deletions

View file

@ -0,0 +1,8 @@
Hi,
I have two repo one in direct (on windows) and one in indirect mode. From time to time the files in the direct repo are replaced by empty files however running git annex fsck always solves it.
The problem is that today I did run git annex sync before running git annex fsck and git annex has then created two -variants for each of my files one empty and one with the content.
I guess the easier for me is to just scrap that repo and make a new one however how do I prevent the changes to propagate now? I guess that if I now run git annex sync on my other repo all those small files are going to have linked created for them there as well.
I hope this is clear,
Thanks in advance.

View file

@ -33,9 +33,9 @@ If it doesn't, the repository wants to drop its content
To check at the command line which files are matched by preferred content
settings, you can use the --want-get and --want-drop options.
For example, "git annex find --want-get --not --in ." will find all the
files that "git annex get --auto" will want to get, and "git annex find
--want-drop --in ." will find all the files that "git annex drop --auto"
For example, `git annex find --want-get --not --in here` will find all the
files that `git annex get --auto` will want to get, and `git annex find
--want-drop --in here` will find all the files that `git annex drop --auto`
will want to drop.
The expressions are very similar to the matching options documented

View file

@ -1,7 +1,9 @@
Integrating git-annex and your file manager provides an easy way to select
annexed files to get or drop.
## nautilus
[[!toc]]
## GNOME (nautilus)
Recent git-annex comes with built-in nautilus integration. Just pick the
action from the menu.
@ -37,6 +39,49 @@ Create a file `~/.kde4/share/kde4/services/ServiceMenus/git-annex.desktop` with
Icon=git-annex
Exec=git-annex drop --notify-start --notify-finish %U
## XFCE (Thunar)
XFCE uses the Thunar file manager, which can also be easily configured to allow for custom actions. Just go to the "Configure custom actions..." item in the "Edit" menu, and create a custom action for get and drop with the following commands:
git-annex drop --notify-start --notify-finish %F
for drop, and for get:
git-annex drop --notify-start --notify-finish %F
This gives me the resulting config on disk, in `.config/Thunar/uca.xml`:
<action>
<icon>git-annex</icon>
<name>git-annex get</name>
<unique-id>1396278104182858-3</unique-id>
<command>git-annex get --notify-start --notify-finish %F</command>
<description>get the files from a remote git annex repository</description>
<patterns>*</patterns>
<directories/>
<audio-files/>
<image-files/>
<other-files/>
<text-files/>
<video-files/>
</action>
<action>
<icon>git-annex</icon>
<name>git-annex drop</name>
<unique-id>1396278093174843-2</unique-id>
<command>git-annex drop --notify-start --notify-finish %F</command>
<description>drop the files from the local repository</description>
<patterns>*</patterns>
<directories/>
<audio-files/>
<image-files/>
<other-files/>
<text-files/>
<video-files/>
</action>
The complete instructions on how to setup actions is [in the XFCE documentation](http://docs.xfce.org/xfce/thunar/custom-actions).
## your file manager here
Edit this page and add instructions!

View file

@ -1,4 +1,4 @@
This is git-annex's todo list. Link items to [[todo/done]] when done.
This is git-annex's todo list. Link items to [[todo/done]] when done. A more complete [[design/roadmap/]] is also available.
[[!inline pages="./todo/* and !./todo/done and !link(done)
and !*/Discussion" actions=yes postform=yes show=0 archive=yes]]