The 3-cornered hat song is German in origin (I think), from a time when Germany and France were at war (not the last 2 times), when the Germans wore 3-cornered hats, and the French wore 2-cornered hats.
But I'll check with my German friend and get back to you.