Skip to content

Commit

Permalink
Change libgit2 to Clibgit2
Browse files Browse the repository at this point in the history
  • Loading branch information
muizidn committed Jul 14, 2019
1 parent 571cdef commit b87b66f
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.vscode/
.build/

# Xcode
#
build/
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/CheckoutStrategy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/CommitIterator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

import Foundation
import libgit2
import Clibgit2

public class CommitIterator: IteratorProtocol, Sequence {
public typealias Iterator = CommitIterator
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Credentials.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 GitHub, Inc. All rights reserved.
//

import libgit2
import Clibgit2

private class Wrapper<T> {
let value: T
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Diffs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2017 GitHub, Inc. All rights reserved.
//

import libgit2
import Clibgit2

public struct StatusEntry {
public var status: Diff.Status
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Errors.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import libgit2
import Clibgit2

public let libGit2ErrorDomain = "org.libgit2.libgit2"

Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Libgit2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/OID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Objects.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import Foundation
import libgit2
import Clibgit2

/// A git object.
public protocol ObjectType {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Pointers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/References.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Remotes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2/Repository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import Foundation
import libgit2
import Clibgit2

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

Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2Tests/ObjectsSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2Tests/ReferencesSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftGit2Tests/RemotesSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion libgit2/module.modulemap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module libgit2 {
module Clibgit2 {
umbrella header "git2.h"

export *
Expand Down

0 comments on commit b87b66f

Please sign in to comment.