gpt4 book ai didi

git - 如何获得 Libre Office Writer 保存的文件的有用 git diff,并在命令行中输出?

转载 作者:行者123 更新时间:2023-12-02 14:55:58 25 4
gpt4 key购买 nike

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

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

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

最佳答案

您也可以使用 Libreoffice 推荐的平面 xml 格式。

.fodt 文件格式。参见 Libreoffice and version controlthis answer提供良好的链接。

来自链接:

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

请注意,微小的更改通常仍会导致巨大的差异,因此它并不能完全解决问题。

关于git - 如何获得 Libre Office Writer 保存的文件的有用 git diff,并在命令行中输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52873519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com