Skip to content

Ergonomics #19

Description

@rye

While I really do enjoy the idea of using git2 for performance, I think a far more economical and ergonomic approach is to just be a thin shell wrapper around git-checkout.

So, we might have behavior (e.g. which matcher to use: -s for Sublime, etc.) that needs to get configured via Clap, otherwise all arguments should get passed through.

Here are the changes to adopt:

  • Use git-for-each-ref(1) for retrieving refnames (completions, search space) Use git2 for getting refs
  • Use git-checkout(1) for actually checking things out.
  • Any arguments preceding a -- are for us, the others are for git-checkout.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions