man/prune, bash: Add --commit-only flag for ostree prune
authorSaqib Ali <saqali@redhat.com>
Tue, 8 Feb 2022 14:08:44 +0000 (09:08 -0500)
committerSaqib Ali <saqali@redhat.com>
Fri, 25 Feb 2022 23:32:25 +0000 (18:32 -0500)
Update the man page and the auto-complete script
to include the --commit-only flag

bash/ostree
man/ostree-prune.xml

index c990462fed894f974c17ab62306c049f8ffe4669..46363315c47ad1df9f22f749a16ca1b8a4cef2ba 100644 (file)
@@ -805,6 +805,7 @@ _ostree_prune() {
         --no-prune
         --refs-only
         --static-deltas-only
+        --commit-only
     "
 
     local options_with_args="
index e7e028abe2f6a58619cc4c2e9b63357f8403b6ef..341ac7fbec58451ddee1d0f5583f9ab50151e035 100644 (file)
@@ -120,6 +120,17 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
                   <option>--delete-commit</option>.
                 </para></listitem>
             </varlistentry>
+
+            <varlistentry>
+                <term><option>--commit-only</option></term>
+
+                <listitem><para>
+                    Only traverse and delete commit objects. This leaves orphaned meta and 
+                    content objects, which can be cleaned up with another prune invocation.
+                    One may want to use this option to cheaply delete multiple commits,
+                    and then clean up with a more expensive prune at the end.
+                </para></listitem>
+            </varlistentry>
         </variablelist>
     </refsect1>