From 610940ae5d78e98d720267c7d32cbaac546d6be8 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 7 Feb 2014 13:50:20 +0400 Subject: [PATCH] Mention create empty in command help. --- cmd_snapshot.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd_snapshot.go b/cmd_snapshot.go index 3f22b66b..b446944d 100644 --- a/cmd_snapshot.go +++ b/cmd_snapshot.go @@ -557,12 +557,15 @@ func aptlySnapshotDrop(cmd *commander.Command, args []string) error { func makeCmdSnapshotCreate() *commander.Command { cmd := &commander.Command{ Run: aptlySnapshotCreate, - UsageLine: "create from mirror ", - Short: "creates snapshot out of any mirror", + UsageLine: "create from mirror | create empty", + Short: "creates immutable snapshot of mirror contents", Long: ` -Command create makes persistent immutable snapshot of remote repository mirror. Snapshot could be +Command create .. from mirror makes persistent immutable snapshot of remote repository mirror. Snapshot could be published or further modified using merge, pull and other aptly features. +Command create .. empty creates empty snapshot that could be used as a basis for snapshot pull operations, for example. +As snapshots are immutable, creating one empty snapshot should be enough. + ex. $ aptly snapshot create wheezy-main-today from mirror wheezy-main `,