Skip to content

Commit

Permalink
[LibGit2] fix wrong definition of ConfigStruct (#50247)
Browse files Browse the repository at this point in the history
(cherry picked from commit e7d00e1)
  • Loading branch information
vtjnash authored and KristofferC committed Jun 26, 2023
1 parent 41039dc commit 6168db4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions stdlib/LibGit2/src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -904,12 +904,13 @@ end
Matches the [`git_config_entry`](https://libgit2.org/libgit2/#HEAD/type/git_config_entry) struct.
"""
@kwdef struct ConfigEntry
name::Cstring = Cstring(C_NULL)
value::Cstring = Cstring(C_NULL)
level::GIT_CONFIG = Consts.CONFIG_LEVEL_DEFAULT
free::Ptr{Cvoid} = C_NULL
payload::Any = nothing
struct ConfigEntry
name::Cstring
value::Cstring
include_depth::Cuint
level::GIT_CONFIG
free::Ptr{Cvoid}
payload::Ptr{Cvoid} # User is not permitted to read or write this field
end
@assert Base.allocatedinline(ConfigEntry)

Expand Down

0 comments on commit 6168db4

Please sign in to comment.