From 6eec70d854cdf1c65577f050fcbdcded67e76d00 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sat, 19 Sep 2026 11:50:54 +0200 Subject: [PATCH 1/2] Remove a flood of maybe irrelavant warnings --- ObjectiveGit/GTBlob.h | 2 +- ObjectiveGit/GTBranch.h | 2 +- ObjectiveGit/GTCommit.h | 2 +- ObjectiveGit/GTConfiguration+Private.h | 2 +- ObjectiveGit/GTCredential+Private.h | 2 +- ObjectiveGit/GTDiff+Private.h | 2 +- ObjectiveGit/GTDiff.h | 2 +- ObjectiveGit/GTEnumerator.h | 2 +- ObjectiveGit/GTIndexEntry.h | 2 +- ObjectiveGit/GTObjectDatabase.h | 2 +- ObjectiveGit/GTOdbObject.h | 2 +- ObjectiveGit/GTReference.h | 2 +- ObjectiveGit/GTReflog+Private.h | 2 +- ObjectiveGit/GTReflogEntry+Private.h | 2 +- ObjectiveGit/GTRepository+Attributes.h | 2 +- ObjectiveGit/GTRepository+Blame.h | 2 +- ObjectiveGit/GTRepository+Committing.h | 2 +- ObjectiveGit/GTRepository+Merging.h | 4 ++-- ObjectiveGit/GTRepository+Private.h | 2 +- ObjectiveGit/GTRepository+Pull.h | 2 +- ObjectiveGit/GTRepository+References.h | 2 +- ObjectiveGit/GTRepository+RemoteOperations.h | 2 +- ObjectiveGit/GTRepository+Reset.h | 2 +- ObjectiveGit/GTRepository+Stashing.h | 2 +- ObjectiveGit/GTRepository+Status.h | 2 +- ObjectiveGit/GTRepository.h | 14 +++++++------- ObjectiveGit/GTSignature.h | 2 +- ObjectiveGit/GTSubmodule.h | 2 +- ObjectiveGit/GTTag.h | 2 +- ObjectiveGit/GTTree.h | 2 +- ObjectiveGit/GTTreeEntry.h | 2 +- ObjectiveGitFramework.xcodeproj/project.pbxproj | 8 ++++---- 32 files changed, 42 insertions(+), 42 deletions(-) diff --git a/ObjectiveGit/GTBlob.h b/ObjectiveGit/GTBlob.h index 6865ee8a6..034a2fa32 100644 --- a/ObjectiveGit/GTBlob.h +++ b/ObjectiveGit/GTBlob.h @@ -28,7 +28,7 @@ // -#import "GTObject.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTBranch.h b/ObjectiveGit/GTBranch.h index 3b3be239d..b427d10ca 100644 --- a/ObjectiveGit/GTBranch.h +++ b/ObjectiveGit/GTBranch.h @@ -23,7 +23,7 @@ // THE SOFTWARE. // -#import "GTObject.h" +#import @class GTCommit; @class GTReference; diff --git a/ObjectiveGit/GTCommit.h b/ObjectiveGit/GTCommit.h index c9a666b76..ffec8fd4b 100644 --- a/ObjectiveGit/GTCommit.h +++ b/ObjectiveGit/GTCommit.h @@ -28,7 +28,7 @@ // -#import "GTObject.h" +#import @class GTSignature; @class GTTree; diff --git a/ObjectiveGit/GTConfiguration+Private.h b/ObjectiveGit/GTConfiguration+Private.h index 03b6f4f12..3c6aa2921 100644 --- a/ObjectiveGit/GTConfiguration+Private.h +++ b/ObjectiveGit/GTConfiguration+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2012 GitHub, Inc. All rights reserved. // -#import "GTConfiguration.h" +#import @class GTRepository; diff --git a/ObjectiveGit/GTCredential+Private.h b/ObjectiveGit/GTCredential+Private.h index 33a546359..24ec7603b 100644 --- a/ObjectiveGit/GTCredential+Private.h +++ b/ObjectiveGit/GTCredential+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTCredential.h" +#import // If you need to authenticate an operation in libgit2, you'll have to have // a `GTCredentialProvider` handy, like a parameter in the method you're writing, diff --git a/ObjectiveGit/GTDiff+Private.h b/ObjectiveGit/GTDiff+Private.h index bcf640921..80bfaf6be 100644 --- a/ObjectiveGit/GTDiff+Private.h +++ b/ObjectiveGit/GTDiff+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2014 GitHub, Inc. All rights reserved. // -#import "GTDiff.h" +#import @interface GTDiff () diff --git a/ObjectiveGit/GTDiff.h b/ObjectiveGit/GTDiff.h index 1ced8f0a3..d44000ef0 100644 --- a/ObjectiveGit/GTDiff.h +++ b/ObjectiveGit/GTDiff.h @@ -8,7 +8,7 @@ #import #import -#import "GTDiffDelta.h" +#import @class GTDiffDelta; @class GTRepository; diff --git a/ObjectiveGit/GTEnumerator.h b/ObjectiveGit/GTEnumerator.h index 4128517de..63c4ac901 100644 --- a/ObjectiveGit/GTEnumerator.h +++ b/ObjectiveGit/GTEnumerator.h @@ -28,7 +28,7 @@ // #import -#import "GTObject.h" +#import #import /// Options to specify enumeration order when enumerating through a repository. diff --git a/ObjectiveGit/GTIndexEntry.h b/ObjectiveGit/GTIndexEntry.h index c2cdc700c..4447fa103 100644 --- a/ObjectiveGit/GTIndexEntry.h +++ b/ObjectiveGit/GTIndexEntry.h @@ -29,7 +29,7 @@ #import #include -#import "GTObject.h" +#import @class GTIndex; diff --git a/ObjectiveGit/GTObjectDatabase.h b/ObjectiveGit/GTObjectDatabase.h index c111d8b6a..66d7ac86d 100644 --- a/ObjectiveGit/GTObjectDatabase.h +++ b/ObjectiveGit/GTObjectDatabase.h @@ -23,7 +23,7 @@ // THE SOFTWARE. // -#import "GTObject.h" +#import @class GTOID; diff --git a/ObjectiveGit/GTOdbObject.h b/ObjectiveGit/GTOdbObject.h index 389bce721..a35668a74 100644 --- a/ObjectiveGit/GTOdbObject.h +++ b/ObjectiveGit/GTOdbObject.h @@ -6,7 +6,7 @@ // Copyright 2011 GitHub, Inc. All rights reserved. // -#import "GTObject.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTReference.h b/ObjectiveGit/GTReference.h index 6f00ee76a..e6147c7d8 100644 --- a/ObjectiveGit/GTReference.h +++ b/ObjectiveGit/GTReference.h @@ -23,7 +23,7 @@ // THE SOFTWARE. // -#import "GTObject.h" +#import #import @class GTOID; diff --git a/ObjectiveGit/GTReflog+Private.h b/ObjectiveGit/GTReflog+Private.h index 812cad515..6434d8c90 100644 --- a/ObjectiveGit/GTReflog+Private.h +++ b/ObjectiveGit/GTReflog+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTReflog.h" +#import @interface GTReflog () diff --git a/ObjectiveGit/GTReflogEntry+Private.h b/ObjectiveGit/GTReflogEntry+Private.h index 1cdece7eb..c9630872a 100644 --- a/ObjectiveGit/GTReflogEntry+Private.h +++ b/ObjectiveGit/GTReflogEntry+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTReflogEntry.h" +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+Attributes.h b/ObjectiveGit/GTRepository+Attributes.h index a86ab6e28..9c12263c4 100644 --- a/ObjectiveGit/GTRepository+Attributes.h +++ b/ObjectiveGit/GTRepository+Attributes.h @@ -6,7 +6,7 @@ // Copyright (c) 2014 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+Blame.h b/ObjectiveGit/GTRepository+Blame.h index 7e9e64243..3f19c0b51 100644 --- a/ObjectiveGit/GTRepository+Blame.h +++ b/ObjectiveGit/GTRepository+Blame.h @@ -7,7 +7,7 @@ // #import -#import "GTRepository.h" +#import #import diff --git a/ObjectiveGit/GTRepository+Committing.h b/ObjectiveGit/GTRepository+Committing.h index 4e5518664..9de9efcae 100644 --- a/ObjectiveGit/GTRepository+Committing.h +++ b/ObjectiveGit/GTRepository+Committing.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+Merging.h b/ObjectiveGit/GTRepository+Merging.h index f175d9d6c..aabe09333 100644 --- a/ObjectiveGit/GTRepository+Merging.h +++ b/ObjectiveGit/GTRepository+Merging.h @@ -6,8 +6,8 @@ // Copyright © 2016 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" -#import "GTIndexEntry.h" +#import +#import #import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+Private.h b/ObjectiveGit/GTRepository+Private.h index f3341730c..d62d58d20 100644 --- a/ObjectiveGit/GTRepository+Private.h +++ b/ObjectiveGit/GTRepository+Private.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+Pull.h b/ObjectiveGit/GTRepository+Pull.h index 939930e20..fb08c0119 100644 --- a/ObjectiveGit/GTRepository+Pull.h +++ b/ObjectiveGit/GTRepository+Pull.h @@ -6,7 +6,7 @@ // Copyright © 2015 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+References.h b/ObjectiveGit/GTRepository+References.h index cfddac2fc..d0617e5cc 100644 --- a/ObjectiveGit/GTRepository+References.h +++ b/ObjectiveGit/GTRepository+References.h @@ -6,7 +6,7 @@ // Copyright (c) 2015 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTRepository+RemoteOperations.h b/ObjectiveGit/GTRepository+RemoteOperations.h index 9f3c03d42..e86f75b80 100644 --- a/ObjectiveGit/GTRepository+RemoteOperations.h +++ b/ObjectiveGit/GTRepository+RemoteOperations.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import #import @class GTFetchHeadEntry; diff --git a/ObjectiveGit/GTRepository+Reset.h b/ObjectiveGit/GTRepository+Reset.h index a93cb504d..d03679592 100644 --- a/ObjectiveGit/GTRepository+Reset.h +++ b/ObjectiveGit/GTRepository+Reset.h @@ -6,7 +6,7 @@ // Copyright (c) 2014 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import #import diff --git a/ObjectiveGit/GTRepository+Stashing.h b/ObjectiveGit/GTRepository+Stashing.h index ea022ac90..6db793800 100644 --- a/ObjectiveGit/GTRepository+Stashing.h +++ b/ObjectiveGit/GTRepository+Stashing.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import #import diff --git a/ObjectiveGit/GTRepository+Status.h b/ObjectiveGit/GTRepository+Status.h index 47cd0e602..ed88aebaf 100644 --- a/ObjectiveGit/GTRepository+Status.h +++ b/ObjectiveGit/GTRepository+Status.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 GitHub, Inc. All rights reserved. // -#import "GTRepository.h" +#import #import diff --git a/ObjectiveGit/GTRepository.h b/ObjectiveGit/GTRepository.h index b11339c20..d1c4819cd 100644 --- a/ObjectiveGit/GTRepository.h +++ b/ObjectiveGit/GTRepository.h @@ -28,13 +28,13 @@ // #import -#import "GTBranch.h" -#import "GTEnumerator.h" -#import "GTFilterSource.h" -#import "GTObject.h" -#import "GTReference.h" -#import "GTFilterList.h" -#import "GTCheckoutOptions.h" +#import +#import +#import +#import +#import +#import +#import #import #import #import diff --git a/ObjectiveGit/GTSignature.h b/ObjectiveGit/GTSignature.h index 566fe1e8f..3aaa2d81d 100644 --- a/ObjectiveGit/GTSignature.h +++ b/ObjectiveGit/GTSignature.h @@ -28,7 +28,7 @@ // -#import "GTObject.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/ObjectiveGit/GTSubmodule.h b/ObjectiveGit/GTSubmodule.h index 41c665c18..8bfc3ae07 100644 --- a/ObjectiveGit/GTSubmodule.h +++ b/ObjectiveGit/GTSubmodule.h @@ -7,7 +7,7 @@ // #import -#import "GTObject.h" +#import #import #import diff --git a/ObjectiveGit/GTTag.h b/ObjectiveGit/GTTag.h index bd7318e64..a891ffcd7 100644 --- a/ObjectiveGit/GTTag.h +++ b/ObjectiveGit/GTTag.h @@ -27,7 +27,7 @@ // THE SOFTWARE. // -#import "GTObject.h" +#import @class GTSignature; @class GTRepository; diff --git a/ObjectiveGit/GTTree.h b/ObjectiveGit/GTTree.h index 6ce0c0bec..6bf3cb837 100644 --- a/ObjectiveGit/GTTree.h +++ b/ObjectiveGit/GTTree.h @@ -28,7 +28,7 @@ // -#import "GTObject.h" +#import #import @class GTTreeEntry; diff --git a/ObjectiveGit/GTTreeEntry.h b/ObjectiveGit/GTTreeEntry.h index f90bc135a..0147c9751 100644 --- a/ObjectiveGit/GTTreeEntry.h +++ b/ObjectiveGit/GTTreeEntry.h @@ -27,7 +27,7 @@ // THE SOFTWARE. // -#import "GTObject.h" +#import @class GTTree; diff --git a/ObjectiveGitFramework.xcodeproj/project.pbxproj b/ObjectiveGitFramework.xcodeproj/project.pbxproj index bdfc1d915..00ccf4639 100644 --- a/ObjectiveGitFramework.xcodeproj/project.pbxproj +++ b/ObjectiveGitFramework.xcodeproj/project.pbxproj @@ -1738,7 +1738,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -1779,7 +1779,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -1914,7 +1914,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -2132,7 +2132,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; From 8b0ef8ab5a793b297afa242164bf1a960f0aa3f5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 19 Sep 2026 10:03:57 +0000 Subject: [PATCH 2/2] Restore quoted include warning handling Co-authored-by: hannesa2 <3314607+hannesa2@users.noreply.github.com> --- ObjectiveGit/ObjectiveGit.h | 2 +- ObjectiveGitFramework.xcodeproj/project.pbxproj | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ObjectiveGit/ObjectiveGit.h b/ObjectiveGit/ObjectiveGit.h index 5c8cba5bc..39106f5f0 100644 --- a/ObjectiveGit/ObjectiveGit.h +++ b/ObjectiveGit/ObjectiveGit.h @@ -24,7 +24,7 @@ // #import -#import "git2.h" +#import //! Project version number for ObjectiveGit. FOUNDATION_EXPORT double ObjectiveGitVersionNumber; diff --git a/ObjectiveGitFramework.xcodeproj/project.pbxproj b/ObjectiveGitFramework.xcodeproj/project.pbxproj index 00ccf4639..bdfc1d915 100644 --- a/ObjectiveGitFramework.xcodeproj/project.pbxproj +++ b/ObjectiveGitFramework.xcodeproj/project.pbxproj @@ -1738,7 +1738,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -1779,7 +1779,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -1914,7 +1914,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -2132,7 +2132,7 @@ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES;