Skip to content

Instantly share code, notes, and snippets.

@AzenXu
Forked from magnusstahre/.gitattributes
Created May 28, 2018 07:37
Show Gist options
  • Save AzenXu/0fd04282f74e7f23c3235a64110ec67f to your computer and use it in GitHub Desktop.
Save AzenXu/0fd04282f74e7f23c3235a64110ec67f to your computer and use it in GitHub Desktop.
Displaying xmind files as text in git diff,blame,show etc.
*.xmind diff=xmind
[diff "xmind"]
textconv = /Users/ms/bin/xmindtotxt
#!/bin/sh
unzip -p $1 content.xml|xmlstarlet fo # xmlstarlet to pretty-print the xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment