Skip to content

Git textconv program to dump a zip file's text contents to stdout for better diff

License

Notifications You must be signed in to change notification settings

costerwi/zipdoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZipDoc

A Git textconv program to dump a ZIP files contents as text to stdout.

Install

Store ZipDoc.class somewhere in your home directory, for example ~/bin (use this path when "java -cp ~/bin ZipDoc" is used).

Define the diff filter in ~/.gitconfig:

git config --global --replace-all diff.zipdoc.textconv "java -cp ~/bin ZipDoc"

Assign diff attributes to paths in .gitattributes or in <repro-dir>/.git/info/attributes for specific repository only. (also assigning the rezip filter for efficient storage):

# MS Office
*.docx  filter=zip diff=zipdoc
*.xlsx  filter=zip diff=zipdoc
*.pptx  filter=zip diff=zipdoc
# OpenOffice
*.odt   filter=zip diff=zipdoc
*.ods   filter=zip diff=zipdoc
*.odp   filter=zip diff=zipdoc
# Misc
*.mcdx  filter=zip diff=zipdoc
*.slx   filter=zip diff=zipdoc
*.epub	filter=zip diff=zipdoc

About

Git textconv program to dump a zip file's text contents to stdout for better diff

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages