Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
This repository was archived by the owner on Dec 2, 2026. It is now read-only.

Separate additional meta data from JSON. #152

Closed

Description

@tbranyen

We currently have to add additional metadata to the libgit2 API JSON in order to generate source. This is annoying since at the moment it's a very manual process.

I propose moving the meta data into a separate file that can be married to the original configuration. This keeps the original intact and makes it much easier to move between versions.

Activity

  1. tbranyen commented on May 7, 2014

    @tbranyen
    MemberAuthor

    Making some good progress in https://github.com/nodegit/nodegit/tree/descriptor-refactor on this. All top level libgit2 types are now represented as C++ classes and JS constructors or objects. I'm moving slowly on this to ensure that the process is as automated as possible.

    Was able to infer nearly all the existing metadata for the class-level constructs. At the moment, there are just a few places where I'm manually specifying cType: null. This could easily be inferred as well since the script that generates the codegen context errors if it's supposed to be null.

    I still need to get dependencies automated and start automating functions, which is a much more involved task.

  2. tbranyen commented on May 7, 2014

    @tbranyen
    MemberAuthor

    dependencies are now automated as well. (Needs verification though.)

  3. tbranyen commented on Jul 3, 2014

    @tbranyen
    MemberAuthor

    The separation layer has been completed via 1bcb66c. It's still in need of much refinement, but it works and is easier to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions