Chop the onions and garlic to small pieces and mince the cod.
In a deep pan, sweat the onions and garlic until golden, then add the pieces of cod, and cook for a few minutes, until it soaks up the oil.
Then add the potatoes and stir whilst adding the beaten eggs with salt and pepper to taste. (Remember: the chips and the cod are already salty enough!)
Stir for a few minutes, until the chips moisten but before the eggs become an omelette.
Serve hot, with chopped parsley and black olives.
Recipe by El Cookbook at http://elcookbook.wikaina.com/bacalhau-a-bras/