xltrail / git-xl

Git extension: Makes git-diff work for VBA in Excel workbooks (xls* file types)
https://www.xltrail.com/git-xl
MIT License
559 stars 72 forks source link

Interactive staging of specific lines of VBA code #80

Open stephenskett opened 1 year ago

stephenskett commented 1 year ago

I'm not sure if this is a bug that I'm experiencing, or just a new feature that might be nice to have, but I found that my git diff-type statements work ok for my Git-XL-enabled repo, but not interactive patch-staging using git add -p. (See example below.) 2023-11-07_Error_Git-XL_Git-Patch-Add-Not-Working

Is it possible to add support for staging specific lines of changed VBA code, based on the diff's generated by Git-XL? (e.g. in my example case, I might've wanted to commit the bottom two UDFs separately from the top Sub; would it be possible to implement something like this?)

Perhaps this is outside the scope of what Git-XL is trying to provide, or isn't really even possible. But I figured, couldn't hurt to ask...