exporttree support for adb special remote

This commit was sponsored by Michael Magin.
This commit is contained in:
Joey Hess 2018-03-27 16:10:28 -04:00
parent 2927618d35
commit ae75eb06bc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 92 additions and 28 deletions

View file

@ -3,6 +3,14 @@ This special remote stores files on an Android device.
The `adb` program is used to access the Android device, which
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:
git annex initremote android type=adb androiddirectory=/sdcard/annex encryption=none exporttree=yes
git annex export master --to android
## configuration
A number of parameters can be passed to `git annex initremote` to configure

View file

@ -8,12 +8,12 @@ tree of files and consuming them on the android device.
Use adb push, adb pull, and use adb shell for checkpresent and remove.
Ought to implement [[import tree]] at the same time, so that changes made
Ought to implement [[import tree]] too, so that changes made
to files on the android device can be imported back into the git
repository.
And, [[export preferred content]] would be a useful feature for
excluding some files from a tree exported to android.
> Status: Basic special remote now implemented. exporttree and import
> not yet. --[[Joey]]
> Status: Remote implemented, but not yet [[import tree]] and
> [[export preferred content]]. --[[Joey]]