{"thread":{"id":"18076","subject":"smudge filter problem","startedAt":"2009-03-01T10:18:23Z","lastAt":"2009-03-01T10:18:23Z","messageCount":1,"participants":["bill lam"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"106598","messageId":"20090301101823.GA7466@b2j","threadId":"18076","inReplyTo":null,"subject":"smudge filter problem","fromName":"bill lam","fromEmail":"cbill.lam@gmail.com","sentAt":"2009-03-01T10:18:23Z","receivedAt":"2009-03-01T10:18:23Z","isPatch":false,"sender":{"key":"cbill.lam@gmail.com","avatar":null},"body":"I track xls by using filter to convert it to gnumeric format. Inside gitconfig\n[filter \"excelbiff\"]\n  clean = ssconvert --export-type=Gnumeric_XmlIO:sax fd://0 fd://1 | zcat -f\n  smudge = ssconvert --export-type=Gnumeric_Excel:excel_biff8 fd://0 fd://1\nand xls set inside gitattribute\n\nWhile the clean filter works, the smudge filter does not. When git-checkout it said seek error \n git ckeckout foo.xls\n\nHowever git-show works as pipe to ssconvert\n git show HEAD:foo.xls | ssconvert --export-type=Gnumeric_Excel:excel_biff8 fd://0  newfoo.xls\n\nI guess ssconvert was mistaken to believe that all data has been flushed too soon.\n\nI tested with an xls that converted to gnumeric uncompress file size about 10MB and libgsf 1.14.11\n\nPS. for older libgsf it needs to using a temp file to buffer data for ssconvert instead of using fd://0\n\n-- \nregards,\n====================================================\nGPG key 1024D/4434BAB3 2008-08-24\ngpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3\n唐詩019 孟浩然  夏日南亭懷辛大\n    山光忽西落  池月漸東上  散髮乘夜涼  開軒臥閑敞  荷風送香氣  竹露滴清響\n    欲取鳴琴彈  恨無知音賞  感此懷故人  中宵勞夢想\n"}]}