Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from hinshun/pin-rm-docs
Browse files Browse the repository at this point in the history
Update Pin.RmRecursive docs to clarify shared indirect pins are not removed
  • Loading branch information
magik6k authored Apr 4, 2019
2 parents 9ebc112 + c908a05 commit c140b0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion options/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ func (pinOpts) Recursive(recursive bool) PinAddOption {
}
}

// RmRecursive is an option for Pin.Rm
// RmRecursive is an option for Pin.Rm which specifies whether to recursively
// unpin the object linked to by the specified object(s). This does not remove
// indirect pins referenced by other recursive pins.
func (pinOpts) RmRecursive(recursive bool) PinRmOption {
return func(settings *PinRmSettings) error {
settings.Recursive = recursive
Expand Down

0 comments on commit c140b0f

Please sign in to comment.