| 33 | var _ TestedRepo = &GoGitRepo{} |
| 34 | |
| 35 | type GoGitRepo struct { |
| 36 | // Unfortunately, some parts of go-git are not thread-safe so we have to cover them with a big fat mutex here. |
| 37 | // See https://github.com/go-git/go-git/issues/48 |
| 38 | // See https://github.com/go-git/go-git/issues/208 |
| 39 | // See https://github.com/go-git/go-git/pull/186 |
| 40 | rMutex sync.Mutex |
| 41 | r *gogit.Repository |
| 42 | path string |
| 43 | |
| 44 | clocksMutex sync.Mutex |
| 45 | clocks map[string]lamport.Clock |
| 46 | |
| 47 | indexesMutex sync.Mutex |
| 48 | indexes map[string]Index |
| 49 | |
| 50 | keyring Keyring |
| 51 | localStorage LocalStorage |
| 52 | } |
| 53 | |
| 54 | // OpenGoGitRepo opens an already existing repo at the given path and |
| 55 | // with the specified LocalStorage namespace. Given a repository path |
nothing calls this directly
no outgoing calls
no test coverage detected