Skip to content

NULL (#f) not allowed for git_diff_options #4

@kengruven

Description

@kengruven

The libgit2 docs for git_diff_options say "passing NULL for the options structure will give the defaults", and the libgit2 sample code shows this in practice.

With these Racket bindings, though, several functions (like git_diff_tree_to_tree) use _git_diff_opts-pointer rather than _git_diff_opts-pointer/null, so passing #f here results in an error:

git_diff_opts->C: argument is not non-null `git_diff_opts' pointer

The scrbl docs even say that this parameter has type [opts (or/c git_diff_opts? #f)].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions