Skip to content

Commit b87b66f

Browse files
committed
Change libgit2 to Clibgit2
1 parent 571cdef commit b87b66f

17 files changed

+19
-16
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.vscode/
2+
.build/
3+
14
# Xcode
25
#
36
build/

Diff for: SwiftGit2/CheckoutStrategy.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
/// The flags defining how a checkout should be performed.
1212
/// More detail is available in the libgit2 documentation for `git_checkout_strategy_t`.

Diff for: SwiftGit2/CommitIterator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55

66
import Foundation
7-
import libgit2
7+
import Clibgit2
88

99
public class CommitIterator: IteratorProtocol, Sequence {
1010
public typealias Iterator = CommitIterator

Diff for: SwiftGit2/Credentials.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2016 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
private class Wrapper<T> {
1212
let value: T

Diff for: SwiftGit2/Diffs.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2017 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
public struct StatusEntry {
1212
public var status: Diff.Status

Diff for: SwiftGit2/Errors.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
import libgit2
2+
import Clibgit2
33

44
public let libGit2ErrorDomain = "org.libgit2.libgit2"
55

Diff for: SwiftGit2/Libgit2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
extension git_strarray {
1212
func filter(_ isIncluded: (String) -> Bool) -> [String] {

Diff for: SwiftGit2/OID.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
/// An identifier for a Git object.
1212
public struct OID {

Diff for: SwiftGit2/Objects.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import libgit2
10+
import Clibgit2
1111

1212
/// A git object.
1313
public protocol ObjectType {

Diff for: SwiftGit2/Pointers.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
/// A pointer to a git object.
1212
public protocol PointerType: Hashable {

Diff for: SwiftGit2/References.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
/// A reference to a git object.
1212
public protocol ReferenceType {

Diff for: SwiftGit2/Remotes.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
77
//
88

9-
import libgit2
9+
import Clibgit2
1010

1111
/// A remote in a git repository.
1212
public struct Remote: Hashable {

Diff for: SwiftGit2/Repository.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import libgit2
10+
import Clibgit2
1111

1212
public typealias CheckoutProgressBlock = (String?, Int, Int) -> Void
1313

Diff for: SwiftGit2Tests/ObjectsSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftGit2
1010
import Nimble
1111
import Quick
12-
import libgit2
12+
import Clibgit2
1313

1414
private extension Repository {
1515
func withGitObject<T>(_ oid: OID, transform: (OpaquePointer) -> T) -> T {

Diff for: SwiftGit2Tests/ReferencesSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftGit2
1010
import Nimble
1111
import Quick
12-
import libgit2
12+
import Clibgit2
1313

1414
private extension Repository {
1515
func withGitReference<T>(named name: String, transform: (OpaquePointer) -> T) -> T {

Diff for: SwiftGit2Tests/RemotesSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftGit2
1010
import Nimble
1111
import Quick
12-
import libgit2
12+
import Clibgit2
1313

1414
private extension Repository {
1515
func withGitRemote<T>(named name: String, transform: (OpaquePointer) -> T) -> T {

Diff for: libgit2/module.modulemap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module libgit2 {
1+
module Clibgit2 {
22
umbrella header "git2.h"
33

44
export *

0 commit comments

Comments
 (0)