git - Which output format of Libre Office can I use to track the history of my files? -
i thought of using fodt
output format tracking history of files using git scm.
but seems fodt quite verbose. example
- i generated file contains
hello wordld!
- i changed text
hello world.
- then checked diff.
- i found expected change:
<text:p text:style-name="p1">hello world!</text:p>
became<text:p text:style-name="p1">hello world.</text:p>
- besides there several more changes:
<config:config-item config:name="viewleft" config:type="long">7239</config:config-item>
became<config:config-item config:name="viewleft" config:type="long">7204</config:config-item>
.<config:config-item config:name="rsid" config:type="int">555044</config:config-item>
became:<config:config-item config:name="rsid" config:type="int">600727</config:config-item>
- and
<office:meta> <meta:initial-creator>user name</meta:initial-creator> <meta:creation-date>2016-07-25t16:27:51.917460530</meta:creation-date> <dc:date>2016-07-25t16:29:26.496847405</dc:date> <dc:creator>user name</dc:creator> <meta:editing-duration>pt28s</meta:editing-duration> <meta:editing-cycles>2</meta:editing-cycles> <meta:generator>libreoffice/5.0.3.2$linux_x86_64 libreoffice_project/00m0$build-2</meta:generator> <meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="1" meta:word-count="2" meta:character-count="12" meta:non-whitespace-character-count="11"/> </office:meta>
became: <office:meta> <meta:initial-creator>user name</meta:initial-creator> <meta:creation-date>2016-07-25t16:27:51.917460530</meta:creation-date> <dc:date>2016-07-25t16:32:10.113010925</dc:date> <dc:creator>user name</dc:creator> <meta:editing-duration>pt30s</meta:editing-duration> <meta:editing-cycles>3</meta:editing-cycles> <meta:generator>libreoffice/5.0.3.2$linux_x86_64 libreoffice_project/00m0$build-2</meta:generator> <meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="1" meta:word-count="2" meta:character-count="12" meta:non-whitespace-character-count="11"/> </office:meta>
i think changes in meta-data fine changes of config:config-item
make me think fodt not designed used vcs git.
is there less verbose format, or way reduce number of changes in xml-file minimum?
the description on https://help.libreoffice.org/common/xml_file_formats indicates, can influence output,...
rtf
files saved writer:
hello world!}{\rtlch \ltrch\loch
changed to:
hello world.}{\rtlch \ltrch\loch
the downside format besides .odt
limited can save.
Comments
Post a Comment