Switch to sync.RWMutex globally
I've noticed pretty much of all of the library functions use a
sync.Mutex to ensure safe concurrency, which is great. But I was thinking that using
sync.RWMutex would be better in all cases, since the mutex is invoked even when simply getting/reading a variable. Using
sync.RWMutex and changing relevant lines to
RUnlock would make the code more efficient.
Deleting a branch is permanent. It CANNOT be undone. Continue?