2

Is there a way to work with text files inside archives with git without persistently unpacking them?

Presumably to make git to think of archives like directories, with the means of git hooks or other comfortable way.

(I was thinking about mount points on both Win32 and Linux but I'm not sure if that could be made convenient, because each file should be individually mapped as I see it now.)

One application would be that git could work nicely with, say, ODT files. :)

n611x007
  • 8,952
  • 8
  • 59
  • 102

2 Answers2

1

I'd suggest you to read Pro Git's Diffing Binary Files sub-section. They give an example about diffing MS Word files, I think you would be able to work with it - maybe combining it with oodiff like VonC said.

Community
  • 1
  • 1
mgarciaisaia
  • 14,521
  • 8
  • 57
  • 81
0

Not really, because one of the main points of Git is to be fast, and that (working with, that is diff'ing, merging, branching with text files within archives) is not.

For ODT documents in particular, there has been some proposals, but the main one is to differ to a specialized tool for action like merging (like xmerge or oodiff).
(That, or using pure text-based format)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250