Skip to content

Commit 427ff9a

Browse files
Standardize reserved property documentation
1 parent a6856a6 commit 427ff9a

6 files changed

Lines changed: 22 additions & 17 deletions

File tree

Sources/SwiftLibgit2/Blame/Blame-Enums.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ public struct GitBlameFlagT: COptionSet
5353
///
5454
/// This is the equivalent of `git blame -M`.
5555
///
56-
/// - Note: This has not yet been implemented, but is reserved for
57-
/// future use.
56+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
57+
/// for future use.
5858
public static let gitBlameTrackCopiesSameFile = GitBlameFlagT(rawValue: GIT_BLAME_TRACK_COPIES_SAME_FILE.rawValue)
5959

6060
/// Track lines that have moved across files in the same commit.
6161
///
6262
/// This is the equivalent of `git blame -C`.
6363
///
64-
/// - Note: This has not yet been implemented, but is reserved for
65-
/// future use.
64+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
65+
/// for future use.
6666
public static let gitBlameTrackCopiesSameCommitMoves = GitBlameFlagT(rawValue: GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES.rawValue)
6767

6868
/// Track lines that have been copied from another file that exists in the
@@ -71,8 +71,8 @@ public struct GitBlameFlagT: COptionSet
7171
/// This is the equivalent of `git blame -CC`, and implies
7272
/// ``gitBlameTrackCopiesSameFile``.
7373
///
74-
/// - Note: This has not yet been implemented, but is reserved for
75-
/// future use.
74+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
75+
/// for future use.
7676
public static let gitBlameTrackCopiesSameCommitCopies = GitBlameFlagT(rawValue: GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES.rawValue)
7777

7878
/// Track lines that have been copied from another file that exists in
@@ -81,8 +81,8 @@ public struct GitBlameFlagT: COptionSet
8181
/// This is the equivalent of `git blame -CCC`, and implies
8282
/// ``gitBlameTrackCopiesSameCommitCopies``.
8383
///
84-
/// - Note: This has not yet been implemented, but is reserved for
85-
/// future use.
84+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
85+
/// for future use.
8686
public static let gitBlameTrackCopiesAnyCommitCopies = GitBlameFlagT(rawValue: GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES.rawValue)
8787

8888
/// Restrict the search of commits to those reachable by following only

Sources/SwiftLibgit2/Blob/Blob-Structs.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public struct GitBlobFilterOptions: CStructMutable, WithCConvertible, Sendable
3333
///
3434
/// The default value is `nil`.
3535
///
36-
/// - Note: This property is unused, but is reserved for API compatibility.
36+
/// - Note: This property is unused in libgit2, but is reserved for API
37+
/// compatibility.
3738
public var commitID : GitOID?
3839

3940
/// The commit from which to load attributes when

Sources/SwiftLibgit2/Buffer/Buffer-Structs.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ public struct GitBuf: CStruct
3030
/// contains a null terminator at position `size + 1`.
3131
public let ptr : UnsafeMutablePointer<CChar>?
3232

33-
/// This property is unused, but is reserved for API compatibility.
33+
/// A reserved property.
34+
///
35+
/// - Note: This property is unused in libgit2, but is reserved for API
36+
/// compatibility.
3437
///
3538
/// The default value is `0`.
3639
public let reserved : Int

Sources/SwiftLibgit2/Checkout/Checkout-Enums.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ public struct GitCheckoutStrategyT: COptionSet
170170

171171
/// Recursively checkout submodules with the same options.
172172
///
173-
/// - Note: This has not yet been implemented, but is reserved for future
174-
/// use.
173+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
174+
/// for future use.
175175
public static let gitCheckoutUpdateSubmodules = GitCheckoutStrategyT(rawValue: GIT_CHECKOUT_UPDATE_SUBMODULES.rawValue)
176176

177177
/// Recursively checkout submodules with the same options, if HEAD moved
178178
/// in the super repository.
179179
///
180-
/// - Note: This has not yet been implemented, but is reserved for future
181-
/// use.
180+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
181+
/// for future use.
182182
public static let gitCheckoutUpdateSubmodulesIfChanged = GitCheckoutStrategyT(rawValue: GIT_CHECKOUT_UPDATE_SUBMODULES_IF_CHANGED.rawValue)
183183

184184

Sources/SwiftLibgit2/Diff/Diff-Enums.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public struct GitDiffOptionT: COptionSet
235235
/// ``GitDiffDelta`` and the ``GitDiffFile/flags`` property of ``GitDiffFile``
236236
/// that represent the old and new sides of the delta.
237237
///
238-
/// Values outside of the public supported range are reserved for internal or
239-
/// future use.
238+
/// - Note: Values outside of the public supported range are reserved for
239+
/// internal or future use.
240240
///
241241
/// ## C Equivalent
242242
///

Sources/SwiftLibgit2/Diff/Diff-Structs.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,8 @@ public struct GitDiffParseOptions: CStructMutable, CConvertible, Sendable
11841184

11851185
/// The options for calculating patch IDs.
11861186
///
1187-
/// - Note: This is reserved for future use. No options are currently available.
1187+
/// - Note: This has not been implemented in libgit2 yet, but is reserved
1188+
/// for future use.
11881189
///
11891190
/// ## C Equivalent
11901191
///

0 commit comments

Comments
 (0)