You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ReadOnlyStorage trait exposes some git2 types which allow mutation to the store. For example, a &mut reference to a git2::Reference will allow the caller to delete that reference.
It's not really possible to completely stop someone from doing this since they can always drop down through the git2 API (or any other for that matter), however, if we provide types that prohibit these actions then we can encourage someone from not doing something like that :)
The text was updated successfully, but these errors were encountered:
FintanH
changed the title
Review types exported by ReadOnly
Review types exposed by ReadOnly
Jun 19, 2021
The
ReadOnlyStorage
trait exposes somegit2
types which allow mutation to the store. For example, a&mut
reference to agit2::Reference
will allow the caller todelete
that reference.It's not really possible to completely stop someone from doing this since they can always drop down through the
git2
API (or any other for that matter), however, if we provide types that prohibit these actions then we can encourage someone from not doing something like that :)The text was updated successfully, but these errors were encountered: