summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtins.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-02-24 10:23:35 -0500
committerColin Walters <walters@verbum.org>2012-02-24 10:23:35 -0500
commita417ee3fed44c94a35f49c388e7107f766c9ac4e (patch)
tree334c82e95239722de3f226c27509b84bd788d1a1 /src/ostree/ot-builtins.h
parent4e3621236eabc98e62d5846781882a7a1ffe3993 (diff)
downloadostree-a417ee3fed44c94a35f49c388e7107f766c9ac4e.tar.gz
core: Add "prune" builtin
This should be useful on clients to trim old refs. For example, after an upgrade the system could do: ostree --repo=/ostree/repo prune --depth=2 gnomeos-3.4-i686-runtime This would remote all objects that aren't in the current build and the previous one.
Diffstat (limited to 'src/ostree/ot-builtins.h')
-rw-r--r--src/ostree/ot-builtins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ostree/ot-builtins.h b/src/ostree/ot-builtins.h
index b49a905f..f35b7e27 100644
--- a/src/ostree/ot-builtins.h
+++ b/src/ostree/ot-builtins.h
@@ -36,6 +36,7 @@ gboolean ostree_builtin_init (int argc, char **argv, GFile *repo_path, GError **
gboolean ostree_builtin_local_clone (int argc, char **argv, GFile *repo_path, GError **error);
gboolean ostree_builtin_log (int argc, char **argv, GFile *repo_path, GError **error);
gboolean ostree_builtin_ls (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error);
gboolean ostree_builtin_fsck (int argc, char **argv, GFile *repo_path, GError **error);
gboolean ostree_builtin_show (int argc, char **argv, GFile *repo_path, GError **error);
gboolean ostree_builtin_rev_parse (int argc, char **argv, GFile *repo_path, GError **error);