mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
update for swift 4.0 nuances
This commit is contained in:
parent
6a59e6557e
commit
efe1d6eeeb
@ -1025,6 +1025,7 @@
|
|||||||
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
|
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
|
||||||
PRODUCT_NAME = SwiftGit2;
|
PRODUCT_NAME = SwiftGit2;
|
||||||
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
|
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
@ -1053,6 +1054,7 @@
|
|||||||
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
|
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
|
||||||
PRODUCT_NAME = SwiftGit2;
|
PRODUCT_NAME = SwiftGit2;
|
||||||
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
|
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -476,7 +476,7 @@ final public class Repository {
|
|||||||
guard result == GIT_OK.rawValue else {
|
guard result == GIT_OK.rawValue else {
|
||||||
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
|
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
|
||||||
}
|
}
|
||||||
return Result.success()
|
return Result.success(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set HEAD to the given reference.
|
/// Set HEAD to the given reference.
|
||||||
@ -488,7 +488,7 @@ final public class Repository {
|
|||||||
guard result == GIT_OK.rawValue else {
|
guard result == GIT_OK.rawValue else {
|
||||||
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
|
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
|
||||||
}
|
}
|
||||||
return Result.success()
|
return Result.success(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check out HEAD.
|
/// Check out HEAD.
|
||||||
@ -504,7 +504,7 @@ final public class Repository {
|
|||||||
return Result.failure(NSError(gitError: result, pointOfFailure: "git_checkout_head"))
|
return Result.failure(NSError(gitError: result, pointOfFailure: "git_checkout_head"))
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.success()
|
return Result.success(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check out the given OID.
|
/// Check out the given OID.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user