mirror of
https://github.com/restic/restic.git
synced 2025-11-16 03:33:37 +00:00
disable index uploads for prune command
+ modifications of changelog
This commit is contained in:
@@ -28,6 +28,7 @@ type Repository struct {
|
||||
keyName string
|
||||
idx *MasterIndex
|
||||
restic.Cache
|
||||
noAutoIndexUpdate bool
|
||||
|
||||
treePM *packerManager
|
||||
dataPM *packerManager
|
||||
@@ -45,6 +46,10 @@ func New(be restic.Backend) *Repository {
|
||||
return repo
|
||||
}
|
||||
|
||||
func (r *Repository) DisableAutoIndexUpdate() {
|
||||
r.noAutoIndexUpdate = true
|
||||
}
|
||||
|
||||
// Config returns the repository configuration.
|
||||
func (r *Repository) Config() restic.Config {
|
||||
return r.cfg
|
||||
|
||||
Reference in New Issue
Block a user