When the potatoes, tomatoes, and garlic are ready, poach the salt cod gently for 5 minutes. Then in a bowl bring together the drained potatoes and cod, the tomatoes and garlic with their oil, and the parsley, and season and mix gently (the cod will crumble, which is fine). Top with the egg and serve.