core: Add API (and standard concept for) content checksum
There are a few cases for knowing whether a commit has identical content to another commit. Some people want to do a "promotion workflow", where the content of a commit on a tesitng branch is then "promoted" to a production branch with `ostree commit --tree=ref`. Another use case I just hit in rpm-ostree deals with [jigdo](https://github.com/projectatomic/rpm-ostree/issues/1081) where we're importing RPMs on both the client and server, and will be using the content checksum, since the client/server cases inject different metadata into the commit object. Closes: https://github.com/ostreedev/ostree/issues/1315 Closes: #1449 Approved by: jlebon
This commit is contained in:
1 parent
5848de93a4
commit
0041a7a1ed
6 files changed
+63
-1
No files matched your search
@@ -149,6 +149,7 @@ ostree_validate_structureof_dirtree
|
||||
ostree_validate_structureof_dirmeta
|
||||
ostree_commit_get_parent
|
||||
ostree_commit_get_timestamp
|
||||
ostree_commit_get_content_checksum
|
||||
ostree_check_version
|
||||
</SECTION>
|
||||
|
||||
|
||||
Reference in new issue
Block a user