From 568a8700d1cb9332004ab0e53bb384fc8dca4990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sat, 25 Sep 2021 15:20:27 +0200 Subject: [PATCH] Save git version in save file. Fixes #1280 --- src/lib/core/document/DocumentSerialization.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/core/document/DocumentSerialization.cpp b/src/lib/core/document/DocumentSerialization.cpp index 5fbe722ee6..5b359d78c0 100644 --- a/src/lib/core/document/DocumentSerialization.cpp +++ b/src/lib/core/document/DocumentSerialization.cpp @@ -22,6 +22,8 @@ #include #include +#include + #include #include #include @@ -88,6 +90,12 @@ void Document::saveAsJson(JSONObject::Serializer& writer) writer.stream.Int( context().app.applicationSettings.saveFormatVersion.value()); + writer.stream.Key("Commit"); + writer.stream.String(GIT_COMMIT); + + writer.stream.Key("Tag"); + writer.stream.String(SCORE_TAG_NO_V); + writer.stream.EndObject(); // Indicate in the stack that the current position is saved m_commandStack.markCurrentIndexAsSaved();