Accessing additional rebase metadata #396
Replies: 2 comments
-
I have created an empty
It's hard to tell without knowing
I really don't know, it probably depends on you after understanding I would, however, be part of the journey of tackling this and we learn together as it proceeds. Once it's clearer what the initial goal is regarding what data to retrieve, everything else can be sketched out in a first draft PR. Last but not least, let me state that I am excited about seeing this line of work being started. |
Beta Was this translation helpful? Give feedback.
-
I was mostly interested in completed/total progress, as there hasn't been any demand for anything beyond that (in starship). Beyond what you've mentioned, that would include |
Beta Was this translation helpful? Give feedback.
-
So there was some back and forth in #382 about this and I'm happy to work on this as it sounds like both myself and @davidkna have similar use cases. However I could use a bit of guidance beforehand.
First thing is, renaming
git-rebase
togit-sequencer
as even withingit
the sequencer code is shared betweencherry-pick
,rebase
, andrevert
.The next part revolves around how the API should be shaped. As
git-repository
is mostly a higher level wrapper around other crates, what would the functions ingit-sequencer
accept as input? APath
-like object that points to the.git
directory? Or? Likewise, what's the preference for output shape? Most of the metadata in question are relatively simple things like strings or references. At what point would it be appropriate to go from functions per attribute to something returning a "platform" struct?Lastly, (and this is perhaps more directed at @davidkna) what sort of metadata should be exposed? It's all relatively easy to get at, and should all be listed in
sequencer.c
. Off the top of my head:GIT_PATH_FUNC(rebase_path_msgnum, "rebase-merge/msgnum")
GIT_PATH_FUNC(rebase_path_msgtotal, "rebase-merge/end")
GIT_PATH_FUNC(rebase_path_amend, "rebase-merge/amend")
GIT_PATH_FUNC(rebase_path_strategy, "rebase-merge/strategy")
Beta Was this translation helpful? Give feedback.
All reactions