Git & OpenDocument
Alex Volkov
avolkov-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Feb 10 02:54:51 UTC 2011
Hello everyone,
A follow up on a question raised yesterday -- diffs on open office
documents. After a quick googling I found a solution:
* Install odt2txt package
* add following lines to ~/.gitconfig
[diff "odf"]
textconv=odt2txt
* add following lines to .gitattributes or $GIT_DIR/info/attributes
*.ods diff=odf
*.odt diff=odf
*.odp diff=odf
And you're done.
Formatting looks a bit interesting and a line of text shows up in 'git
diff' only if it is followed by an empty line, but generally it works.
Source: http://www-verimag.imag.fr/~moy/opendocument/
Alex.
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list