Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
fields description
fieldsDesc
"self rebuildFieldAccessors"

^ #(
LGitOptionsVersionsEnum version;

Expand Down Expand Up @@ -36,11 +34,14 @@ fieldsDesc
LGitProxyOptions proxy_opts;

"
* Whether to allow off-site redirects. If this is not
* specified, the `http.followRedirects` configuration setting
* will be consulted.
* Depth of the fetch to perform, or GIT_FETCH_DEPTH_FULL (or 0) for full history, or GIT_FETCH_DEPTH_UNSHALLOW to ""unshallow"" a shallow repository.
The default is full (GIT_FETCH_DEPTH_FULL or 0)."
int depth;

"
* Whether to allow off-site redirects. If this is not specified, the http.followRedirects configuration setting will be consulted.
"
LGitRemoteRedirectEnum follow_redirects;
LGitRemoteRedirectEnum follow_redirects;

"
* Extra headers for this fetch operation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libgit - calls
fetch_init_options: opts version: version
^ self
ffiCall: #(LGitReturnCodeEnum git_fetch_init_options(LGitFetchOptionsV160 *opts, LGitOptionsVersionsEnum version))
options: #( )
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
libgit-fields
prim_callbacks
"This method was automatically generated"
^ LGitRemoteCallbacks fromHandle: (handle
referenceStructAt: OFFSET_PRIM_CALLBACKS
length: LGitRemoteCallbacks byteSize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libgit-fields
prim_depth: anObject
"This method was automatically generated"
handle signedLongAt: OFFSET_PRIM_DEPTH put: anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libgit-fields
prim_depth
"This method was automatically generated"
^handle signedLongAt: OFFSET_PRIM_DEPTH
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"classvars" : [
"OFFSET_PRIM_CALLBACKS",
"OFFSET_PRIM_CUSTOM_HEADERS",
"OFFSET_PRIM_DEPTH",
"OFFSET_PRIM_DOWNLOAD_TAGS",
"OFFSET_PRIM_FOLLOW_REDIRECTS",
"OFFSET_PRIM_PROXY_OPTS",
Expand All @@ -15,6 +16,6 @@
"OFFSET_PRIM_VERSION"
],
"instvars" : [ ],
"name" : "LGitFetchOptionsV140",
"name" : "LGitFetchOptionsV160",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
field definition
fieldsDesc
"self rebuildFieldAccessors"

^ #(
LGitOptionsVersionsEnum version;

Expand Down Expand Up @@ -36,11 +34,14 @@ fieldsDesc
LGitProxyOptions proxy_opts;

"
* Whether to allow off-site redirects. If this is not
* specified, the `http.followRedirects` configuration setting
* will be consulted.
* Depth of the fetch to perform, or GIT_FETCH_DEPTH_FULL (or 0) for full history, or GIT_FETCH_DEPTH_UNSHALLOW to ""unshallow"" a shallow repository.
The default is full (GIT_FETCH_DEPTH_FULL or 0)."
int depth;

"
* Whether to allow off-site redirects. If this is not specified, the http.followRedirects configuration setting will be consulted.
"
LGitRemoteRedirectEnum follow_redirects;
LGitRemoteRedirectEnum follow_redirects;

"
* Extra headers for this fetch operation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libgit-fields
prim_depth: anObject
"This method was automatically generated"
handle signedLongAt: OFFSET_PRIM_DEPTH put: anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libgit-fields
prim_depth
"This method was automatically generated"
^handle signedLongAt: OFFSET_PRIM_DEPTH
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"commentStamp" : "",
"super" : "LGitAbstractFetchOptions",
"category" : "LibGit-Core",
"category" : "LibGit-Core-FFI-Structs",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [
"OFFSET_PRIM_CALLBACKS",
"OFFSET_PRIM_CUSTOM_HEADERS",
"OFFSET_PRIM_DEPTH",
"OFFSET_PRIM_DOWNLOAD_TAGS",
"OFFSET_PRIM_FOLLOW_REDIRECTS",
"OFFSET_PRIM_PROXY_OPTS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ fetchOptionsStructureClass
ifTrue: [ ^ LGitFetchOptionsV100 ].
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 4))
ifTrue: [ ^ LGitFetchOptionsV120 ].
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 9))
ifTrue: [ ^ LGitFetchOptionsV140 ].

"This struct is valid between 1.6.4 and 1.7.2"
(self ffiLibrary uniqueInstance isVersionLessThan: #(1 8))
ifTrue: [ ^ LGitFetchOptionsV160 ].

^ LGitFetchOptionsV190
Loading