Hello,
Thank you for your answer, but I think I wasn't explicit enough.
Since the way the current manifest is referenced has changed, my understanding is that it's considered as an internal implementation detail of repo. And I'd like to have a future proof way of getting it.
ATM, I'm using this bash function:
# Return the manifest currently in use in the workspace we're in.
# In version 1.12.37, .repo/manifest.xml was a symlink to the manifest in use.
# In 2.13.7, it's an xml file, with an include directive.
get_current_manifest() {
local manifest=.repo/manifest.xml
if [ -L ${manifest} ]; then
readlink ${manifest}
else
xpath -q -e 'string(/manifest/include/@name)' ${manifest}
fi
}
which works fine, but if the way the current manifest changes yet once more in the future, this function will break too.
So my question is, is there a way to query it using a repo command ? Something like `repo manifest get_current`?