From eab6146e53cd09048cd859eeb5b38d990be245c9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 Apr 2017 11:59:03 -0400 Subject: [PATCH] comment --- ..._a6e38a1678c433e5a5d96afae4ae4332._comment | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/forum/library__44___backup_and_music_player/comment_1_a6e38a1678c433e5a5d96afae4ae4332._comment diff --git a/doc/forum/library__44___backup_and_music_player/comment_1_a6e38a1678c433e5a5d96afae4ae4332._comment b/doc/forum/library__44___backup_and_music_player/comment_1_a6e38a1678c433e5a5d96afae4ae4332._comment new file mode 100644 index 0000000000..edf4c4e6a7 --- /dev/null +++ b/doc/forum/library__44___backup_and_music_player/comment_1_a6e38a1678c433e5a5d96afae4ae4332._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2017-04-05T15:52:30Z" + content=""" +Good question! I don't have a perfect solution for this, +because what you really probably want is to be able to `git annex copy` +files to the music player and have only the present files show up in +its repository. + +One approach is to use a [[directory_special_remote|special_remotes/directory]] +on the music player. This way, only present files will show up there, +but they'll have git-annex's internal filenames. If the music player +doesn't care about filenames, this can work ok. + +Another approach is to use a v6 git-annex repository +on the media player, and use [[git-annex-adjust]] to generate +a version of a branch where all files that are present are unlocked +(and thus regular files with the expected filenames). Files +that are not present will still show up in the working tree though, +either as symlinks or as the small text files git uses when a filesystem +does not support symlinks. So this is much like direct mode, but it has +the benefit that you can use all the normal git branching features +to create a trimmed down branch for the media player with just the files +you want. +"""]]