diff options
author | Colin Walters <walters@verbum.org> | 2012-02-24 10:23:35 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-02-24 10:23:35 -0500 |
commit | a417ee3fed44c94a35f49c388e7107f766c9ac4e (patch) | |
tree | 334c82e95239722de3f226c27509b84bd788d1a1 /src/ostree/ot-builtins.h | |
parent | 4e3621236eabc98e62d5846781882a7a1ffe3993 (diff) | |
download | ostree-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.h | 1 |
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); |