mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
make unsafe functions internal
This commit is contained in:
parent
b6e94b291c
commit
81d2fb210a
@ -584,7 +584,7 @@ final public class Repository {
|
||||
}
|
||||
|
||||
/// Get the index for the repo. The caller is responsible for freeing the index.
|
||||
public func unsafeIndex() -> Result<OpaquePointer, NSError> {
|
||||
func unsafeIndex() -> Result<OpaquePointer, NSError> {
|
||||
var index: OpaquePointer? = nil
|
||||
let result = git_repository_index(&index, self.pointer)
|
||||
guard result == GIT_OK.rawValue && index != nil else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user