Merge pull request #158 from pondok-programmer/master

Swift Package Manager support without changing dependency.
This commit is contained in:
Matt Diephouse 2019-07-22 07:36:24 -04:00 committed by GitHub
commit c5cbf4cc17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 19 additions and 16 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
.vscode/
.build/
# Xcode
#
build/

View File

@ -6,7 +6,7 @@
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
/// The flags defining how a checkout should be performed.
/// More detail is available in the libgit2 documentation for `git_checkout_strategy_t`.

View File

@ -4,7 +4,7 @@
//
import Foundation
import libgit2
import Clibgit2
public class CommitIterator: IteratorProtocol, Sequence {
public typealias Iterator = CommitIterator

View File

@ -6,7 +6,7 @@
// Copyright © 2016 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
private class Wrapper<T> {
let value: T

View File

@ -6,7 +6,7 @@
// Copyright © 2017 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
public struct StatusEntry {
public var status: Diff.Status

View File

@ -1,5 +1,5 @@
import Foundation
import libgit2
import Clibgit2
public let libGit2ErrorDomain = "org.libgit2.libgit2"

View File

@ -6,7 +6,7 @@
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
extension git_strarray {
func filter(_ isIncluded: (String) -> Bool) -> [String] {

View File

@ -6,7 +6,7 @@
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
/// An identifier for a Git object.
public struct OID {

View File

@ -7,7 +7,7 @@
//
import Foundation
import libgit2
import Clibgit2
/// A git object.
public protocol ObjectType {

View File

@ -6,7 +6,7 @@
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
/// A pointer to a git object.
public protocol PointerType: Hashable {

View File

@ -6,7 +6,7 @@
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
/// A reference to a git object.
public protocol ReferenceType {

View File

@ -6,7 +6,7 @@
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
//
import libgit2
import Clibgit2
/// A remote in a git repository.
public struct Remote: Hashable {

View File

@ -7,7 +7,7 @@
//
import Foundation
import libgit2
import Clibgit2
public typealias CheckoutProgressBlock = (String?, Int, Int) -> Void

View File

@ -9,7 +9,7 @@
import SwiftGit2
import Nimble
import Quick
import libgit2
import Clibgit2
private extension Repository {
func withGitObject<T>(_ oid: OID, transform: (OpaquePointer) -> T) -> T {

View File

@ -9,7 +9,7 @@
import SwiftGit2
import Nimble
import Quick
import libgit2
import Clibgit2
private extension Repository {
func withGitReference<T>(named name: String, transform: (OpaquePointer) -> T) -> T {

View File

@ -9,7 +9,7 @@
import SwiftGit2
import Nimble
import Quick
import libgit2
import Clibgit2
private extension Repository {
func withGitRemote<T>(named name: String, transform: (OpaquePointer) -> T) -> T {

View File

@ -1,4 +1,4 @@
module libgit2 {
module Clibgit2 {
umbrella header "git2.h"
export *