On Thu, 05 Jul 2012, Yaroslav Halchenko wrote: > >> maintaining both preceeding and compression parts of the extension? > >i.e. > >> .nii.gz in the example above.
> >I'd rather not hardcode common extensions. I've adjusted the code > >so it takes up to 2 extensions, stopping if it sees an "extension" > >that's > >more than 4 characters long, because that's probably part of the > >filename. > That is great! Thanks! I will check it out asap got intrigued that there were no unittests for the commit so decided to test more thoroughly ;) : used $> /home/yoh/proj/git-annex/git-annex add * .xxx* --backend=SHA1E # just built it from 3.20120629-45-g5a753a7 got: .xxx -> .git/annex/objects/mG/W3/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.xxx/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.xxx .xxx.yyy -> .git/annex/objects/4Z/19/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709xxx.yyy/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709xxx.yyy .xxx.yyy.zzz -> .git/annex/objects/w6/f0/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709yyy.zzz/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709yyy.zzz 1.nii -> .git/annex/objects/Q1/Wp/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.nii/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.nii 1.nii.gz -> .git/annex/objects/52/jW/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709nii.gz/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709nii.gz 1.ogg -> .git/annex/objects/Gz/P4/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.ogg/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.ogg a.x -> .git/annex/objects/p3/K7/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.x/SHA1E-s0--da39a3ee5e6b4b0d3255bfef95601890afd80709.x jacobian-03.nii.gz -> .git/annex/objects/qm/06/SHA1E-s4690--2f7a42bc258dca9b3f88bc8614428362f0bd48c4nii.gz/SHA1E-s4690--2f7a42bc258dca9b3f88bc8614428362f0bd48c4nii.gz so it seems that we are lacking the 2nd dot for the cases with composite extensions Thanks again for adding this feature! -- Yaroslav O. Halchenko Postdoctoral Fellow, Department of Psychological and Brain Sciences Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 WWW: http://www.linkedin.com/in/yarik -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org