Skip to content

Commit

Permalink
Fixing correct uses of LGitCloneOptionsV140
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Dec 6, 2022
1 parent df158c2 commit b84eddb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
libgit - calls
clone_init_options: opts version: version
^ self
ffiCall: #(LGitReturnCodeEnum git_clone_init_options(LGitCloneOptionsV120 *opts, LGitOptionsVersionsEnum version))
ffiCall: #(LGitReturnCodeEnum git_clone_init_options(LGitCloneOptionsV140 *opts, LGitOptionsVersionsEnum version))
options: #( )
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libgit-fields
prim_fetch_opts
"This method was automatically generated"
^ LGitFetchOptionsV120 fromHandle: (handle referenceStructAt: OFFSET_PRIM_FETCH_OPTS length: LGitFetchOptionsV140 byteSize)
^ LGitFetchOptionsV140 fromHandle: (handle referenceStructAt: OFFSET_PRIM_FETCH_OPTS length: LGitFetchOptionsV140 byteSize)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ pushOptionsStructureClass
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 2))
ifTrue: [ ^ LGitPushOptionsV100 ].
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 4))
ifTrue: [ ^ LGitPushOptionsV100 ].
ifTrue: [ ^ LGitPushOptionsV120 ].

^ LGitPushOptionsV140
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ remote_fetch: remote refspecs: refspecs opts: opts reflog_message: message
^ self remote_fetch_v0251: remote refspecs: refspecs opts: opts reflog_message: message. ].
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 2)) ifTrue: [
^ self remote_fetch_v100: remote refspecs: refspecs opts: opts reflog_message: message ].
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 4)) ifTrue: [
^ self remote_fetch_v120: remote refspecs: refspecs opts: opts reflog_message: message ].

^ self remote_fetch_v120: remote refspecs: refspecs opts: opts reflog_message: message
^ self remote_fetch_v140: remote refspecs: refspecs opts: opts reflog_message: message
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
libgit - calls
remote_fetch_v140: remote refspecs: refspecs opts: opts reflog_message: reflog_message

^ self
ffiCallSafely:
#(LGitReturnCodeEnum git_remote_fetch #(self , LGitStringArray * refspecs , LGitFetchOptionsV140 * opts , String reflog_message))
options: #(optCoerceNilToNull)

0 comments on commit b84eddb

Please sign in to comment.