diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 6a112da9..b252cad2 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - smalltalk: [ Pharo64-apha ] + smalltalk: [ Pharo64-alpha ] runs-on: ${{ matrix.os }} name: ${{ matrix.smalltalk }} on ${{ matrix.os }} steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b303dc8..48bef09f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - smalltalk: [ Pharo64-apha ] + smalltalk: [ Pharo64-alpha ] os: [ ubuntu-latest, macOS-latest ] ston: [ .smalltalk.ston ] runs-on: ${{ matrix.os }} diff --git a/LibGit-Core.package/LGitLibrary.class/instance/pushOptionsStructureClass.st b/LibGit-Core.package/LGitLibrary.class/instance/pushOptionsStructureClass.st index 015c534c..ab2fae6f 100644 --- a/LibGit-Core.package/LGitLibrary.class/instance/pushOptionsStructureClass.st +++ b/LibGit-Core.package/LGitLibrary.class/instance/pushOptionsStructureClass.st @@ -8,5 +8,8 @@ pushOptionsStructureClass ifTrue: [ ^ LGitPushOptionsV100 ]. (self ffiLibrary uniqueInstance isVersionLessThan: #(1 4)) ifTrue: [ ^ LGitPushOptionsV120 ]. + (self ffiLibrary uniqueInstance isVersionLessThan: #(1 8)) + ifTrue: [ ^ LGitPushOptionsV140 ]. + + ^ LGitPushOptionsV180 - ^ LGitPushOptionsV140 \ No newline at end of file diff --git a/LibGit-Core.package/LGitLibrary.class/instance/unix64LibraryName.st b/LibGit-Core.package/LGitLibrary.class/instance/unix64LibraryName.st index 497ae62e..142ec2d1 100644 --- a/LibGit-Core.package/LGitLibrary.class/instance/unix64LibraryName.st +++ b/LibGit-Core.package/LGitLibrary.class/instance/unix64LibraryName.st @@ -2,6 +2,7 @@ accessing - platform unix64LibraryName ^ FFIUnix64LibraryFinder findAnyLibrary: #( + 'libgit2.so.1.8' 'libgit2.so.1.7' 'libgit2.so.1.6' 'libgit2.so.1.5' diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/README.md b/LibGit-Core.package/LGitPushOptionsV180.class/README.md new file mode 100644 index 00000000..e69de29b diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/class/fieldsDesc.st b/LibGit-Core.package/LGitPushOptionsV180.class/class/fieldsDesc.st new file mode 100644 index 00000000..c34820b5 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/class/fieldsDesc.st @@ -0,0 +1,44 @@ +field definition +fieldsDesc + "self rebuildFieldAccessors" + + ^ #( + LGitOptionsVersionsEnum version; + + " + * If the transport being used to push to the remote requires the creation + * of a pack file, this controls the number of worker threads used by + * the packbuilder when creating that pack file to be sent to the remote. + * + * If set to 0, the packbuilder will auto-detect the number of threads + * to create. The default value is 1. + " + uint pb_parallelism; + + " + * Callbacks to use for this push operation + " + LGitRemoteCallbacksV120 callbacks; + + " + * Proxy options to use, by default no proxy is used. + " + LGitProxyOptions proxy_opts; + + " + * Whether to allow off-site redirects. If this is not + * specified, the `http.followRedirects` configuration setting + * will be consulted. + " + LGitRemoteRedirectEnum follow_redirects; + + " + * Extra headers for this push operation + " + LGitStringArray custom_headers; + + " + * 'Push options' to deliver to the remote. + " + LGitStringArray remote_push_options; +) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks..st new file mode 100644 index 00000000..12fffd1c --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks..st @@ -0,0 +1,4 @@ +libgit-fields +prim_callbacks: anObject + "This method was automatically generated" + handle structAt: OFFSET_PRIM_CALLBACKS put: anObject getHandle length: LGitRemoteCallbacksV120 byteSize \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks.st new file mode 100644 index 00000000..9ef9fafb --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_callbacks.st @@ -0,0 +1,4 @@ +libgit-fields +prim_callbacks + "This method was automatically generated" + ^ LGitRemoteCallbacksV120 fromHandle: (handle referenceStructAt: OFFSET_PRIM_CALLBACKS length: LGitRemoteCallbacksV120 byteSize) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers..st new file mode 100644 index 00000000..9f85ec79 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers..st @@ -0,0 +1,4 @@ +libgit-fields +prim_custom_headers: anObject + "This method was automatically generated" + handle structAt: OFFSET_PRIM_CUSTOM_HEADERS put: anObject getHandle length: LGitStringArray byteSize \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers.st new file mode 100644 index 00000000..34e7d291 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_custom_headers.st @@ -0,0 +1,4 @@ +libgit-fields +prim_custom_headers + "This method was automatically generated" + ^ LGitStringArray fromHandle: (handle referenceStructAt: OFFSET_PRIM_CUSTOM_HEADERS length: LGitStringArray byteSize) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects..st new file mode 100644 index 00000000..ee265b5a --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects..st @@ -0,0 +1,4 @@ +libgit-fields +prim_follow_redirects: anObject + "This method was automatically generated" + handle unsignedLongAt: OFFSET_PRIM_FOLLOW_REDIRECTS put: anObject value \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects.st new file mode 100644 index 00000000..a8bd09c7 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_follow_redirects.st @@ -0,0 +1,4 @@ +libgit-fields +prim_follow_redirects + "This method was automatically generated" + ^LGitRemoteRedirectEnum fromInteger: (handle unsignedLongAt: OFFSET_PRIM_FOLLOW_REDIRECTS) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism..st new file mode 100644 index 00000000..3725d74b --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism..st @@ -0,0 +1,4 @@ +libgit-fields +prim_pb_parallelism: anObject + "This method was automatically generated" + handle unsignedLongAt: OFFSET_PRIM_PB_PARALLELISM put: anObject \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism.st new file mode 100644 index 00000000..b9d3a069 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_pb_parallelism.st @@ -0,0 +1,4 @@ +libgit-fields +prim_pb_parallelism + "This method was automatically generated" + ^handle unsignedLongAt: OFFSET_PRIM_PB_PARALLELISM \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts..st new file mode 100644 index 00000000..86835c1f --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts..st @@ -0,0 +1,4 @@ +libgit-fields +prim_proxy_opts: anObject + "This method was automatically generated" + handle structAt: OFFSET_PRIM_PROXY_OPTS put: anObject getHandle length: LGitProxyOptions byteSize \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts.st new file mode 100644 index 00000000..9deec332 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_proxy_opts.st @@ -0,0 +1,4 @@ +libgit-fields +prim_proxy_opts + "This method was automatically generated" + ^ LGitProxyOptions fromHandle: (handle referenceStructAt: OFFSET_PRIM_PROXY_OPTS length: LGitProxyOptions byteSize) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options..st new file mode 100644 index 00000000..dfa38589 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options..st @@ -0,0 +1,4 @@ +libgit-fields +prim_remote_push_options: anObject + "This method was automatically generated" + handle structAt: OFFSET_PRIM_REMOTE_PUSH_OPTIONS put: anObject getHandle length: LGitStringArray byteSize \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options.st new file mode 100644 index 00000000..84a88206 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_remote_push_options.st @@ -0,0 +1,4 @@ +libgit-fields +prim_remote_push_options + "This method was automatically generated" + ^ LGitStringArray fromHandle: (handle referenceStructAt: OFFSET_PRIM_REMOTE_PUSH_OPTIONS length: LGitStringArray byteSize) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version..st new file mode 100644 index 00000000..c720c54e --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version..st @@ -0,0 +1,4 @@ +libgit-fields +prim_version: anObject + "This method was automatically generated" + handle unsignedLongAt: OFFSET_PRIM_VERSION put: anObject value \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version.st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version.st new file mode 100644 index 00000000..4ccc9d67 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/prim_version.st @@ -0,0 +1,4 @@ +libgit-fields +prim_version + "This method was automatically generated" + ^LGitOptionsVersionsEnum fromInteger: (handle unsignedLongAt: OFFSET_PRIM_VERSION) \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/instance/push_init_options.version..st b/LibGit-Core.package/LGitPushOptionsV180.class/instance/push_init_options.version..st new file mode 100644 index 00000000..174471b9 --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/instance/push_init_options.version..st @@ -0,0 +1,5 @@ +libgit - calls +push_init_options: options version: version + self + ffiCall: #(LGitReturnCodeEnum git_push_init_options(LGitPushOptionsV180 *options, LGitOptionsVersionsEnum version)) + options: #() \ No newline at end of file diff --git a/LibGit-Core.package/LGitPushOptionsV180.class/properties.json b/LibGit-Core.package/LGitPushOptionsV180.class/properties.json new file mode 100644 index 00000000..1659217c --- /dev/null +++ b/LibGit-Core.package/LGitPushOptionsV180.class/properties.json @@ -0,0 +1,19 @@ +{ + "commentStamp" : "", + "super" : "LGitAbstractPushOptions", + "category" : "LibGit-Core-FFI-Structs", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ + "OFFSET_PRIM_CALLBACKS", + "OFFSET_PRIM_CUSTOM_HEADERS", + "OFFSET_PRIM_FOLLOW_REDIRECTS", + "OFFSET_PRIM_PB_PARALLELISM", + "OFFSET_PRIM_PROXY_OPTS", + "OFFSET_PRIM_REMOTE_PUSH_OPTIONS", + "OFFSET_PRIM_VERSION" + ], + "instvars" : [ ], + "name" : "LGitPushOptionsV180", + "type" : "normal" +} \ No newline at end of file diff --git a/LibGit-Core.package/LGitRemote.class/instance/remote_push.refspecs.opts..st b/LibGit-Core.package/LGitRemote.class/instance/remote_push.refspecs.opts..st index 52c1ebf9..d7c4acc3 100644 --- a/LibGit-Core.package/LGitRemote.class/instance/remote_push.refspecs.opts..st +++ b/LibGit-Core.package/LGitRemote.class/instance/remote_push.refspecs.opts..st @@ -7,5 +7,7 @@ remote_push: remote refspecs: refspecs opts: opts ifTrue: [ ^ self remote_push_v100: remote refspecs: refspecs opts: opts ]. (self ffiLibrary uniqueInstance isVersionLessThan: #(1 4)) ifTrue: [ ^ self remote_push_v120: remote refspecs: refspecs opts: opts ]. + (self ffiLibrary uniqueInstance isVersionLessThan: #(1 8)) + ifTrue: [ ^ self remote_push_v140: remote refspecs: refspecs opts: opts ]. - ^ self remote_push_v140: remote refspecs: refspecs opts: opts \ No newline at end of file + ^ self remote_push_v180: remote refspecs: refspecs opts: opts \ No newline at end of file diff --git a/LibGit-Core.package/LGitRemote.class/instance/remote_push_v180.refspecs.opts..st b/LibGit-Core.package/LGitRemote.class/instance/remote_push_v180.refspecs.opts..st new file mode 100644 index 00000000..60501040 --- /dev/null +++ b/LibGit-Core.package/LGitRemote.class/instance/remote_push_v180.refspecs.opts..st @@ -0,0 +1,8 @@ +libgit - calls +remote_push_v180: remote refspecs: refspecs opts: opts + + ^ self ffiCallSafely: #(LGitReturnCodeEnum git_remote_push #( + self, + LGitStringArray *refspecs, + LGitPushOptionsV180 *opts)) + options: #(optCoerceNilToNull) \ No newline at end of file