binaryfiles - Can I use a git smudge/clean filter to convert binary file to multiple files and back? -


i have binary file can deserialized text representation along supporting image files.

can use smudge , clean conversion 1 file many, , again?

eg:

the binary file:

  • demo.bin

would deserialize to:

  • demo.txt (important able diffs on file)
  • demo.picture1.bmp
  • demo.picture2.gif

the short answer "no". longer answer more complicated: sure, can write such files work-tree want. cannot make them wind in index, though, definition untracked files. try overwrite existing index files fraught peril.

(both old style filter-driver , new-style filter-as-process expected / assumed (by git) work on 1 specified path @ time. using process method, perhaps delay touching index until filter terminated, before git assumes done whatever doing—whether requires smudging or cleaning.)


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -