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

This commit is contained in:
Joey Hess 2016-03-31 19:07:03 -04:00
commit 11d76f0c8e
Failed to extract signature
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="Kalle"
subject="Had what I believe to be the same issue"
date="2016-03-31T21:22:21Z"
content="""
[[Podcast_filename_encoding_breaks_Android_client/]]
The problem for me was that the podcatcher setup would automatically download new dangerous files and wipe all repos... My workaround in the end was to use ``--template`` to create date only filenames for podcasts. A solution I still use but it's rather inconvenient as more descriptive filenames are useful.
This is quite a dangerous bug as all you need is a direct mode repo and an unusual filename for your whole annex cluster to empty itself. It can be saved by git surgery but unless being very careful you just end up syncing the bad filename back from a repo or another.
"""]]

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="Don"
subject="want everything, but not old versions"
date="2016-03-31T18:50:55Z"
content="""
I'm trying to make a custom `full` group that wants everything, but doesn't keep old versions like the `backup` group that wants `anything`. I'm using `groupwanted full = (copies=1)`--will that work? I guess the `anything` expression seems a bit magical to me, so I'm not sure how to avoid matching what it matches to collect old versions.
"""]]

View file

@ -0,0 +1,29 @@
I have made a small script to fetch a specific set of songs from a
playlist. It just iterates through a [M3U][] playlist and makes sure
that git-annex has a copy of every file in the list.
Sample run:
[1041]anarcat@angela:Music1$ ~/bin/get-playlist -p1 -v ~/playlists/Favoris.m3u
git-annex: Bach/Unknown Album/Concerto for 2 Violins in D.mp3 not found
git-annex: get: 1 failed
git annex failed to get Bach/Unknown Album/Concerto for 2 Violins in D.mp3 (originally espresso/Bach/Unknown Album/Concerto for 2 Violins in D.mp3)
get Groovy Aardvark/Oryctérope/05 - Téléthargique.flac (from marcos...)
SHA256E-s26735079--13c04501b9c6fa5ddda02438484d569f4d3d9b1f0bcdd8740f3b927ab756c968.flac
26,735,079 100% 10.00MB/s 0:00:02 (xfr#1, to-chk=0/1)
(checksum...) ok
Groovy Aardvark/Oryctérope/05 - Téléthargique.flac
[...]
merge git-annex ok
I use this to synchronize specific playlists to my phone, instead of
the whole music collection, because of the limited space of the
device.
The source is AGPL and available in my
[personal git repository][]. Unfortunately, it is written in Python
and can probably not be merged into git-annex, but since it is so
specific, I figured it wouldn't be anyways. -- [[anarcat]]
[personal git repository]: http://src.anarc.at/scripts.git/blob_plain/HEAD:/get-playlist
[M3U]: https://en.wikipedia.org/wiki/M3U

View file

@ -0,0 +1,3 @@
in the spirit of [[todo/--batch_for_add/]], [[todo/--batch_for_info/]], [[todo/--batch_for_find/]] and [[todo/--batch_for_whereis/]], why not add `--batch` to get/drop/import operations?
I am writing a script to get a bunch of arbitrary files and i want to avoid the overhead of running git-annex multiple times. I know i can use `annex.alwayscommit=false` but that is rather counter-intuitive as well. --[[anarcat]]