From: bill lam <cbill.lam@gmail•com>
To: git <git@vger•kernel.org>
Subject: smudge filter problem
Date: Sun, 1 Mar 2009 18:18:23 +0800 [thread overview]
Message-ID: <20090301101823.GA7466@b2j> (raw)
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 孟浩然 夏日南亭懷辛大
山光忽西落 池月漸東上 散髮乘夜涼 開軒臥閑敞 荷風送香氣 竹露滴清響
欲取鳴琴彈 恨無知音賞 感此懷故人 中宵勞夢想
reply other threads:[~2009-03-01 10:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090301101823.GA7466@b2j \
--to=cbill.lam@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox