Name: "skip-custom-dir",
Usage: "Skip custom directory",
},
+ cli.BoolFlag{
+ Name: "skip-lfs-data",
+ Usage: "Skip LFS data",
+ },
+ cli.BoolFlag{
+ Name: "skip-attachment-data",
+ Usage: "Skip attachment data",
+ },
cli.GenericFlag{
Name: "type",
Value: outputTypeEnum,
fatal("Failed to include repositories: %v", err)
}
- if err := storage.LFS.IterateObjects(func(objPath string, object storage.Object) error {
+ if ctx.IsSet("skip-lfs-data") && ctx.Bool("skip-lfs-data") {
+ log.Info("Skip dumping LFS data")
+ } else if err := storage.LFS.IterateObjects(func(objPath string, object storage.Object) error {
info, err := object.Stat()
if err != nil {
return err
}
}
- if err := storage.Attachments.IterateObjects(func(objPath string, object storage.Object) error {
+ if ctx.IsSet("skip-attachment-data") && ctx.Bool("skip-attachment-data") {
+ log.Info("Skip dumping attachment data")
+ } else if err := storage.Attachments.IterateObjects(func(objPath string, object storage.Object) error {
info, err := object.Stat()
if err != nil {
return err