如何获得Libre Office Writer保存的文件的有用git diff,并在命令行中输出? [英] How can I get useful git diff of files saved by Libre Office Writer, with output in the command line?

查看:111
本文介绍了如何获得Libre Office Writer保存的文件的有用git diff,并在命令行中输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认.odt文件的git diff默认版本未显示更改内容

Default version of git diff for default .odt files is not showing what was changed

二进制文件i/filename.odt和w/filename.odt不同

Binary files i/filename.odt and w/filename.odt differ

是否有办法显示真正更改的内容并保持文件可以由Libre Office直接编辑?

Is there a way to show what was really changed and keep file directly editable by Libre Office?

推荐答案

您还可以使用Libreoffice提出的平面xml格式.

You could also use the flat xml format proposed by Libreoffice.

.fodt文件格式.请参见图书馆和版本控制

The .fodt file format. See Libreoffice and version control or this answer that provides good links.

通过链接:

如果文档另存为.fodt文件,则与.odt保留相同的数据 文件将包含.只是这次数据被表示为 易于阅读的文本(这使得该版本的工作更加轻松 控制系统)且未压缩.因此,将文档另存为平面xml 使保持服务器空间要求和网络负载成为可能 低,以相对较低的成本在本地浪费了几千字节 硬盘.

If a document is saved as .fodt file it keeps the same data the .odt file would contain. Only that this time the data is represented as human-readable text (which makes the work much easier for the version control system) and not compressed. So saving a document as flat xml makes it possible to keep server space requirements and network load low at the relatively low cost of wasting a few kilobytes on the local hard disks.

这篇关于如何获得Libre Office Writer保存的文件的有用git diff,并在命令行中输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆