Switch to sync.RWMutex globally #30
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. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?