goback set
Delete or undelete a set, or show and change its retention
goback [global flags] set <command>set delete
Section titled “set delete”Close a set and retire its commits; –erase skips the trash window
goback [global flags] set delete [flags] <name>| Flag | Description | Environment | Default |
|---|---|---|---|
--erase |
tombstone the commits now instead of after the trash window |
set undelete
Section titled “set undelete”Reopen a set before its commits are tombstoned
goback [global flags] set undelete <name>set retention
Section titled “set retention”Show or change a set’s retention policy, or the store’s default when no name is given; a keep flag replaces the policy, –inherit removes it
goback [global flags] set retention [flags] [<name>]| Flag | Description | Environment | Default |
|---|---|---|---|
--keep-last value |
keep this many of the newest commits | ||
--keep value |
keep the last commit of each of the latest <count> calendar periods, given as <period>=<count>; repeat it for each bracket, newest first; the last bracket may omit its count to keep forever (–keep hourly=336 –keep daily=60 –keep weekly=12 –keep monthly) | ||
--keep-within value |
keep every commit younger than this | ||
--inherit |
remove the policy, so a set follows the store’s policy and the store follows the built-in one | ||
--trash-days value |
store only: how many days a deleted commit waits before it is tombstoned | -1 |