Jasper St. Pierre
8ac0f99ed6
repo-file: s/content_checksum/contents_checksum/
...
This is what we call it everywhere else, so just be consistent.
It also lines up with metadata_checksum better.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
2013-09-08 11:50:51 -04:00
Jasper St. Pierre
2506e8fb26
repo: Make commit_transaction introspectable
2013-09-07 01:46:50 -04:00
Jasper St. Pierre
3dcff0b2c4
Fix build
...
Before I pushed the "move code to a different file" commit, I rebased,
but forgot to test the build. Sorry.
2013-09-06 20:47:13 -04:00
Jasper St. Pierre
91d3b90c9f
Move ref writing to be transaction-based
...
Rather than having separate write_ref calls, make clients start a
transaction, add some refs, and then commit it. While this doesn't
make it 100% atomic, it makes it easier for us to use an atomic
model, and it means we don't do as much I/O updating the summary
file and such.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:12 -04:00
Jasper St. Pierre
bd2948e964
repo: Move the scanning hardlinks optimization out of prepare_transaction
...
This is just a terrible API to have. Make the scanning a separate method,
and document it as an optimization.
2013-09-06 20:31:12 -04:00
Jasper St. Pierre
f84504a8c4
repo: Make abort_transaction silently succeed if we're not in a transaction
...
This helps callers out a lot, and means we can always call abort_transaction
at the end of a function.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:12 -04:00
Jasper St. Pierre
ef61724269
repo: Move the transaction stats to a separate struct
...
This is much easier for callers to handle, and simplifies
the API a lot.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:12 -04:00
Jasper St. Pierre
5082e1d8e9
repo: Rename "stage" to "write" in the API
...
An earlier version of this API acted like git in that some objects
would be staged in a temporary directory which would be then committed
in one go by moving files around. The API doesn't match most users
expectations though, as while the stage is nice as a high-level API
it isn't really suited for low-level APIs.
While the stage was removed, the APIs were never renamed. Rename
them now so that they match expectations.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:12 -04:00
Jasper St. Pierre
c817217ad8
repo: Move commit code to another file
...
ostree-repo.c is a bit too big, and most of the commit code is
fairly standalone.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:11 -04:00
Jasper St. Pierre
89f4817bdf
repo: Make prepare_transaction introspectable
...
We need to document the out pointer as an out pointer.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:28:42 -04:00
Jasper St. Pierre
b36e61f813
repo: Make OSTreeCommitModifier introspectable
...
Callbacks need GDestroyNotifies to be usable from bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:28:42 -04:00
Jasper St. Pierre
f5f7fe5e9a
repo: Make the ordering consistent between abort/complete_transaction
...
This just makes the functions nicer to stare at.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:28:42 -04:00
Jasper St. Pierre
249add9c94
Update .gitignore
2013-09-05 18:18:54 -04:00
Jasper St. Pierre
93a611ff6d
Update docs
2013-09-05 17:59:02 -04:00
Jasper St. Pierre
02adfc8c03
repo: Rename ostree_repo_check to ostree_repo_open
...
As it more clearly describes what the function does: load the
repo from disk and initialize it.
At the same time, add a cancellable parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=707582
2013-09-05 14:07:03 -04:00
Jasper St. Pierre
57d285f619
repo: Move the 'init' builtin command to a public API, ostree_repo_create
...
This continues the goal of making more of ostree accessible by API,
rather than forking out to subprocesses.
https://bugzilla.gnome.org/show_bug.cgi?id=707582
2013-09-05 14:07:03 -04:00
Jasper St. Pierre
eb6f017ef8
repo: Use constructed, not constructor
...
It's simpler to do this after the object is constructed, rather
than in the middle of construction.
https://bugzilla.gnome.org/show_bug.cgi?id=707582
2013-09-05 13:54:36 -04:00
Jasper St. Pierre
33f232f76c
Update .gitignore
2013-09-05 00:21:05 -04:00
Jasper St. Pierre
52dd6b0b74
libostree: Make introspectable again
...
At some point, the variable name for the headers changed and the
introspection build line forgot to be updated.
https://bugzilla.gnome.org/show_bug.cgi?id=707228
2013-09-01 11:19:15 -04:00
Jasper St. Pierre
cda5b28bab
ot-main: Ignore lt- prefixes in binary names
...
libtool is the best
https://bugzilla.gnome.org/show_bug.cgi?id=682438
2012-10-24 12:20:15 -04:00