Stacked Git Internals Discussion #167
Replies: 1 comment
-
You are correct that those per-patch metadata files are not parsed/used by StGit directly. Their purpose is to provide rich patch logging. This is a fairly deeply buried feature--you would only encounter the content of these patch metadata files when running This feature has been there since before I became involved in the project. I've preserved this feature over the ages, but I've only occasionally found its utility useful. I may not appreciate the workflows or use cases where this is really helpful.
Are you referring to the patch refs? I.e. Alternatively, if you are referring to the patch metadata files in |
Beta Was this translation helpful? Give feedback.
-
@jpgrayson I was looking into Stacked Git's Stack Implementation in relation to #163, and found myself a little confused about the
reasons behind the
patches
directory on thestacks/<branch>
branch.What are those files used for? I found the logic to write them:
But could not find where if it is ever actually read back. It seems they largely have the same information as the commit objects.
Are those files still used?
After experimenting with a shell script that fixes up the topmost commit it seems like patches get regenerated anyway, even if incorrectly updated by the script:
https://gist.github.com/NonLogicalDev/bd110dc0a9c1519f6d79a4138b3c80de
Beta Was this translation helpful? Give feedback.
All reactions