We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

git version control in LibreOffice [closed]

asked 2015-12-14 12:05:08 +0200

trosendal gravatar image

updated 2021-06-22 02:14:20 +0200

Alex Kemp gravatar image

Use libgit2 in LibreOffice.

  • When you enable version control on your document then the document becomes a git repository and every save is a commit.
  • When you get someone else's changes to the document you 'fetch' and 'merge' their new commits. The other party could do the same by merging your commits in their clone.
  • Because it is a git repository it could be linked to a github repository (or local server) that people can collaborate on but also work offline when they need to.
  • Track changes is a view of 'git blame' and the version history in a plot of the repository tree.

Why re-invent version control when 'libgit2' gives you an api you can bundle with you software?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-28 00:44:21.550279


I haven't dug into this yet - I probably will if I use Libreoffice extensively - but it seems that there are some ways to get some versioning working without a major reformat

Take a look at https://github.com/Nicola17/ODT-Git-h... and https://web.archive.org/web/201801070...

jcrben gravatar imagejcrben ( 2018-03-12 01:08:55 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-12-15 10:15:30 +0200

Regina gravatar image

If you have good ideas how to bring the ODF file format in its zip-kind into Git, please share it. If you can work out which changes to the ODF file format in its flat kind are necessary to get a good handling in Git, please share it. There are currently discussions in the ODF TC about that.

"the document becomes a git repository" will only be possible when changing the ODF standard. A LibreOffice user forum is the wrong place to discuss it. For contact the ODF TC start at https://www.oasis-open.org/committees...

edit flag offensive delete link more

Question Tools



Asked: 2015-12-14 12:05:08 +0200

Seen: 5,079 times

Last updated: Dec 15 '15