Skip to content

Replace git with go-git library #700

@zaquestion

Description

@zaquestion

Multiple reasons to do this, one is speed, running library functions instead of execing git showed noticeable speedups when I experimented with this change over last time. 2nd is that one of the main complaints about lab is that git is a dependency, since we have an opportunity to (almost) completely remove this dep and speedup the tool at the same time we should definitely take it.

Some of the work has already been done on: https://github.com/zaquestion/lab/tree/go-git (this branch is pretty far behind now, so it'd need to be caught up and the work in internal/git completed.

For good measure lets see if we can also record some of the perf improvements on the ticket for posterity, even if it's just "wow x feels faster", I do recall having those moments when I started the branch.

Ref: https://github.com/go-git/go-git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions