vacate

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &charm.Spec{
	Name:  "vacate",
	Usage: "vacate [options] commit",
	Short: "compact a pool's commit history by squashing old commit objects",
	Long: `
The vacate command compacts the commit history by squashing all of the commit
objects in the history up to the indicated commit and removing the old commits.
No other commit objects in the pool may point at any of the squashed commits.
In particular, no branch may point to any commit that would be deleted.

The branch history may contain pointers to old commit objects, but any attempt
to access them will fail as the underlying commit history will be no longer available.

DANGER ZONE.
There is no prompting or second chances here so use carefully.
Once the pool's commit history has been squashed and old commits is deleted,
they cannot be recovered.
`,
	New: New,
}

Functions

func New

func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

Types

type Command

type Command struct {
	*root.Command
}

func (*Command) Run

func (c *Command) Run(args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL