stg export: check if there are any patches to export