Hi everyone,
Is it possible to read and modify files not containing Pharo code in a
repository managed by Iceberg? I am thinking of reading the repository's
README file, for example, or storing data files read by my code
alongside the code itself.
I'm not sure if you are referring to GitHub's README, but if you are, I maintain my project's README on GitHub's web site (which requires care if you're using branches). I like the markdown preview there which requires no fancy software installed on my PC. You need to pull the change to Iceberg.
There's indeed a copy of the README.md in my image's pharo-local/iceberg/GITHUBUSERNAME/GITHUBPROJECT directory, and I can even modify it using Pharo 7's File Browser. However, any modifications to it are not seen or committed by Iceberg (at least I don't know of a way to make that happen). I believe Iceberg's change detection is limited to the smalltalk files in the packages that are in the repositories it knows about. But I'm still far from an expert with this. Hopefully a more qualified person can confirm.
There's theoretically a way to run a git client outside of Pharo that knows about the local git repo that Iceberg's using, so maybe you can commit the non-Pharo files that way. However, doing that is sure to cause a "detached" state with the repo in the image. That is not a catastrophic problem, but it's more accidental complexity to deal with. I picked my battles and maintain README on GitHub.
Christopher
Konrad.