Rinse the salt cod under cold water, then put it in a 4-liter / 4-quart container and cover with cold water by 5 cm / 2 inches. Refrigerate for 24 hours, draining and refilling with fresh cold water every 6 to 8 hours.
Drain the cod and taste a small flake from the thickest piece. It should taste lightly seasoned. If it's sharply salty, soak another 6 to 12 hours. Pat the cod dry, cut it into palm-sized pieces about 5 cm / 2 inches wide, and pull out any bones with tweezers.
Pour the oil into a 30 cm / 12-inch deep skillet, add the garlic and chili, and set over medium-low heat. Cook for about 2 minutes, until the garlic turns pale gold at the edges.
Crush the tomatoes by hand in a bowl, then add them to the skillet with their juice and the water. Simmer uncovered over medium heat for 10 minutes, until the sauce thickens and a little oil pools at the edges.
Stir in the olives and capers. Lay the cod skin-side down in the sauce and spoon some sauce over each piece. Cover and cook over low heat for 15 minutes, shaking the pan gently instead of stirring, until the thickest piece flakes easily with a fork and is opaque white throughout.
Turn off the heat, scatter the parsley, and add the pepper. Taste the sauce before adding any salt, then serve straight from the skillet.