-
Notifications
You must be signed in to change notification settings - Fork 51
Enno edited this page Jul 7, 2019
·
2 revisions
To diff common binary files, such as pdf
and Microsoft Office documents, in git
, add to git/attributes
, for example,
*.pdf diff=lesspipe
*.odt diff=lesspipe
*.doc diff=lesspipe
*.xls diff=lesspipe
*.ppt diff=lesspipe
*.docx diff=lesspipe
*.xlsx diff=lesspipe
*.pptx diff=lesspipe
*.rtf diff=lesspipe
*.epub diff=lesspipe
*.{jar,ja} diff=lesspipe
*.{rar,7z,zip} diff=lesspipe
*.gif diff=lesspipe
*.png diff=lesspipe
*.{jpg,jpeg} diff=lesspipe
and to git/config
[diff "lesspipe"]
textconv = LESSQUIET=1 lesspipe.sh
binary = true
cachetextconv = true