mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 01:38:11 +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
@@ -28,6 +28,8 @@ pub struct Document {
|
||||
pub state_identifier: DefaultHasher,
|
||||
#[serde(default)]
|
||||
pub document_network: graph_craft::document::NodeNetwork,
|
||||
#[serde(default)]
|
||||
pub commit_hash: String,
|
||||
}
|
||||
|
||||
impl PartialEq for Document {
|
||||
@@ -54,6 +56,7 @@ impl Default for Document {
|
||||
network.push_node(node, false);
|
||||
network
|
||||
},
|
||||
commit_hash: String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user