git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about --tree-filter
@ 2009-02-04 16:08 Sergio Callegari
  2009-02-04 16:37 ` Johannes Sixt
  0 siblings, 1 reply; 6+ messages in thread
From: Sergio Callegari @ 2009-02-04 16:08 UTC (permalink / raw)
  To: git

Hi,

in working with the "rezip" filter for the efficient git management of
openoffice, zip and docx files, I am encountering the following problem.

Suppose that you have an existing repository and that you want to convert it
into a repository using the rezip filters: git filter-branch should be the tool
to do the conversion.

Initially I believed that once set up the appropriate .git/config filter entries
and a .git/info/attributes file tying the filter to the appropriate file types,
it would have been enough to

git filter-branch --tree-filter true tag-name-filter cat

to do the conversion.
This is also what I suggested in my original post about the rezip script.

Unfortunately, this does not seem to work as expected.  Not all files get
rewritten as filtered blobs.  The only way to do the right job seems to use a
tree-filter that touches every single file in the project.

Any idea why it is so?

Also this is not very nice, because it makes the filter-branch result in a huge
amount of work. In other terms, the rezip blob rewriting gets called many many
times more than needed with this technique.

Does anybody have some suggestion of a tree filter that would be both "safe" and
"efficient" ?

Thanks

Sergio 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-05 13:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04 16:08 Question about --tree-filter Sergio Callegari
2009-02-04 16:37 ` Johannes Sixt
2009-02-04 20:42   ` Sergio Callegari
2009-02-05  8:32     ` Johannes Sixt
2009-02-05 13:13       ` Sergio Callegari
2009-02-05 13:57         ` Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).