gitoxide icon indicating copy to clipboard operation
gitoxide copied to clipboard

oxidize `vergen`

Open Byron opened this issue 4 years ago • 2 comments

Needed from gitoxide

  • [x] information about branch and commit
  • git describe - NOT git name-rev ;).
    • [x] implementation
    • [x] use it in vergen
    • [ ] dirty-working-tree tracking with suffix
  • [x] unambiguous short-id

Integration progress

  • [x] make CI pass
    • [x] figure out which path has issues
  • [x] implement features
  • [x] cleanup history
  • [x] https://github.com/rustyhorde/vergen/pull/112
  • [ ] can the MSRV be stored? Note that vergen occasionally updates their MSRV so this problem goes away with time.
    • https://github.com/microsoft/windows-rs/issues/1699
    • [ ] merge #394 , switch to winapi if needed
  • [ ] get PR merged or closed

https://lib.rs/crates/vergen https://github.com/byron/vergen

Byron avatar Jan 20 '22 00:01 Byron

Just hit this. Is there a way to get a describe with match arguments like the git command line?

nstinus avatar Nov 20 '24 21:11 nstinus

Currently it's not possible to do that. To enable this, one would either have to…

  • …add a new variant to SelectRef which is responsible for selecting the available name/commit-id mappings.
    • This could even be implemented with a filter function so that users can implement whatever filter logic they want, or alternatively, a way to pass the name mappings directly.
  • …use the plumbing directly.
    • This would allow the client side to implement this today, without having to wait for (or contribute to) upstream.

I hope that helps.

Byron avatar Nov 21 '24 06:11 Byron