Now, the question is, does the .release file exist only on release
branches or also in master?
It was also exist in master as I described it.
If in master, then I think the .release file would need to be
incremented on 'master' immediately after branching for a release. So,
for example, immediately after branching for nuttx-9.1, the following
commit on 'master' would increment .release to 9.2. Would we want an
additional field for '-prerelease', '-rc1', '-rc2', '-release'?
Yes, I suppose. I don't think that the release candidate affects the
content of master, but I think that the version of .release on the
release branch should be the same as the one on the master branch for
simplicity.