Commit fb74da6ce7f458889d96836cca19c587a23d5162

Authored by Shrikant Sharat
1 parent 2c2f91c92d

Add some notes on `-snapshot` and `-restore`.

Showing 1 changed file with 23 additions and 0 deletions Side-by-side Diff

... ... @@ -415,6 +415,29 @@ you have a good number of bundle specifications.
415 415 However, if you can suggest a way so that this would not be necessary, I am very
416 416 interested in discussing it. Please open up an issue with your details. Thanks.
417 417  
  418 +### antigen-snapshot <sup>&alpha;</sup>
  419 +
  420 +Creates a snapshot of all the clones you currently have *active* including the
  421 +git version hash they are at and save it to a snapshot file. *Active* means, the
  422 +clones for those listed by `antigen-cleanup` are not included in the snapshot.
  423 +
  424 +Takes one optional argument, the file name in which the snapshot is to be saved.
  425 +Defaults to `antigen-snapshot`.
  426 +
  427 +**Note**: The snapshot currently *only* contains the details of those bundles
  428 +that have a clone. That is, bundles that have `--no-local-clone` set or are
  429 +directly sourced from your file system (without a git repo), are not recorded
  430 +in the snapshot file.
  431 +
  432 +### antigen-restore <sup>&alpha;</sup>
  433 +
  434 +Restore the bundles state as specified in the snapshot. Takes one required
  435 +argument, the snapshot file name to read.
  436 +
  437 +Although it restores the clones of the repos specified in the snapshot file, any
  438 +other clones present in your environment are not touched. This behavior may
  439 +change in the future.
  440 +
418 441 ### antigen-help
419 442  
420 443 This exists so that there can be some help right in the command line. Currently