gitoxide icon indicating copy to clipboard operation
gitoxide copied to clipboard

oxidize `lilgit`

Open Byron opened this issue 2 years ago • 1 comments

Here is the project:

Missing Features

  • [ ] complete status, abortable on first change for fastest-possible 'is-dirty' checks
  • [x] a way to obtain the upstream of a branch
    • Right now, it's possible to do this by hand, but it's it's unlikely anyone will get this right (as opposed to 'seemingly' right).
    • while at it, also tackle push (as in git rev-parse), and probably call it tracking_branch(kind) with a way to switch between fetch and push.

Related discussion: #1173

Byron avatar Dec 13 '23 08:12 Byron

The API for obtaining branches related to remotes has been overhauled in the linked PR and you should be able to replace the existing code with it fully. You will probably be particularly interested in the API added in this commit.

Please note that you'd have to add gix as git = https://github.com/Byron/gitoxide dependency as a crates-io release with these features doesn't yet exist.

Byron avatar Dec 19 '23 14:12 Byron