git/list[1] front-page[2] threads[3] people[4] search[5] about
 

smudge filter problem

From
BLbill lam <cbill.lam@gmail.com>
Date
Mar 1, 2009, 10:18 UTC
Message-ID
<20090301101823.GA7466@b2j>
I track xls by using filter to convert it to gnumeric format. Inside gitconfig
[filter "excelbiff"]
  clean = ssconvert --export-type=Gnumeric_XmlIO:sax fd://0 fd://1 | zcat -f
  smudge = ssconvert --export-type=Gnumeric_Excel:excel_biff8 fd://0 fd://1
and xls set inside gitattribute
While the clean filter works, the smudge filter does not. When git-checkout it said seek error 
 git ckeckout foo.xls
However git-show works as pipe to ssconvert
 git show HEAD:foo.xls | ssconvert --export-type=Gnumeric_Excel:excel_biff8 fd://0  newfoo.xls
I guess ssconvert was mistaken to believe that all data has been flushed too soon.
I tested with an xls that converted to gnumeric uncompress file size about 10MB and libgsf 1.14.11
PS. for older libgsf it needs to using a temp file to buffer data for ssconvert instead of using fd://0
-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩019 孟浩然  夏日南亭懷辛大
    山光忽西落  池月漸東上  散髮乘夜涼  開軒臥閑敞  荷風送香氣  竹露滴清響
    欲取鳴琴彈  恨無知音賞  感此懷故人  中宵勞夢想
Message 1 of 1 in “smudge filter problem”
  1. bill lamMar 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.