mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 22:18:12 +08:00
Embed git commit hash in the document file (#1325)
* Embed git commit hash in the document file * Bump version in test document file * Fixes --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Keavon Chambers
parent
8bdc64bb8b
commit
a49d96ed37
@@ -76,8 +76,12 @@ pub struct DocumentMessageHandler {
|
||||
|
||||
impl Default for DocumentMessageHandler {
|
||||
fn default() -> Self {
|
||||
let document_legacy = DocumentLegacy {
|
||||
commit_hash: crate::application::GRAPHITE_GIT_COMMIT_HASH.to_string(),
|
||||
..Default::default()
|
||||
};
|
||||
Self {
|
||||
document_legacy: DocumentLegacy::default(),
|
||||
document_legacy,
|
||||
saved_document_identifier: 0,
|
||||
auto_saved_document_identifier: 0,
|
||||
name: String::from("Untitled Document"),
|
||||
|
||||
Reference in New Issue
Block a user