From 9c4870b5e1512e2e8ceb2be913c7e93f0999462a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 8 Nov 2017 15:10:31 +0000 Subject: [PATCH] lib/repo: Add OSTREE_REPO_COMMIT_STATE_NORMAL to represent most commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows more explicit handling of commit state in code using libostree, rather than hard-coding a commit state of 0 for ‘normal’. Signed-off-by: Philip Withnall Closes: #1335 Approved by: cgwalters --- src/libostree/ostree-repo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h index 15e5f94e..9a1b65ae 100644 --- a/src/libostree/ostree-repo.h +++ b/src/libostree/ostree-repo.h @@ -540,6 +540,7 @@ gboolean ostree_repo_load_variant_if_exists (OstreeRepo *self, GError **error); typedef enum { + OSTREE_REPO_COMMIT_STATE_NORMAL = 0, OSTREE_REPO_COMMIT_STATE_PARTIAL = (1 << 0), } OstreeRepoCommitState;