SwiftGit2:Swift绑定到libgit2

时间:2024-06-02 15:17:55
【文件属性】:

文件名称:SwiftGit2:Swift绑定到libgit2

文件大小:2.12MB

文件格式:ZIP

更新时间:2024-06-02 15:17:55

Swift

SwiftGit2 Swift绑定到 。 let URL: URL = ... let result = Repository. at (URL) switch result { case let . success (repo) : let latestCommit = repo . HEAD () . flatMap { repo. commit ( $0 . oid ) } switch latestCommit { case let . success (commit) : print ( " Latest Commit: \( commit. message ) by \( commit. author . name ) " ) case let . fai


【文件预览】:
SwiftGit2-master
----.travis.yml(480B)
----Cartfile.resolved(140B)
----.gitmodules(805B)
----Carthage()
--------Checkouts()
----SwiftGit2.xcworkspace()
--------contents.xcworkspacedata(446B)
--------xcshareddata()
----.swiftlint.yml(2KB)
----libgit2()
--------git2.h(34B)
--------module.modulemap(547B)
--------git2(32B)
----SwiftGit2Tests()
--------FixturesSpec.swift(335B)
--------RepositorySpec.swift(33KB)
--------Fixtures()
--------RemotesSpec.swift(2KB)
--------ReferencesSpec.swift(6KB)
--------ObjectsSpec.swift(12KB)
--------ResultShims.swift(341B)
--------OIDSpec.swift(2KB)
--------Info.plist(733B)
----SwiftGit2.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(57KB)
--------xcshareddata()
----Cartfile.private(135B)
----External()
--------libcrypto.a(38B)
--------libssh2()
--------libgit2()
--------libssl.a(35B)
--------openssl()
----SwiftGit2()
--------Remotes.swift(622B)
--------Diffs.swift(4KB)
--------Objects.swift(6KB)
--------SwiftGit2.m(266B)
--------CheckoutStrategy.swift(4KB)
--------Repository.swift(32KB)
--------Pointers.swift(2KB)
--------SwiftGit2.h(494B)
--------Libgit2.swift(463B)
--------Credentials.swift(2KB)
--------OID.swift(1KB)
--------StatusOptions.swift(2KB)
--------Info.plist(913B)
--------CommitIterator.swift(2KB)
--------Errors.swift(2KB)
--------References.swift(5KB)
----LICENSE.md(1KB)
----.gitignore(670B)
----.hound.yml(90B)
----README.md(3KB)
----script()
--------bootstrap(3KB)
--------update_libgit2(748B)
--------update_libssl_ios(2KB)
--------update_libssh2_ios(2KB)
--------ios_build_functions.sh(2KB)
--------xcode_functions.sh(1017B)
--------update_libgit2_ios(2KB)
--------cibuild(3KB)
--------clean_externals(541B)

网友评论