Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git2 framework+module #1

Closed
wants to merge 13 commits into from
Closed
67 changes: 0 additions & 67 deletions ObjectiveGit.modulemap
Original file line number Diff line number Diff line change
@@ -1,73 +1,6 @@
framework module ObjectiveGit {
umbrella header "ObjectiveGit.h"

header "git2/attr.h"
header "git2/blob.h"
header "git2/blame.h"
header "git2/branch.h"
header "git2/buffer.h"
header "git2/checkout.h"
header "git2/cherrypick.h"
header "git2/clone.h"
header "git2/commit.h"
header "git2/common.h"
header "git2/config.h"
header "git2/describe.h"
header "git2/diff.h"
header "git2/errors.h"
header "git2/filter.h"
header "git2/graph.h"
header "git2/ignore.h"
header "git2/index.h"
header "git2/indexer.h"
header "git2/merge.h"
header "git2/message.h"
header "git2/net.h"
header "git2/notes.h"
header "git2/object.h"
header "git2/odb.h"
header "git2/odb_backend.h"
header "git2/oid.h"
header "git2/pack.h"
header "git2/patch.h"
header "git2/pathspec.h"
header "git2/refdb.h"
header "git2/reflog.h"
header "git2/refs.h"
header "git2/refspec.h"
header "git2/remote.h"
header "git2/repository.h"
header "git2/reset.h"
header "git2/revert.h"
header "git2/revparse.h"
header "git2/revwalk.h"
header "git2/signature.h"
header "git2/stash.h"
header "git2/status.h"
header "git2/submodule.h"
header "git2/tag.h"
header "git2/transport.h"
header "git2/tree.h"
header "git2/types.h"
header "git2/version.h"
header "git2/sys/commit.h"
header "git2/sys/config.h"
header "git2/sys/diff.h"
header "git2/sys/filter.h"
header "git2/sys/hashsig.h"
header "git2/sys/index.h"
header "git2/sys/mempack.h"
header "git2/sys/odb_backend.h"
header "git2/sys/refdb_backend.h"
header "git2/sys/reflog.h"
header "git2/sys/refs.h"
header "git2/sys/repository.h"
header "git2/sys/transport.h"
header "git2/cred_helpers.h"
header "git2/sys/openssl.h"
header "git2/sys/stream.h"
header "git2/trace.h"

export *
module * { export * }
}
2 changes: 1 addition & 1 deletion ObjectiveGit/ObjectiveGit.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//

#import <Foundation/Foundation.h>
#import "git2.h"
#import <git2/git2.h>

//! Project version number for ObjectiveGit.
FOUNDATION_EXPORT double ObjectiveGitVersionNumber;
Expand Down
600 changes: 475 additions & 125 deletions ObjectiveGitFramework.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions git2/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
98 changes: 98 additions & 0 deletions git2/git2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
//
// git2.h
// git2
//
// Created by Ben Chatelain on 7/25/15.
// Copyright © 2015 GitHub, Inc. All rights reserved.
//

@import Foundation;

//! Project version number for git2.
FOUNDATION_EXPORT double git2VersionNumber;

//! Project version string for git2.
FOUNDATION_EXPORT const unsigned char git2VersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <git2/PublicHeader.h>

// Headers from libit2/git2.h
#import <git2/annotated_commit.h>
#import <git2/attr.h>
#import <git2/blob.h>
#import <git2/blame.h>
#import <git2/branch.h>
#import <git2/buffer.h>
#import <git2/checkout.h>
#import <git2/cherrypick.h>
#import <git2/clone.h>
#import <git2/commit.h>
#import <git2/common.h>
#import <git2/config.h>
#import <git2/describe.h>
#import <git2/diff.h>
#import <git2/errors.h>
#import <git2/filter.h>
#import <git2/global.h>
#import <git2/graph.h>
#import <git2/ignore.h>
#import <git2/index.h>
#import <git2/indexer.h>
#import <git2/merge.h>
#import <git2/message.h>
#import <git2/net.h>
#import <git2/notes.h>
#import <git2/object.h>
#import <git2/odb.h>
#import <git2/odb_backend.h>
#import <git2/oid.h>
#import <git2/pack.h>
#import <git2/patch.h>
#import <git2/pathspec.h>
#import <git2/rebase.h>
#import <git2/refdb.h>
#import <git2/reflog.h>
#import <git2/refs.h>
#import <git2/refspec.h>
#import <git2/remote.h>
#import <git2/repository.h>
#import <git2/reset.h>
#import <git2/revert.h>
#import <git2/revparse.h>
#import <git2/revwalk.h>
#import <git2/signature.h>
#import <git2/stash.h>
#import <git2/status.h>
#import <git2/submodule.h>
#import <git2/tag.h>
#import <git2/transport.h>
#import <git2/transaction.h>
#import <git2/tree.h>
#import <git2/types.h>
#import <git2/version.h>

// Other headers
#import <git2/cred_helpers.h>
#import <git2/oidarray.h>
#import <git2/strarray.h>
#import <git2/trace.h>

#import <git2/sys/commit.h>
#import <git2/sys/config.h>
#import <git2/sys/diff.h>
#import <git2/sys/filter.h>
#import <git2/sys/hashsig.h>
#import <git2/sys/index.h>
#import <git2/sys/mempack.h>
#import <git2/sys/odb_backend.h>
#import <git2/sys/openssl.h>
#import <git2/sys/refdb_backend.h>
#import <git2/sys/reflog.h>
#import <git2/sys/refs.h>
#import <git2/sys/repository.h>
#import <git2/sys/stream.h>
#import <git2/sys/transport.h>

// Microsoft platforms
//#import <git2/inttypes.h>
//#import <git2/stdint.h>
86 changes: 86 additions & 0 deletions git2/git2.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
framework module git2 {
umbrella header "git2.h"

// libgit2/git2.h
header "annotated_commit.h"
header "attr.h"
header "blob.h"
header "blame.h"
header "branch.h"
header "buffer.h"
header "checkout.h"
header "cherrypick.h"
header "clone.h"
header "commit.h"
header "common.h"
header "config.h"
header "describe.h"
header "diff.h"
header "errors.h"
header "filter.h"
header "global.h"
header "graph.h"
header "ignore.h"
header "index.h"
header "indexer.h"
header "merge.h"
header "message.h"
header "net.h"
header "notes.h"
header "object.h"
header "odb.h"
header "odb_backend.h"
header "oid.h"
header "pack.h"
header "patch.h"
header "pathspec.h"
header "rebase.h"
header "refdb.h"
header "reflog.h"
header "refs.h"
header "refspec.h"
header "remote.h"
header "repository.h"
header "reset.h"
header "revert.h"
header "revparse.h"
header "revwalk.h"
header "signature.h"
header "stash.h"
header "status.h"
header "submodule.h"
header "tag.h"
header "transport.h"
header "transaction.h"
header "tree.h"
header "types.h"
header "version.h"

// Other headers
header "cred_helpers.h"
header "oidarray.h"
header "strarray.h"
header "trace.h"

module sys {
header "sys/commit.h"
header "sys/config.h"
header "sys/diff.h"
header "sys/filter.h"
header "sys/hashsig.h"
header "sys/index.h"
header "sys/mempack.h"
header "sys/odb_backend.h"
header "sys/openssl.h"
header "sys/refdb_backend.h"
header "sys/reflog.h"
header "sys/refs.h"
header "sys/repository.h"
header "sys/stream.h"
header "sys/transport.h"

export *
}

export *
}
Loading