A Ukrainian soldier who fought alongside his dog for two years left a poignant note before falling: leave his jacket in the trench so the animal could warm himself in winter, and to stroke him behind the ears if they catch him.