From 3b6ea2c24462d892cd567c5cb7ca59518caf1243 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 10 Apr 2019 09:46:27 -0400 Subject: [PATCH] document importtree=yes --- doc/special_remotes/adb.mdwn | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/special_remotes/adb.mdwn b/doc/special_remotes/adb.mdwn index d21120568c..4eed62daf3 100644 --- a/doc/special_remotes/adb.mdwn +++ b/doc/special_remotes/adb.mdwn @@ -5,10 +5,10 @@ allows connecting to it in various ways like a USB cable or wifi. ## example -To make git-annex store files in the /sdcard/annex directory -on the Android device, and export the current master tree to it: +To add a remote for the /sdcard/DCIM directory +on the Android device, allowing to import and export photos: - git annex initremote android type=adb androiddirectory=/sdcard/annex encryption=none exporttree=yes + git annex initremote android type=adb androiddirectory=/sdcard/DCIM encryption=none exporttree=yes importtree=yes git annex export master --to android ## configuration @@ -28,6 +28,10 @@ the adb remote. special remote. Since this makes the exported files easily browsable on the Android device, you will almost always want to enable this. +* `importtree` - Set to "yes" to make this special remote usable + by [[git-annex-import]]. When set in combination with exporttree, + this lets files be imported from it, and changes exported back to it. + * `encryption` - One of "none", "hybrid", "shared", or "pubkey". See [[encryption]].